Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password required to power off Android device [closed]

Tags:

android

I wanted to see if it was possible to have an app that can monitor the shutdown intent and require a password/pin to proceed with the power off. Ideally I would like to have it before the power off menu appears after holding the power button, so before the menu is shown with options like "Power off" and "Airplane Mode" the user would be required to enter a password/pin. I know this might not be possible without rooting the device. Just wanted to see if something like this was possible without having root access.

like image 911
ashkash Avatar asked Oct 20 '25 16:10

ashkash


2 Answers

Regarding the battery pulling out, the Nexus 4 solves this.

About the intent android.intent.action.SHUTDOWN- It sounds like it is possible to create an application with this logic:

  1. monitor the android.intent.action.SHUTDOWN
  2. ask the user to type the password or the pattern
  3. If the password correct, it announces that the application is ready for shutdown
  4. Otherwise, just hold on the password/pattern screen and provide the user another chance (repeat this forever until the right pass is typed...)
like image 106
wolfp86 Avatar answered Oct 22 '25 04:10

wolfp86


Yes, neither Google, the phone manufacturers nor the carriers want to provide/enable such functionality. They want to encourage the theft of your phone as they make money from it, forcing you to get a replacement device! Making your device theft-proof, (something VERY easy to do if they wanted to,) is not something those bastards care to do.

Now, for the good news:

I have Samsung Galaxy Note 3 on Verizon.

I just installed "Smart Locksreen Protector" app, and it works like a charm, disabling the power menu all together.

I have a metal bumper on my phone. It requires a micro screwdriver to remove! I could make it even more secure by replacing the micro Phillips screws with some rare screws. This prevents someone from easily popping the battery out! They'd need tools, or something to cut the bumper off with.

Now I'm trying to find a good app that will take photos of the intruder whenever the enter the wrong pin.

like image 30
user3148026 Avatar answered Oct 22 '25 06:10

user3148026



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!