how to remap hardware buttons? - Sony Xperia XZ2 Compact Questions & Answers

Ok so our phone has more hardware buttons than most phones. How do you guys remap buttons without unlock or root? Is there a compatible app or tweaking settings manually thru command line to remap the buttons? What other solution is there? Will rooting provide more flexibility in this regard?

With root you can use Button Mapper from Playstore. Without root you are pretty lost i guess.

without root i could still use an app from the store to swap recents and back buttons, and add couple of extra navvar buttons..

Related

[Q] Remapping hardware keys?

Now, I know I'm probably the only one who wants to do this, but...
Just coming from an EVO LTE, and I used my App Switcher button all the time (after moving to CM10 of course), and would love to be able to remap Menu to App Switcher for fast multitasking.
Similarly, having done so, I'd like to enable the App Overflow ("three button menu" button) in apps. I'd like this even if the hardware keys can't be remapped, as the S-Pen doesn't work with the hardware keys, and it would give me one more on-screen thing I can use.
Thanks!

Mapping the hardware keys?

Is it possible to map the menu key (long press) to show all recent apps without installing a custom rom? I am willing to root to get this function but I really don't want to deal with custom roms. Is there maybe an app or something I can flash that can do this? I'm currently stock unrooted with Nova launcher, which only allows me to map the menu key (long press) to recent apps if I'm at the home screen.
I haven't been able to do what you're asking, but have had success enabling the onscreen soft keys. This requires root:
http://forum.xda-developers.com/showthread.php?t=2022058
Some things are a little wonky with soft keys: the top entry of the call log is cut off and fast forwarding video with the default player while in landscape mode doesn't work. Small price to pay IMO for easy access to the multitasking menu.

Remapping home buttons without root?

I've yet to root my 5x. Not sure if I really need to, I rooted previous phones for aosp feel. I may root and install xposed to configure the phone more to my liking. I liked being able to long press a home button for a menu key on my old device. Even at 5.2" I still can't comfortable reach the top of the device. Any way to remap home buttons short of xposed? Tx
sdny8 said:
I've yet to root my 5x. Not sure if I really need to, I rooted previous phones for aosp feel. I may root and install xposed to configure the phone more to my liking. I liked being able to long press a home button for a menu key on my old device. Even at 5.2" I still can't comfortable reach the top of the device. Any way to remap home buttons short of xposed? Tx
Click to expand...
Click to collapse
Nova Launcher can assign an action to the home button. I've always used to to open the app drawer.
That would likely only work in nova. And not within each app.

Activate softkeys navigation on any stock rom

Hi, I found you can activate softkeys on any stock rom by modify the build.prop value below
- Need root and use BuildProp Editor to edit
- Searh for words: qemu.hw.mainkeys=1 and change 1 to 0 it activates the softkeys.
- Save the changed and Reboot, your hardware key will still working as well
- The softkeys function is same to the hardware keys you can long press for screenshot, turn on camera etc
I don't know how to turn off the hardware key yet, if anyone know you can share it.
You can disable the hardware button in Settings/Accessibility/Virtual Button Control.
Just thought I'd add a little tidbit to this topic that I found after a dropped my LePro3 and lost home and back hardware key function. With the app Handy Soft Keys I now have (as the name suggests) really handy software keys. https://play.google.com/store/apps/details?id=ca.yesoft.handysoftkeys&hl=sv (There's an ad-free pro version available as well). No root required. I don't think it has the full functionality of the hardware buttons with long press, but I just needed the basic ones and if that's what someone else needs as well, well, it's there.
And by the way, if you don't want to go through settings etc hardware keys can be turned on/off easily by pressing power and volume up at at the same time.

[Request] Switch back/recents buttons

Is it possible? With root maybe?
I suppose with root, you could do it. You would just reassign the button mapping, which can be done with Gravitybox, for single tap. However, it obviously won't change the look of the button, just the functionality.
Button remapper app

Categories

Resources