Could someone tell me how to remap hard buttons to get:
menu (hold) = recent apps
back (hold) = home
in samsung stock rom
Related
I'm wondering if it is possible to patch the kernel to let we use buttons combinations, for example:
- menu + vol_up = media player next song
I've Compiled CWM Recovery 6.0.1.2 for my Hipstreet Flare
The recovery boots and the UP and DOWN for the menu works with the Vol. UP and Vol. DOWN.
I can't tell you if the BACK button works because I can't SELECT anything.
The device has 4 buttons:
VOLUME UP
VOLUME DOWN
BACK
POWER
When I use CAT on the keylayout file sun4i-keyboard.kl I get this:
Code:
key 102 HOME WAKE
key 1 BACK WAKE
key 139 MENU WAKE_DROPPED
key 115 VOLUME_UP
key 114 VOLUME_DOWN
When I use CAT on the keylayout file axp20-supplyer.kl.kl I get this:
Code:
key 116 POWER WAKE
key 102 HOME WAKE
key 1 BACK WAKE
key 139 MENU WAKE_DROPPED
key 115 VOLUME_UP
key 114 VOLUME_DOWN
There are other .kl files but some get rather long.
What do I need to change or add to by build of CWM Recovery so the POWER button and BACK work.
First of all, root is required to edit these files.
Basically, all you have to enable the software buttons, is add 'qemu.hw.mainkeys=0' to the build.prop in /system and reboot.
Deactivate the hardware keys.
Go to /system/usr/keylayout and open 'Generic.kl' in a text editor and find the lines that say 'key 139 MENU WAKE_DROPPED', 'key 158 BACK WAKE_DROPPED', and 'key 172 HOME' and place a # at the start of each line like:
#139 MENU WAKE_DROPPED
#158 BACK WAKE_DROPPED
key 172 HOME (I would not recommend and disable home)
Take care here because if you add a # to the wrong line, you won
And last, navigate to system>usr>keylayout. We will be looking for a file called "sec_touchkey.kl".
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 139 MENU
#key 158 BACK
key 102 HOME
key 217 SEARCH
UPDATE: For Customize Navbar Go to Settings-->Buttons
Just remember to remove the # - before you update the Cyanogenmod version to a newer.
I am on official build (cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J4-kenzo.zip), I want to swap the menu and back key, so I use root explorer to change the value of Menu key (from 139 to 158) and the value of Back key (from 158 to 139) of the 3 files located at /system/usr/keylayout (Atmel_maXTouch_Touchscreen.kl, Generic.kl & qwerty.kl), after that I reboot the phone and found that it was not successful, the menu key and the back key remain unchanged.
Is there any apps or methods can be easily assign the layout of the hardware touch buttons of RN3? Thanks.
I have an Xperia Mini Pro with LegacyXperia CM11 on it and I'm trying to swap home and menu buttons but it's not working.
I have changed /system/usr/keylayout/Generic.kl to
Code:
key 139 HOME WAKE
key 172 MENU WAKE_DROPPED
and restarted but nothing happen. Do I have to do something else for it to reload the keylayout from the file?
Regards
/M