[SM-G935] How do I remap my power button? - Android Q&A, Help & Troubleshooting

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

Related

[Q] Remap power key to launch CRT shutdown app

Need help remapping power key. Someone made awesome app called screen off & lock that does crt shutdown. It would be epic if we could remap power key to launch app.
whoa awesome i just downloaded it. the power button remapping would be awesome, but the long press search button isn't half bad. that's what i'm doing now.
ravigodhwani said:
but the long press search button isn't half bad. that's what i'm doing now.
Click to expand...
Click to collapse
I use voice search all the time. I would think the coding couldn't be to hard but I don't know where to look. It would be awesome if anybody could get this to work.
yeah i'm sure a lot of people use the search button, for some reason i never really need it.
with the camera hack that allows photos to be taken with the power button, and while watching videos, the power button locks the screen while keeping it on, so i know there's gotta be a way to get it to launch this activity. i just don't have any experience with this kind of stuff.
edit -
saw an app called galaxy tuner that apparently remaps buttons, but i am unable to mess with my phone while at work. give it a shot maybe?

[Q] Screenshots on L7 II and CM11

Hello, is there any way to take screenshots but not pressing power button and selecting 'screen capture'? Like with stock rom with the quickmemo button, or maybe with volume button + power button.
Sorry for my bad english and thanks!
Fedray said:
Hello, is there any way to take screenshots but not pressing power button and selecting 'screen capture'? Like with stock rom with the quickmemo button, or maybe with volume button + power button.
Sorry for my bad english and thanks!
Click to expand...
Click to collapse
If you have Xposed+Gravity Box, you can configure many key shortcuts to do so. For instance, I configured double press on menu button to take a screen capture (as well as long press this key for Torch).
Digdis said:
If you have Xposed+Gravity Box, you can configure many key shortcuts to do so. For instance, I configured double press on menu button to take a screen capture (as well as long press this key for Torch).
Click to expand...
Click to collapse
Just installed Xposed + Gravity Box and did that, thanks for the help!

Back button, recent apps not working

Hey there
this is not my phone, its my friends phone
So phone's back button and recent apps aren't working.
He said he didn't do anything nor did the phone fall.
Phone is not rooted.
Any idea on how to fix it ?
Or any alternative softwares for recent apps and back button ?
@MJ999:
Back-function by tap on right capacitive button?
Recents by long tap on hardware-home-button?
So simple home and left menu-button work?
rp158 said:
@MJ999:
Back-function by tap on right capacitive button?
Recents by long tap on hardware-home-button?
So simple home and left menu-button work?
Click to expand...
Click to collapse
Oops sorry got confused with new samsung layout
Recent apps is hardware home button
His phone's capacitive soft keys are both gone.
MJ999 said:
Hey there
this is not my phone, its my friends phone
So phone's back button and recent apps aren't working.
He said he didn't do anything nor did the phone fall.
Phone is not rooted.
Any idea on how to fix it ?
Or any alternative softwares for recent apps and back button ?
Click to expand...
Click to collapse
To ask again: One swift tap on the hardware home button (= home) works fine?
I'm not aware of any app to replace these functions that work without root. With root you could use e.g. LMT Launcher and use it to simulate the button pushes.
Hawaiihemd said:
To ask again: One swift tap on the hardware home button (= home) works fine?
I'm not aware of any app to replace these functions that work without root. With root you could use e.g. LMT Launcher and use it to simulate the button pushes.
Click to expand...
Click to collapse
Hardware home button works fine
It's the capacitive touch that isn't working, it doesn't illuminate.
He is saying he got an app from Play store, but only limited to back button.
On the keypad type *#0*# to open the factory test menu and press "subkey". The screen will go black. Now press the menu and back capacitive buttons. If the screen changes colour you have an os issue. If the screen stays black you have a hardware fault.
I wish I stole my HTC M9.

Help! Silent mode accidentally activated

Hi,
My phone frequently goes into silent mode due to accidental long press of the shortcut button (left side physical key) which is very annoying. Furthermore, I have lost many important calls.
I already disabled the shortcut button but the long press function is still putting my phone into silent mode.
Is it possible to disable or remove long press function of the shortcut button?
Thanks in advance.
I have the same problem. Must be a function
dj_superuser said:
Hi,
My phone frequently goes into silent mode due to accidental long press of the shortcut button (left side physical key) which is very annoying. Furthermore, I have lost many important calls.
I already disabled the shortcut button but the long press function is still putting my phone into silent mode.
Is it possible to disable or remove long press function of the shortcut button?
Thanks in advance.
Click to expand...
Click to collapse
same
I got a simple solution:
Just install an app volume lock (you can find in google play store).
When you lock a volume, pressing a key won't change the volume of sound.
grzegorz_b2net said:
I got a simple solution:
Just install an app volume lock (you can find in google play store).
When you lock a volume, pressing a key won't change the volume of sound.
Click to expand...
Click to collapse
This method not working, anybody know how to disable left button? xposed additions not working too for me :/

Remap power button?

I haven't been able to figure out a way to remap the physical power button. There was an xposed module that worked great long ago, but hasn't been updated to work with oreo. I want to be able to press/long press/double tap/whatever the power key to take me to the home screen. I've used the fingerprint sensor apps, but they're hit or miss at different times, which is more frustrating than not having it. The other button mapper programs seem to work for volume keys only. Rooted/Running LOS ROM
Remapping the power button seems like such a bad idea to me. What happens if you need to reboot?
nola mike said:
I want to be able to press/long press/double tap/whatever the power key to take me to the home screen.
Click to expand...
Click to collapse
Why? What does your "home" button do? On my Nova launcher, home button takes me immediately to home screen and much easier/faster than trying to double tap fingerprint sensor, which currently turns off/on display.
Or long tapping, which currently gives you reboot options.
Remapping power button seems like an answer in search of a problem, which would cause more problems?
ChazzMatt said:
Why? What does your "home" button do? On my Nova launcher, home button takes me immediately to home screen and much easier/faster than trying to double tap fingerprint sensor, which currently turns off/on display.
Or long tapping, which currently gives you reboot options.
Remapping power button seems like an answer in search of a problem, which would cause more problems.
Click to expand...
Click to collapse
Home button takes me to home screen as well, which is usually where I want to go. If I'm holding the phone it's much easier to press a physical button to get back. I rarely reboot, so could do away with that. On my G3, I had all the buttons on the back mapped to pull up assistant, go back, go to home screen using single/double/short/long taps. It was MUCH faster to do that. Anyway, I like it, it existed before, I want to know if I can get it back.
nola mike said:
Home button takes me to home screen as well, which is usually where I want to go. If I'm holding the phone it's much easier to press a physical button to get back. I rarely reboot, so could do away with that. On my G3, I had all the buttons on the back mapped to pull up assistant, go back, go to home screen using single/double/short/long taps. It was MUCH faster to do that. Anyway, I like it, it existed before, I want to know if I can get it back.
Click to expand...
Click to collapse
So found a program called "powy". It can intercept the power button keypress and then trigger tasker. It can't distinguish long v. short press, but you can program power button to trigger by pressing 1x/2x/3x/etc. Not as good as xposed additions (which hasn't been updated since MM), but functional and better than nothing.

Categories

Resources