G
GCOINC
Guest
I have read some of the power button questions and answers, in theory I would like to allow the user to specify 'how long' they want to disable the phone > for example 3 days > during that time the power button should be disabled or the phone rendered useless.
Is it possible to disable the power button keycode? (temporarily in this example)
Do you guys think this would be the best option and then re-enable the button after X amount of time. OR - do some sort of if ScreenOn then ScreenOff foreground service? OR
onboot > if date/time != X then poweroff/ScreenOff/CustomScreenLock
Opinions needed here as to the best + non rooted way to go.
-Thanks.
Is it possible to disable the power button keycode? (temporarily in this example)
Do you guys think this would be the best option and then re-enable the button after X amount of time. OR - do some sort of if ScreenOn then ScreenOff foreground service? OR
onboot > if date/time != X then poweroff/ScreenOff/CustomScreenLock
Opinions needed here as to the best + non rooted way to go.
-Thanks.
Last edited by a moderator: