How to completely disable the power button with root/xposed - Android Q&A, Help & Troubleshooting

Hey,
Just out of curiosity, is there a way to completely disable the power button with root or xposed? I can disable the short click, but if I press the power button 10 seconds, the phone goes off, how can I disable this?
Greets

Is there really no way?

Related

Button Hack

Is there a way to choose which buttons are disabled when the power is off? I'd like to use a hack to enable the PPT button but have all the other button disabled...
ck

[Q] Instant wake up without swiping?

Is there a way to unlock the phone by just pressing the power button, without having to "swipe" after?
https://market.android.com/details?id=org.jraf.android.nolock

[Q] Get Power Menu Without Long Pressing Power Button

Hello,
As the title says, is there any widget kind of a thing to get the power menu, without long pressing power button?
Thank you

[QESTION] change power button function

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

[SM-G935] How do I remap my power button?

I want to remap the power button so it toggles NFC when I long press it (only when the screen is on). So far every app I've found is unable to do anything with the power button. I'm using a rooted Lineage OS 18.1.
task_manager said:
I want to remap the power button so it toggles NFC when I long press it (only when the screen is on). So far every app I've found is unable to do anything with the power button. I'm using a rooted Lineage OS 18.1.
Click to expand...
Click to collapse
Try this
Button Mapper: Remap your keys - Apps on Google Play
Remap hardware buttons to launch any app, shortcut or action
play.google.com
Keno_I said:
Try this
Button Mapper: Remap your keys - Apps on Google Play
Remap hardware buttons to launch any app, shortcut or action
play.google.com
Click to expand...
Click to collapse
Thanks, but that app doesn't work either. It says it can't modify the power button on the splash screen.
Would you want any other buttons, power button turns off the display so im not sure about NFC activating?
Keno_I said:
Would you want any other buttons, power button turns off the display so im not sure about NFC activating?
Click to expand...
Click to collapse
Lol, I know it sounds silly, but hear me out.
When you hold the power button the phone shows you a menu with the Power menu and, most importantly, card payment. As I don't want to keep NFC on all the time to avoid battery drain, I had an idea to turn on NFC every time I opened my Google Pay card payment menu (power button hold).
Ahh then you try finding an Xposed module?
You’ll find more chances of success in that way

Categories

Resources