GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
363 stars 21 forks source link

Some widgets cannot be added to home screen anymore #4275

Open sbucek opened 2 weeks ago

sbucek commented 2 weeks ago

When trying to put some widgets on the home screen, only the border of the widget shows up temporarily and disappears when focusing away from it.

This happens with all widgets for a specific app, like all calendar apps I have such as "Business Calendar 2 Planner", "Fossify calender" as well as the the Philips hue widget for example.

WhatsApp Image 2024-11-03 at 13 23 54

Issue occurs on primary as well as on secondary profiles.

thestinger commented 2 weeks ago

Similar to https://github.com/GrapheneOS/os-issue-tracker/issues/4250.

empratyush commented 2 weeks ago

unable to reproduce this, please provide all the steps required to reproduce the bug. I tried to reproduce this with Pixel 7A running '2024103100' using 'Fossify calendar' and 'Aves Gallery'.

sbucek commented 2 weeks ago

I use Pixel 8. 2024103100, switched to alpha branch but same problem as on stable. Tried widgets for Fossify CLock, same issue. Empty frame gets created and showed to the top left corner, same as mentioned in https://github.com/GrapheneOS/os-issue-tracker/issues/4250. Empty frame then disappears when focusing away.

Initially all widgets worked fine, issue must have been introduced with an update. Existing widgets for example for Fosify calendar worked with no issue, I've noticed it only after I removed the widget and tried to recreate it.

maanisim commented 1 week ago

I am also impacted on pixel 7 pro.

go051 commented 4 days ago

Here's how to reproduce this bug, tested in a freshly factory reset Pixel 6 on 2024110700:

  1. Enable developer options
  2. In developer option screen, set "Animator duration scale" to "Animation off"
  3. Install Fossify Clock or any other application with problematic widgets
  4. Long-click launcher home screen, select "Wedgets" to add widgets, choose one of the Fossify Clock widgets and drag it to home screen
  5. Observe that the widget location is always at the top-left regardless of where the widget was actually place, and the widget is empty, and the widget does not add successfully.

The workaround is obvious and trivial -- set "Animator duration scale" to any other value, and the widget adds successfully.

thestinger commented 4 days ago

That developer option isn't supported beyond testing. You should use the Accessibility options for animations, not that broken setting.

thestinger commented 4 days ago

Need confirmation from others that this is caused by using the disable animations option in developer options. Please use the supported Accessibility setting instead. The developer options is broken upstream and shouldn't be used. It disables animations required for functionality to work. This isn't the only thing that breaks.

empratyush commented 4 days ago

able to reproduce this with animation disabled from accessibility.

maanisim commented 3 days ago

Can indeed confirm that "Animator duration scale" set to Off was causing it. Thank you guys!

sbucek commented 3 days ago

On Pixel 8 I've disabled "Remove animations" under "Accessibility/Color and motion" and all widgets can be created again. I've enabled the options again afterwards and the widgets still work as expected. Thank you @go051 @thestinger