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/
336 stars 18 forks source link

Dark theme schedule results in crash #3661

Open neunzehnachtneun opened 1 week ago

neunzehnachtneun commented 1 week ago

Maybe this issue is rather an upstream issue. It occurs since the Android 14 QPR3 update.

When using scheduled dark theming, forcing dark theme while in light mode, results in a glitch after a few minutes. Dark theme is turned off then without user interaction. Scheduled night light isnt affected.

Steps to reproduce: Turn on schedule for dark theme (doesnt matter if custom time oder sunset/sunrise). When dark theme is off by schedule, switch dark theme on. Dark theme should be set now. After a few minutes dark theming is turned off and some apps (like torbrowser) might crash.

Device: Pixel 6a Build: 2024061400

FID02 commented 1 week ago

I can reproduce on a Pixel 8 with GrapheneOS 2024061400 and a Pixel 6a running stock PixelOS with the latest QPR3 update. But I didn't observe any app crashes.

But isn't this how it's supposed to work? The user sets a custom schedule for dark mode, which the OS respects. The OS doesn't expect the user to want to manually enable dark mode outside of the set schedule, so it continues to respect that schedule by reverting to light mode the next time the user unlocks the device.

neunzehnachtneun commented 1 week ago

Thanks for checking!

I dont think, this is intended. The issue only occurs since QPR3. Also the night mode isnt affected, which should follow the same rules.