In Android 10, is it possible to reboot or shutdown automatically?

61 Views Asked by At

I know that many callbacks are blocked at API 30 level.

I am trying to develop it for the purpose of using it for the DID panel, not for the purpose of uploading it to the Google store.

I want Android to turn on the screen at 9:00 in the morning and turn it off by 6:00 PM. need some way to solved this problem. (Entire OS, not screen)

1

There are 1 best solutions below

3
On

Turning on the entire OS at a certain time is impossible. The machine is off, there's no way to run your code to turn it on. There is a solution though- turn your device on permanently (so it boots when it gets power) and plug it into an electrical socket with a timer, like people use to turn on lights when on vacation.