Disable shut down button when lock screen is on - Nexus 4 Q&A, Help & Troubleshooting

Hi,
Is there any MOD that disables the possibility to shut down the device when the phone is locked ? Its only for security reasons, because IMO it doesnt make any sense having something like Ceberus installed if the theif just can turn the phone off immediately after he/she steals it.
Thank you

Anyone ?

This would be a great mod to see. As I also use Cerberus.
Sent from my Nexus 4 using xda premium

What's the point of this mod? Someone can just hold Power Button for 10 seconds and then the device shuts off anyway. It's hard coded in the phone.
If it was any other phone with a removable battery, they can just pull the battery.
What's the point in stealing a device and then having it completely shut off?

zephiK said:
What's the point of this mod? Someone can just hold Power Button for 10 seconds and then the device shuts off anyway. It's hard coded in the phone.
If it was any other phone with a removable battery, they can just pull the battery.
What's the point in stealing a device and then having it completely shut off?
Click to expand...
Click to collapse
And on top of that, won't booting into bootloader and locking/unlocking the bootloader wipe everything anyway?

zephiK said:
What's the point of this mod? Someone can just hold Power Button for 10 seconds and then the device shuts off anyway. It's hard coded in the phone.
If it was any other phone with a removable battery, they can just pull the battery.
What's the point in stealing a device and then having it completely shut off?
Click to expand...
Click to collapse
Well it is exactly these functions I would like to have the option to disable, because it doesnt make any sense for me having this possibility on a device that's locked.
However I must admit I didn't know that a 10 sec hold on the power button shuts down the device and is hard coded into the device. Does that mean it is impossible to disable it ?
And on top of that, won't booting into bootloader and locking/unlocking the bootloader wipe everything anyway?
Click to expand...
Click to collapse
IMO the average thief is not capable of doing this

carljoe said:
Well it is exactly these functions I would like to have the option to disable, because it doesnt make any sense for me having this possibility on a device that's locked.
However I must admit I didn't know that a 10 sec hold on the power button shuts down the device and is hard coded into the device. Does that mean it is impossible to disable it ?
IMO the average thief is not capable of doing this
Click to expand...
Click to collapse
Im not a developer but that ten second thing is deep coded pretty deep within the phone. I'd say at boot loader level. Considering the phone doesn't have a removable battery you have to deep force the phone to shut down somehow. So in this case it would be to long press the power button.
And yes you are right on that, the average thief one who had the audacity to steal from others most likely don't know how to hack their phones. Otherwise I'd be highly impressed lol
Sent from my Nexus 4 using xda premium

I also need this. My cerberus is pointless this way
Sent from my Nexus 4 using xda app-developers app

Well, what is the point of having an app such as Cerberus, if said thief can just shut the phone down

Then again, the thief would have to turn on the phone at some point...
Sent from my Nexus 4 using xda premium

speedygonzo said:
Then again, the thief would have to turn on the phone at some point...
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
indeed but the more ime you have the better IMO.
and yeah would be a nice MOD, not everybody knows that pressing volume button + power will shutdown.

Wouldnt simply removing the sim card disable the function of these sorts of apps anyway?

No it doesn't. You even will get notified when the thief puts another simcard in the phone
Sent from my Nexus 4 using xda premium

zephiK said:
Im not a developer but that ten second thing is deep coded pretty deep within the phone. I'd say at boot loader level. Considering the phone doesn't have a removable battery you have to deep force the phone to shut down somehow. So in this case it would be to long press the power button.
And yes you are right on that, the average thief one who had the audacity to steal from others most likely don't know how to hack their phones. Otherwise I'd be highly impressed lol
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Its not even in software, its hardware
Sent from my Jelly Nexus 4

Found solution
Anyone found a solution for this? I know many people that want it...

A mod like:
Press power button 10 sec+ (after that) press in some order Vol+ and Vol- (example, + + + - - + - +) selectable by the user via an app/setting.
Click to expand...
Click to collapse
It would not use any additional battery or resources, since the shutdown mode (where the pass has to be input) would only start after the normal 10 sec press witch is already a rare event. Then, if the pass is wrong, return to normal mode, but if it is OK -> emergency shutdown.
If someone can make a mod like that, he/she would be god.
Since only the owner can shutdown the phone in an emergency. Making Cerberus completely valid (unless a thief has a screwdriver at hand).
PD: Is this located on the bootloader code? I would start trying it myself, or at least investigating the issue. But if it is a HW setting, then forget everything I said.

Imagine that...
carljoe said:
Hi,
Is there any MOD that disables the possibility to shut down the device when the phone is locked ? Its only for security reasons, because IMO it doesnt make any sense having something like Ceberus installed if the theif just can turn the phone off immediately after he/she steals it.
Thank you
Click to expand...
Click to collapse
Imagine a Nexus which needs a authorization both to shutdown, turn on airplane mode, enter recovery or even enter download mode (where you use that LG Flash Tool).
That would simplify the whole process of tracking.
Bonus: and what about the Location settings....if you turn off location..."Android Device Manager" stop working...instead off temporarily bypass this setting.

Related

Safe Mode

I just stumbled upon a 'safe mode' that our Atrix can be booted into, I believe its similar to windows safe mode, as in it only loads essential system files.
To do this, power off your Atrix, and press the power button to turn it on. Once the boot ANIMATION starts, immediately press and HOLD the vol up + vol down buttons until you get a long vibe, then release. you'll then see 'safe mode' at the lower left of the screen when the lockscreen comes up.
Im sure this could be of some use... for something. Just unsure exactly what this could be useful for at this point.
Is the data working? Can you make phone calls? I didn't try it yet.
Sent from my MB860 using XDA App
jgc121 said:
I just stumbled upon a 'safe mode' that our Atrix can be booted into, I believe its similar to windows safe mode, as in it only loads essential system files.
To do this, power off your Atrix, and press the power button to turn it on. Once the boot ANIMATION starts, immediately press and HOLD the vol up + vol down buttons until you get a long vibe, then release. you'll then see 'safe mode' at the lower left of the screen when the lockscreen comes up.
Im sure this could be of some use... for something. Just unsure exactly what this could be useful for at this point.
Click to expand...
Click to collapse
I'm sure there are more than this, but I've heard safe mode mainly being used by people who get the force close of death loop (aka force close loop that never ends, even when restarting). This way in safe mode you can try to do something about the app causing the trouble.
like delete it?
Safe Mode FTW! Thank you! Thank you!
I was in a force-close loop after a launcher update and this was the solution.
XDA comes through again!!!
Thank you so much!
Someone should compile all the button configurations into a thread or something like that?
Syl said:
Someone should compile all the button configurations into a thread or something like that?
Click to expand...
Click to collapse
This, and the combinations for getting into fastboot and such are the only combinations I know of...
Sent from my SAMSUNG-SGH-I747 using xda premium
G-Man. said:
This, and the combinations for getting into fastboot and such are the only combinations I know of...
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Way to go on the quick reply...Roflmao
Sent from my MB860 using xda app-developers app
I know, right? Procrastination at its finest!
Sent from my SAMSUNG-SGH-I747 using xda premium
First time I found out about safe mode, it was when I was booting my Galaxy Note and at same time rubbing it against my trousers to wipe the screen clean. In GNote, during the boot animation the Menu key has to be tapped several times, no wonder the rubbing did the trick.
It is good to know now when it would be useful.
CSharpHeaven said:
no wonder the rubbing did the trick.
Click to expand...
Click to collapse
Doesn't it always?
I can do the same in my defy...but quarxs and the orher devs never found a use for this mode...
Maybe in atrix we can use it for something.
from the (m)ATRIX...

Custom roms and non-removable battery

So this phone has a non removable battery....
A few times now I have seen the need to do a battery pull when you're installing recovery or something goes wrong with a rom install....esp when you get into a bootloop....how will this play out on a phone where you can't?
Sent from my SGH-T999 using xda app-developers app
As it's been stated countless times, either a combination of button presses, or holding down the power button for a long period will cut off the power. The exact method varies by phone though
Check the HTC One X forum. Fixed battery, and no problem whatsoever with taking care of freeze ups or lock ups. Just hold the power Key & Volume - keys for like 10 seconds, and it reboots.
Zorachus said:
Check the HTC One X forum. Fixed battery, and no problem whatsoever with taking care of freeze ups or lock ups. Just hold the power Key & Volume - keys for like 10 seconds, and it reboots.
Click to expand...
Click to collapse
i smell a bad future for me and this phone then. my volume keys are compeltly worn out on my phone right now, i can barly get to safeboot(power+volDown) as it is much less if any soft reset to break a freeze needs the buttons x.x
luckly this will be my second phone and ive found a way to nearly use every button from the screen already, still feels bad.
Besides after root you can install apps to reboot right into recovery mode or fast boot if you are a flashoholic like me to preserve volume keys
I saw a video about the phone that stated that holding down the power button for 10 seconds will turn the phone off. It's something they have to build into something that doesn't have a removable battery, not just for users but for them as well.
Same thing as a desktop, or laptop, or tablet, or any other phone that locks up. Hold the power button. It's a hardware-level thing, it works regardless of what state the device is in.
Zurginator said:
Same thing as a desktop, or laptop, or tablet, or any other phone that locks up. Hold the power button. It's a hardware-level thing, it works regardless of what state the device is in.
Click to expand...
Click to collapse
This. My HTC One X can do this anywhere - even fastboot and recovery. It's hardcoded to the button logic.
M.
It's the new Nexus, man! Hopefully you won't be putting as many ROMs on this as you would with other mobile devices.
I started doing it on my Galaxy Nexus a while ago and then I ended up going back to stock because it was just so good and I found I never needed a custom ROM on it. My HTC Desire on the other hand... well, let's just say that that thing has had a real beating with me flashing new ROMs on it almost every day! Haha!
On my Xperia T you must keep down the power button and volume up for five seconds, which forces the phone to shut down. Maybe it's the same?

Power off after unlocking the screen ONLY?

Hi guys!!
I recently installed Cerberus anti theft to protect my Nexus 4.I noticed that you can easily power off the phone altough the screen is locked.
Is there a way to prevent this?I mean that you have to unlock the screen first and then you have the right to power off the phone.
tegos said:
Hi guys!!
I recently installed Cerberus anti theft to protect my Nexus 4.I noticed that you can easily power off the phone altough the screen is locked.
Is there a way to prevent this?I mean that you have to unlock the screen first and then you have the right to power off the phone.
Click to expand...
Click to collapse
Are you worried about someone getting access to your phone? I have Cerberus and if my phone goes missing, I just use PIN lock from the Cerberus website.
Sent from my Nexus 10 using Tapatalk 2
The point he is trying to make is that if anyone got the phone they could just shut it off and none of your commands from Cerberus would be received.
tegos said:
Hi guys!!
I recently installed Cerberus anti theft to protect my Nexus 4.I noticed that you can easily power off the phone altough the screen is locked.
Is there a way to prevent this?I mean that you have to unlock the screen first and then you have the right to power off the phone.
Click to expand...
Click to collapse
You mean the hold power for 10 seconds? That's a hardware feature you cannot disable.
Sent from my Jelly Nexus 4
DarkhShadow said:
You mean the hold power for 10 seconds? That's a hardware feature you cannot disable.
Sent from my Jelly Nexus 4
Click to expand...
Click to collapse
Not only the continuous hold of power button but also when you press it for 1 second it gives you the option to power off the phone.I don't want to stop this but I want to happen only when the screen is unlocked first.Isn't there an application for this?
tegos said:
Not only the continuous hold of power button but also when you press it for 1 second it gives you the option to power off the phone.I don't want to stop this but I want to happen only when the screen is unlocked first.Isn't there an application for this?
Click to expand...
Click to collapse
Im also looking for the same. Let me know if u find one.
kgeissler said:
Are you worried about someone getting access to your phone? I have Cerberus and if my phone goes missing, I just use PIN lock from the Cerberus website.
Sent from my Nexus 10 using Tapatalk 2
Click to expand...
Click to collapse
That does you no good if the phone is powered off. He is looking for a way to disable the power off feature at the screen lock swipe/pin/pass (whatever it is you happen to use). When you correctly input your secret swipepin/pass you can then power off the phone.
I too am in need of this. would have helped recover a lost phone that I am looking for that would be easy to locate if the thing was actually powered up, but since it can be powered off without first unlocking the main screen I think I may be **** out of luck.

[Q]Possible to make it so you can't turn phone off when PIN locked?

I'm not sure if this is a simple setting or if my question is completely idiotic. Though... My main reason for asking this question is because I'm not sure how phone tracking works (using Cerebus) though if the phone is turned off can the phone still be tracked? If so, what's stopping a user from just powering down my N4 and just formatting it through Fastboot? Thanks in advance for anyone who has a solution to my problem or a explanation as to why my idea is completely illogical.
Lol my best mate has been saying this for months. He wants an app that basically asks for a pin to shut the phone down. Sealed phones have no battery pull so he wants to make sure only he can shut the phone down by a pin / pattern method. Just like an unlock but reversed for locking. This meaning you would in theory be very likely to track your phone in time before it runs out of juice etc or whatever.
So I don't think your question is silly and I'm very interested in any development known.
Sent from my Nexus 4
Well even if someone actually writes an app that asks for a PIN when the you tap on Shut Down, there's still a hardware implementation that will force your phone to reboot or turn off if you press the power button long enough (10-15 seconds I think).
It acts as an alternative to battery pulls.
starscream92 said:
Well even if someone actually writes an app that asks for a PIN when the you tap on Shut Down, there's still a hardware implementation that will force your phone to reboot or turn off if you press the power button long enough (10-15 seconds I think).
It acts as an alternative to battery pulls.
Click to expand...
Click to collapse
Yes I kind of tried to explain to my mate that there are always ways to turn the phone off and that maybe his idea is flawed. Thanks.
Sent from my Nexus 4

[Q] Can enter bootload but nothing else.

So recently my phone went into Deep Hibernation so I plugged it into a charger and held down Power, Volume down.
I managed to get into the boot loader screen but only the volume keys are responsive to select options but the power button is unresponsive.
I have no idea on how to start the phone or turn it off anymore, what can I do?
Is your bootloader unlocked. If it is use fastboot reboot. That should boot your device
Sent from my Nexus 5 using XDA Free mobile app
Well I have no idea if it's in Fastboot or not. Currently the phone is stuck in the mode where there's an arrow pointing towards the power button and 2 white arrows with representation to the volume buttons. I think it's in Fastboot right now but again, the power button isn't working at all to select anything.
I'm not too familiar with these terms. All I know is that I have the phone unlocked and Paranoid Android installed.
TheBluePylon said:
Well I have no idea if it's in Fastboot or not. Currently the phone is stuck in the mode where there's an arrow pointing towards the power button and 2 white arrows with representation to the volume buttons. I think it's in Fastboot right now but again, the power button isn't working at all to select anything.
I'm not too familiar with these terms. All I know is that I have the phone unlocked and Paranoid Android installed.
Click to expand...
Click to collapse
Sounds like you're in fastboot mode. From a command prompt on your pc and with the usb cable plugged between your phone and the pc, type fastboot reboot. It should boot your device. Hopefully that will clear what ever is causing your power button not to work
Sent from my Nexus 5 using XDA Free mobile app
Do I need any sort of program to connect a cmd to my phone? As of right now my phone isnt even registered as a device when it's connected to my computer. Mind giving me a step by step?
TheBluePylon said:
Do I need any sort of program to connect a cmd to my phone? As of right now my phone isnt even registered as a device when it's connected to my computer. Mind giving me a step by step?
Click to expand...
Click to collapse
Try this
http://forum.xda-developers.com/showthread.php?p=48915118
Sent from my Nexus 5 using XDA Free mobile app
Well I managed to reboot it and get back phone's home screen. Though I still have the issue of the fact that my lock/power button is completely busted and/or unresponsive.
Should I just install an app that will serve as an alternative to the power button? By now my Warranty would've already expired and I would have no way of getting it repaired. Are there checks I can make to see whether or not it's a software or hardware fault?
TheBluePylon said:
Well I managed to reboot it and get back phone's home screen. Though I still have the issue of the fact that my lock/power button is completely busted and/or unresponsive.
Should I just install an app that will serve as an alternative to the power button? By now my Warranty would've already expired and I would have no way of getting it repaired. Are there checks I can make to see whether or not it's a software or hardware fault?
Click to expand...
Click to collapse
My best guess is it's a hardware issue. A local cell phone repair shop can put in a new power button without a lot of cost.
Sent from my Nexus 5 using XDA Free mobile app

Categories

Resources