5,597,762 Members 36,995 Now Online
XDA Developers Android and Mobile Development Forum

Change hardware button to get 'back' in the left

Tip us?
 
clonfsp
Old
#1  
Member - OP
Thanks Meter 5
Posts: 56
Join Date: Oct 2008
Default Change hardware button to get 'back' in the left

Hello,

I want to change 'back' and 'menu' keys, so 'back' to be on the rigth side and 'menu' on the left. Like Samsung (I owned one). I prefer 'back' near my finger, it is more confortable.

I have been investigating. I have found a tool here in xda called buttonremapper, but after download and test, it does not work. Also it looks a bit abandoning, so it is possible it does not work for newer devices.

I have also test xposed framework + gravity box, but it has only the option to program 'long press' and 'double touch'. Under navigation bar there is an option to do what I want, but it only do it activating 'buttons in screen', so that is not a solution for me.

I suspect there is a way to do it modifying values in a /system/usr/keyloyout file, but dont know which and what modifications.

have somebody experience doing this for our device? is there a way to achieve this?

Thanks,
 
clonfsp
Old
#2  
Member - OP
Thanks Meter 5
Posts: 56
Join Date: Oct 2008
Quote:
Originally Posted by clonfsp View Post
Hello,

I want to change 'back' and 'menu' keys, so 'back' to be on the rigth side and 'menu' on the left. Like Samsung (I owned one). I prefer 'back' near my finger, it is more confortable.

I have been investigating. I have found a tool here in xda called buttonremapper, but after download and test, it does not work. Also it looks a bit abandoning, so it is possible it does not work for newer devices.

I have also test xposed framework + gravity box, but it has only the option to program 'long press' and 'double touch'. Under navigation bar there is an option to do what I want, but it only do it activating 'buttons in screen', so that is not a solution for me.

I suspect there is a way to do it modifying values in a /system/usr/keyloyout file, but dont know which and what modifications.

have somebody experience doing this for our device? is there a way to achieve this?

Thanks,
I answer myself: it is possible modifyind the file /system/usr/keypad_8064.kl , changing the balues 'back' <-> 'menu'. It is even possible to assign buttons in another way, like right: home, center: menu and left: back.
The Following User Says Thank You to clonfsp For This Useful Post: [ Click to Expand ]
 
roscatel
Old
#3  
Senior Member
Thanks Meter 31
Posts: 127
Join Date: Oct 2012
Location: Slobozia
Code:
key 114   VOLUME_DOWN
key 115   VOLUME_UP
key 116   POWER			WAKE
key 139   MENU			VIRTUAL
key 158   BACK			VIRTUAL
key 172   HOME	 		VIRTUAL
Just change keys 139 BACK and 158 Menu

You will find it in usr/keylayout/keypad_8064.kl

ROM: CyanogenMod 11 for Samsung Galaxy S
Kenel: MIUI GearKernel
Other infos: Ondemand governor, no-op scheduler, no tweaks


LG optimus G E975
ROM: E97510b-CIS-XX 4.1.2 - MODv1.51 with Viper ZVC kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes