How to swap the BACK & MENU button - LineageOS Questions & Answers

Device: Xiaomi Redmi3
I have tried to edit the qwerty.kl file in /system/usr/keylayout, swap the two strings BACK and MENU and then restart, but it doesn't work.
PS: not virtual bottons

Related

Ans for how to remap menu &home key

Tutorial in changing menu key to home key and recent app functionality on long press
Applies for all Samsung galaxy s and note s
1.First install solid explorer v1.4.3a only in this v u can edit system file only in rooted d
2.Then go to system/usr/keylayout/gpio-keys.kl .. In this change key function
Key 172 HOME to > key 172 MENU
3.Then go to system/use/key layout/sec_touchkey.kl...In this change keyfunction
Key 139 MENU to > key 139 HOME
..Then reboot now u find the menu and home key functions are interchanged u can do this in any ROM or in stock ROM
I tried a day and found it thanks

Remapping power button

I've got an issue with my power button that causes the power button to be super sensitive and occasionally get stuck so that the phone constantly reboots. I want to remap the power function to my volume up button to keep this from happening. I've done some research and everything I've seen tells me to edit open /system/usr/keylayout/gpio-keys.kl but this file does not exist on my phone. I'm running Paranoid Android with android 4.2.2.
In the /system/usr/keylayout folder I have these files instead.
Code:
AVRCP.kp
cyttsp-i2c.kl
fsa9485.kl
Generic.kl
keypad_8960.kl
msm8960-snd-card_Button_Jack.kl
qwerty.kl
sec_key.kl
sec_keys.kl
sec_powerkey.kl
sec_touchkey.kl
sii9234_rcp.kl
and a bunch of kl files that are named Vendor_045e_Product_(somenumber).kl
Which file do I need to edit to fix this problem? Any help is much appreciated, my phone is almost unusable in its current state.
Drisc0 said:
I've got an issue with my power button that causes the power button to be super sensitive and occasionally get stuck so that the phone constantly reboots. I want to remap the power function to my volume up button to keep this from happening. I've done some research and everything I've seen tells me to edit open /system/usr/keylayout/gpio-keys.kl but this file does not exist on my phone. I'm running Paranoid Android with android 4.2.2.
In the /system/usr/keylayout folder I have these files instead.
Code:
AVRCP.kp
cyttsp-i2c.kl
fsa9485.kl
Generic.kl
keypad_8960.kl
msm8960-snd-card_Button_Jack.kl
qwerty.kl
sec_key.kl
sec_keys.kl
sec_powerkey.kl
sec_touchkey.kl
sii9234_rcp.kl
and a bunch of kl files that are named Vendor_045e_Product_(somenumber).kl
Which file do I need to edit to fix this problem? Any help is much appreciated, my phone is almost unusable in its current state.
Click to expand...
Click to collapse
From memory it's sec-keys.kl. Might be sec-key.kl though, one or the other is what I used to edit back when CM didn't have disable wake from home key.

[Guide] Disable hard navigation keys (not onscreen buttons)

I have seen a bunch of posts regarding the capacitive buttons and on screen navigation buttons. Love them or hate them, this is how you can turn them off.
I will leave that up to you on how to get onscreen Navy buttons.
As for turning off the capacitive buttons this is how I did it.
1.To eneble onscreen buttons follow this thread http://forum.xda-developers.com/redmi-1s/themes-apps/how-to-onscreen-buttons-redmi-1s-t2950455
2. Download a root file explorer. Root Browser Lite --> http://goo.gl/b9ISW This is what I will use.
3.Load up Root Browser and navigate to system>usr>keylayout. We will be looking for a file called "ft5x06.kl".
4. Select it and hit "Open as..." then "Text file" then "RB Text Editor"
5. Now we see this:
key 139VIRTUAL
key 158 VIRTUAL
key 102 HOME
key 217 SEARCH
All you have to do is option out the keys you don't want to work with a #. So if you are like me and think the home button is fine, it will look like this.
#key 139VIRTUAL
#key 158 VIRTUAL
key 102 HOME
key 217 SEARCH
6. When you have the ones you want optioned out just tap the little disk icon in the top right. It will ask for root rights, grant it, saved.
7. Now just reboot and DONE!
Tested on
1. Redmi 1s(miui, Validus, Pa, mokee,cm11 ROMs)
Sent from my HM 1S using Tapatalk
Hit thanks if this post helped you[emoji106]
Nice guide, works with CM11 too, only the file for editing is different:
/system/usr/keylayout/ft5x06.kl
Don't remember to backup the original file before editing!
philip_petev said:
Nice guide, works with CM11 too, only the file for editing is different:
/system/usr/keylayout/ft5x06.kl
Don't remember to backup the original file before editing!
Click to expand...
Click to collapse
Thanks bro OP updated....:thumbup:
Sent from my HM 1S using Tapatalk
Thanks
It worked awesome on Mokee ROM history version
thanks for useful tips. its a pain operating non backlit capacitive button

Enable on-screen buttons

As I don't like the default button layout, I enabled the on-screen buttons and disabled the hardware buttons.
In case someone wants to do that, too, I thought I just post the instructions here:
1) Enable on-screen buttons
Edit the file /system/build.prop and add the following line:
qemu.hw.mainkeys=0
2) Disable hardware buttons
Edit the file /system/usr/keylayout/ft5x06.kl and comment out the following lines:
#key 139 MENU VIRTUAL
#key 102 HOME VIRTUAL
#key 158 BACK VIRTUAL
#key 217 SEARCH VIRTUAL
3) Reboot
Tested with CM11. Not sure if this would work on MIUI.
Thanks @chris5s and several other forum users. I know that there are a couple of similar posts for other phones. But I still hope this is helpful so that Redmi 1S users don't have to look in another place.

Swap back and menu buttons on PixelExperience 10.0

Hi,
I installed pixel experience and I'm pulling my hair out trying to swap my back button to the left where it belongs. I swapping keys 139 and 158 in generic.kl and qwerty.kl and rebooting but android seems to simply ignore those changes. Any ideas how I can swap them?

Categories

Resources