maforn / TimedShutdownAndroid

An app for android that will automatically shutdown your phone after a timer without needing root access. This app uses the accessiblity permission to emulate the power off gestures.
GNU General Public License v3.0
35 stars 3 forks source link

Disable back button when power off dialog called #27

Closed Zandut closed 1 week ago

Zandut commented 1 week ago

Hi, can I disable back button when power off dialog called ? I want shutdown can be cancelled. Thank you, sorry my bad english :)

maforn commented 1 week ago

Hello, I cannot understand what you mean. Do you want the shutdown to be canceled manually (which you can already do) or do you want it to be impossible (which I can't implement)?

Zandut commented 1 week ago

sorry, I mean, cannot be cancelled :). I want the shutdown cannot be cancelled manually (when user pressed back button)

maforn commented 1 week ago

I could block the back button but all the others would still work. Also, I am not sure it's a good idea to prevent the shutdown to be cancelled, the user must always have a last choice

Zandut commented 1 week ago

can you help me ? :), I want to stop my child play the phone, he still can press the back button when dialog power off showed

maforn commented 1 week ago

I understand your problem, but blocking the entire screen is not feasible given how the app works. What I can suggest you is to use any other parental control app. There are many of them on the play store, such as this one, where you can setup a time limit for your child.