System Update automatically reboots during phone calls
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.
The implementation of this feature is the upstream idle job implementation with no changes made to it.
can use Power manager isInteractive api.
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.
It is different, setRequiresDeviceIdle is "device is NOT in active use" and isInteractive is "if the device is in an interactive state" (awake).