[QESTION] change power button function - Android Q&A, Help & Troubleshooting

Hello. On every phone, if i hold the powrr button long inought, it will pop up a power menu. But on meizu, there is only 2 options (power off, reatart) and i found app, that have more options (recovery, turn off sounds, etc). So is possible to somehowe stop the menu function and replace it with open app function? I know that it sounds like an idiot idea, but for me it would be great. Thanks for your time and answers.
P.S.: i was thinnking about macrodroid, but it have only power button toggle (3-5 times) but every device i know lock screen after 1 time pushing power button. Sr for my english

Related

[Q] change key layout of hardware power button

I want to change how the power button functions and I need some help on where to start or for someone to tell me it's not possible.
The power key works like this,
press -> Turn screen off
long press -> Tablet options menu appears
20 sec press -> Turn off tablet
And I want to flip the press and long press functions so the power key works like this,
press -> Tablet options menu appears
long press -> Turn screen off
20 sec press -> Turn off tablet
I was looking at files in /system/usr/keylayout but don't know if I'm on the right track or how to find out key codes for long presses.
Any help is appreciated.

Power button not working. Need a work around APP

Hello. Recently my Galaxy s2 power button hasn't been working. As in when I either hold it down or press it, it doesn't lock the screne or pull the power menu. It works now and then but yeah I have to press it over and over again.I plan on getting it repaired soon but I'm looking for an workaround. I've seen apps that let me turn my phone off, lock it and such but nothing brings open the power menu button with screenshot, recovery mode, airplane mode and such. Is there anything like that out there? That with a press of the button it would open up my power menu options
try rom manager
xringo said:
Hello. Recently my Galaxy s2 power button hasn't been working. As in when I either hold it down or press it, it doesn't lock the screne or pull the power menu. It works now and then but yeah I have to press it over and over again.I plan on getting it repaired soon but I'm looking for an workaround. I've seen apps that let me turn my phone off, lock it and such but nothing brings open the power menu button with screenshot, recovery mode, airplane mode and such. Is there anything like that out there? That with a press of the button it would open up my power menu options
Click to expand...
Click to collapse
try rom manager. it has a rebooter which has all the options with it like reboot normal, download mode or recovery mode
give it a try. i use it very frequently
Quickboot from playstore
Gesendet von meinem Xperia SP
Or you can try this app Power Button.
Thanks for the replies. But is there one with an screenshot one? I want to take some screen shots but non of these seem to have it..
xringo said:
Thanks for the replies. But is there one with an screenshot one? I want to take some screen shots but non of these seem to have it..
Click to expand...
Click to collapse
Use "Button Savior" from Play Store.
It is just HW buttons on screen including power button. (Like Nexus On-Screen Keys)
And it has long press power menu also, which shows Screenshot, Airplane, Silent etc.
P.S.
[Free advice]
If you get that button repaired, use something like Proximity Sensor based app which locks and unlocks phone screen. So power button will be used less.
(I know this consumes a bit more battery, but still battery is lot cheap and easy to change than power button)
[/Free Advice]
Press Thanks if helped.
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.

[Q] Looking for SGS4 App with button mapping functions

Issue: I have a galaxy S4 that has a bad LCD. The LCD itself functions. However when the phone is locked and the screen is off, when I click the power button, the screen doesn't come back on. But if I click the power button again to lock it and click the power button again to unlock it, the screen will come back on after the second time.
So what I'm looking for is an app or mod that will allow me to map either the power button or even double clicking menu button to have the action of clicking the power button 3 times. Any advice? Thanks!

Possible work around for broken/failing power button (at least Verizon, possibly all)

Hello all... long time XDA user, not enough time poster... Ok I had the (now to me) infamous power button issue this past weekend. I was able to get my phone going after beating the bejeezus out of it. With that said, I figured I would keep to using the power button to a minimal dosage. What I have is the following- S4 rooted, with ES File explorer installed with the root option enabled, quick boot, wanam, and mylock. The easiest stuff- I set a quick boot widget for power off and one for reboot (so no power buttons for that), I use mylock for locking the phone, wanam- added screenshot to power menu (among other mods that don't pertain to this), and home button for turning phone on (or Volume button- details coming).
I am going to attach a couple of screenshots too...
With ES File Explorer (going for forward, will be labeled ES) go to Device level / scroll down to system, go to usr, and then keylayout, in there go to Generic.kl. Once in there, scroll down to Key 116. Tap the little pencil in the upper screen of ES. Copy the contents of Key 116 - POWER WAKE (I recommend copying so you have all the spaces needed), delete out the key 114 option (I chose Volume Down) and paste that in there. Now you can leave both at POWER WAKE, or you can change 116 to the VOLUME_DOWN if you want to use the power button to turn down the audio. If you blank it out or add other characters it seems to kill the back button and menu button- SO I RECOMMEND TO HAVE SOMETHING THERE. OK good... so moving on-
Hit the back button and click to save the file.
Next-
in the same level as the Generic file, go to gpio-keys.kl).. Scroll down to Key 114 and replace the VOLUME_DOWN with the POWER WAKE that you should still have on your clipboard. Hit the back button and save text.
Final, you will have to reboot your phone in order for the changes to take effect.
Going forward, if you chose to use the power button for volume down, you will no longer be able able to use the power button while the phone is on for power purposes... it will be a volume down button now. Your volume down button will act like the power, so you can bring up the power menu for shut down/screenshots/etc.
To turn the phone one (if it is off), you have a few options... if the power button still works it will power the phone on (it doesn't matter that you have made this mod, it will not allow the volume down to turn a phone on from power off. If the button is shot shot, you can use the micro usb trick to turn it on ( hold down volume down and power, plug it in, then when download comes on put volume down to restart). Or you can use a jig...
Anyway, I hope this helps someone out. Thank you for checking this out.
https://www.flickr.com/photos/[email protected]/shares/2i5mPz

Question Zenfone 9, phone can be shut down without unlocking.

So if the phone is locked, anyone without the password or proper authentication can turn on the phone then hold the power button and shut it down.
Other phones ask you to unlock the phone in order to do that so that unauthorized people can't mess with your phone.
Any help on how I can secure my device?
Thanks
It's very standard behaviour in Android phones, long press of the power button shows up the power menu with the usual "Power off" , "Reboot" and "Emergency" even if the phone is locked.
Double press the power button also usually open the default cam app (and anyone can take pics without even unlocking the phone)
If you want to disable this you can go to the settings and disable the long press power off option and the double press option
: Settings -> Advanced -> Smart Key : Disable double press and Disable press&hold
But be aware if you disable the press&hold option the only way to reboot the Zenfone 9 will be from Power icon located in the bottom right of the completely expanded notifications panel
Also if you hold power + vol down for 12s (short is screenshot) it will do a force reboot. There is a combination for almost all android phones to do this

Categories

Resources