• General
  • When exactly does post-update "Automatic reboot" happen?

Hello,

On the GrapheneOS website it says:

Enabling the opt-in "Automatic reboot" setting allows the updater to reboot the device after an update once it has been idle for a long time.

But I'd like to know: After an update, assuming this setting is enabled, when exactly would the automatic reboot happen?

Thank you

From the source code it looks to me like an automatic reboot can only happen when the following conditions are met:

Assuming that's right, now the question is: How is the device idle state defined by the GrapheneOS system (on its various supported devices)?

I tried finding the answer by digging into Android Code Search, especially JobInfo.java, but I didn't get anywhere.
Insight into this would be much appreciated.
Thank you.

6 months later

I wish they added an option to the define the idle time.