-1

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)

ravaenee
  • 1
  • 3
  • Turning on the *screen*, or the entire OS? – Martheen Aug 18 '23 at 03:55
  • I mean entire OS!! when it's hard to use it, next is Screen control – ravaenee Aug 18 '23 at 04:12
  • You'll need root, and even then you likely only get automatic shutdown, not automatic scheduled start. If the device doesn't have a native scheduled power on/off feature, just switch the screen brightness https://stackoverflow.com/questions/18312609/change-the-system-brightness-programmatically – Martheen Aug 18 '23 at 04:56

1 Answers1

0

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.

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127