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/
356 stars 21 forks source link

System Update automatically reboots during phone calls #2272

Open LinuxDragon57 opened 1 year ago

LinuxDragon57 commented 1 year ago

If automatic reboots are toggled to on in the system update settings, the updater will trigger automatic reboot during phone calls. When I experience this bug, I have the phone screen off and I am on a phone call with my wireless headphones.

thestinger commented 1 year ago

The implementation of this feature is the upstream idle job implementation with no changes made to it.

empratyush commented 5 months ago

can use [Power manager isInteractive ](https://developer.android.com/reference/android/os/PowerManager#isInteractive()) api.

thestinger commented 5 months ago

We're already using https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiresDeviceIdle(boolean) and I don't expect the definition is much different.

empratyush commented 5 months ago

It is different, setRequiresDeviceIdle is "device is NOT in active use" and isInteractive is "if the device is in an interactive state" (awake).