remap left capacitive button functions to switch apps - Galaxy S III Q&A, Help & Troubleshooting

I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:

Could you tell how would be the exact commands to make the buttons "back", "home(already is)" and "menu" respectively from left to right?
Sent from my Galaxy Note II using xda app-developers app

_delice_doluca_ said:
Could you tell how would be the exact commands to make the buttons "back", "home(already is)" and "menu" respectively from left to right?
Sent from my Galaxy Note II using xda app-developers app
Click to expand...
Click to collapse
OK, originally, the lines in the generic.kl for the 3 buttons should be like this:
key 139 MENU WAKE_DROPPED
key 102 MOVE_HOME
key 158 BACK WAKE_DROPPED
If you want to change function of the buttons, you just need to know the function name, in my case, I want to change the function of the left capatcitive button function from menu to switch apps. Therefore I serach around the web and found that the function name is APP_SWITCH, then, I just need to replace the "MENU" to "APP_SWITCH" in the Generic.kl file in order to change the function.
After the changes, the line should be as follow:
key 139 APP_SWITCH WAKE_DROPPED
So, same theory, you could switch the functions of those keys, for example, if you want to switch the menu and back key, all you need to do is change to :
key 139 BACK WAKE_DROPPED
key 158 MENU WAKE_DROPPED
In addition, the word" wake_dropped" means that the key will function when your device is awake, that means, when your phone is not awake ( screen is off), the key will not function.
So,theoretically, if you want the keys to function when the phone is not awake ( when the screen is off), you could change the word" wake_dropped" to "WAKE" ( I have not tried, you could try that out). By doing so, you could wake the phone and perform the key function at the same time even when your phone is not awake.

anguslaw said:
I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
how about keeping menu function
but long press will initiate switch apps?
This would be great :good:

Actually, mounting function to a long press capacitive key is not that simple,therefore I think it is not worthy to do so.
Alternatively, I would suggest installing virtual button apps such as button savior and add the menu function to it.
Sent from my GT-I9305 using xda app-developers app

neato4u said:
how about keeping menu function
but long press will initiate switch apps?
This would be great :good:
Click to expand...
Click to collapse
1+

I would like to be able to do that long press thing too, in the meantime I use LMT to get to my multitasking, that's definitely a lot snappier than the home button

anguslaw said:
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
Hi, do you know how to make this work on Tmobile Galaxy S3 rooted official firmware 4.3 ?
I edit the file, save, exit, reboot but it didn't work. Menu button still behave the same, open Generic.kl file to check, new text is there. Don't understand.
Thanks!

nguyen2011 said:
Hi, do you know how to make this work on Tmobile Galaxy S3 rooted official firmware 4.3 ?
I edit the file, save, exit, reboot but it didn't work. Menu button still behave the same, open Generic.kl file to check, new text is there. Don't understand.
Thanks!
Click to expand...
Click to collapse
Sorry I am using omni 4.4.2 ROM now, there is already an option to assign functions to the keys, so I have no need to do in the other way. Can't help.

This works as a charm, however Android does not recognize that we no longer have a menu button. The tree dots in Chrome are not present for example. Is there a way of telling the system that no physical menu botton is there, so that apps show the soft menu?
Thanx!

molm said:
This works as a charm, however Android does not recognize that we no longer have a menu button. The tree dots in Chrome are not present for example. Is there a way of telling the system that no physical menu botton is there, so that apps show the soft menu?
Thanx!
Click to expand...
Click to collapse
use xposed, there are modules to force enable 3-dot menu button

anguslaw said:
I always want the left capacitive key to perform the function - switch apps ( recent apps) because long pressing the home button to call out switch apps function is time consuming (it takes about 2 seconds) and need too much effort ( the button is so tight).
I googled around and figure out how to do that. I think a lot of people will have interest in such changes, so I would post here.
Actually, it is easy. What you need is a rooted phone and a root explorer( an app)
Then, in the root explorer, open /system/usr/keylayout/Generic.kl in Text Editor, scroll down and find key 139 ( this is the key you need to change) change the word" menu" to " APP_SWITCH" after the key 139. save and exit then reboot.
This changes change the left capacitive button function to open switch apps function. Of course , you will lose the menu function.
Hope it helps. :laugh:
Click to expand...
Click to collapse
Thank you for the generosity to share such a great knowledge. you really made my day. Wish you the best in life.
I also want the same thing if is possible
how to have menu or other function by press and holding the capacitive button.
Sent from my GT-I9500 using Tapatalk

Actually i would suggest installing xposed framework and use the module menubegone to performe same function-remap menu key to switch app key.
In addition it forced every apps to show the 3 dots menu button on the top left corner. That means the menu function is no longer needed. Try it out guys. This is the simplest way now.
Sent from my GT-I9305 using XDA Premium 4 mobile app

Help Remap Home key on galaxy note 4
anguslaw said:
OK, originally, the lines in the generic.kl for the 3 buttons should be like this:
key 139 MENU WAKE_DROPPED
key 102 MOVE_HOME
key 158 BACK WAKE_DROPPED
If you want to change function of the buttons, you just need to know the function name, in my case, I want to change the function of the left capatcitive button function from menu to switch apps. Therefore I serach around the web and found that the function name is APP_SWITCH, then, I just need to replace the "MENU" to "APP_SWITCH" in the Generic.kl file in order to change the function.
After the changes, the line should be as follow:
key 139 APP_SWITCH WAKE_DROPPED
So, same theory, you could switch the functions of those keys, for example, if you want to switch the menu and back key, all you need to do is change to :
key 139 BACK WAKE_DROPPED
key 158 MENU WAKE_DROPPED
In addition, the word" wake_dropped" means that the key will function when your device is awake, that means, when your phone is not awake ( screen is off), the key will not function.
So,theoretically, if you want the keys to function when the phone is not awake ( when the screen is off), you could change the word" wake_dropped" to "WAKE" ( I have not tried, you could try that out). By doing so, you could wake the phone and perform the key function at the same time even when your phone is not awake.
Click to expand...
Click to collapse
What is the key number for long press home key?
---------- Post added at 07:54 AM ---------- Previous post was at 07:49 AM ----------
eddi3chan said:
What is the key number for long press home key?
Click to expand...
Click to collapse
What is the key number for long press home key? I want to change on my galaxy note 4 long press home key to open recent apps. and the left soft key for Menu.

eddi3chan said:
What is the key number for long press home key?
---------- Post added at 07:54 AM ---------- Previous post was at 07:49 AM ----------
What is the key number for long press home key? I want to change on my galaxy note 4 long press home key to open recent apps. and the left soft key for Menu.
Click to expand...
Click to collapse
sorry man , its a very old post . i now didnt do it this way. i install xposed framework and the xposed addition module to remap the keys. try it out.
let me know if you need further help.
in addition , as far as i remember, the home button need not use this method, my method in op is for captative buttons. for hardware buttons it is easier. try search in xda if you dont want to use xposed framework.
Sent from my GT-I9305 using XDA Free mobile app

Is there any chance of soft bricking the phone by doing this? I tried to bring soft keys with an app and after restarting the phone was stuck in bootload.

So simple
Buttons remapper app in playstore worked flawlessly!! Try that first... I SCOURED internet for answers to this question. I know this isn't a "developer" type solution... But it worked for THIS noob.

cowleygail said:
Buttons remapper app in playstore worked flawlessly!! Try that first... I SCOURED internet for answers to this question. I know this isn't a "developer" type solution... But it worked for THIS noob.
Click to expand...
Click to collapse
It worked like a charm on My Samsung Galaxy J7 pro. Thank you. You made my day.

Related

Toggle lock/unlock screen using the touch search button

Anyone knows if the buttonremapper app would work for att sgn, say, by remapping the touch search button at the right bottom of the phone ? Thanks.
jcc266 said:
Anyone knows if the buttonremapper app would work for att sgn, say, by remapping the touch search button at the right bottom of the phone ? Thanks.
Click to expand...
Click to collapse
With root, this should be able to be accomplished by editing the same text file as the "swap search and menu key hack". Just figure out the correct keycode for the power button. Not sure if a capacitative button could be used for wakeup though.
softkey can't be use to wake up the phione/screen...
lastdeadmouse said:
With root, this should be able to be accomplished by editing the same text file as the "swap search and menu key hack". Just figure out the correct keycode for the power button. Not sure if a capacitative button could be used for wakeup though.
Click to expand...
Click to collapse
Thanks for responding. Since my SGN was rooted, so I used a root browser to replace key 217 SEARCH in sec_touchkey.kl file in system/usr/keylayout/ with key 116 POWER. As you suspected, it appeared that the capacitative search button (softkey) can not be replaced by the capacitative POWER (WAKE?) button for wakeup.
So a hardkey must be used instead for wakeup?
jcc266 said:
Thanks for responding. Since my SGN was rooted, so I used a root browser to replace key 217 SEARCH in sec_touchkey.kl file in system/usr/keylayout/ with key 116 POWER. As you suspected, it appeared that the capacitative search button (softkey) can not be replaced by the capacitative POWER (WAKE?) button for wakeup.
So a hardkey must be used instead for wakeup?
Click to expand...
Click to collapse
Yeah, I was kind of guessing that capacitative were not active as a part of screenlock. Looks like it.
Sent from my SAMSUNG-SGH-I717 using xda premium

Remap Hardware Buttons?

So I want to remap the hardware buttons, but ran into some issues:
google searches say to edit the /system/usr/keylayout/sec_touchkey.kl (for previous galaxy devices), but this file is mysteriously absent on my stock rooted s4.
I tried other files in this /system/usr/keylayout/ folder; atmel_mxt_ts.kl seemed promising in its content:
Code:
key 139 MENU
key 102 HOME
key 158 BACK
key 217 SEARCH
Changing these, however, did nothing.
Am I searching in the right place, just in the wrong files? Is there a file chmod permission I might be missing?
I think there was also a jar file (android.policy.jar?) I'd have to decompile if I wanted to change the long-press actions for these buttons?
Can I override the double-press home button to do something different than s-voice? (I know I can disable the app itself)
Thanks!
disable the button
Mix3d said:
So I want to remap the hardware buttons, but ran intofiles into some issues:
google searches say to edit the /system/usr/keylayout/sec_touchkey.kl (for previous galaxy devices), but this file is mysteriously absent on my stock rooted s4.
I tried other files in this /system/usr/keylayout/ folder; atmel_mxt_ts.kl seemed promising in its content:
Code:
key 139 MENU
key 102 HOME
key 158 BACK
key 217 SEARCH
Changing these, however, did nothing.
Am I searching in the right place, just in the wrong files? Is there a file chmod permission I might be missing?
I think there was also a jar file (android.policy.jar?) I'd have to decompile if I wanted to change the long-press actions for these buttons?
Can I override the double-press home button to do something different than s-voice? (I know I can disable the app itself)
Thanks!
Click to expand...
Click to collapse
I was also looking all over for this. Did what you did and also other. kl in the system usr no change also . Using 3minit mod. Wanted to disable the hardware button as having the navigation bar and therefore now having two back button.
Anyone here with any idea to share?
kelvinator said:
I was also looking all over for this. Did what you did and also other. kl in the system usr no change also . Using 3minit mod. Wanted to disable the hardware button as having the navigation bar and therefore now having two back button.
Anyone here with any idea to share?
Click to expand...
Click to collapse
i dont have an S4 at the moment and i cant remember the exact file name but its under system/usr/keylayout looking through a rom file i think its gpio-keys.kl just mount the folder as read/write then comment out the lines you dont want using # then reboot
what did you do to enable the navbar when i had i was using an S4 last week the only way i could get it working was with an AOSP rom which meant no samsung camera or IR
*edit i should add that this was on the verizon S4
success disable hardware back button
I finally managed to disable the button. Its in system/usr/generic.kl . Place# infront of key 159 back and reboot. Done.
Got navigation bar using 3minit setting and mod.
If it works for you hitting the Thanks button will help. Cheers
---------- Post added at 05:28 AM ---------- Previous post was at 05:25 AM ----------
Correction. In system/usr/keylayout/generic.kl.
I am on omega v6.0 with 3minit mod.
kelvinator said:
I finally managed to disable the button. Its in system/usr/generic.kl . Place# infront of key 159 back and reboot. Done.
Got navigation bar using 3minit setting and mod.
If it works for you hitting the Thanks button will help. Cheers
---------- Post added at 05:28 AM ---------- Previous post was at 05:25 AM ----------
Correction. In system/usr/keylayout/generic.kl.
I am on omega v6.0 with 3minit mod.
Click to expand...
Click to collapse
Good to know, but my use case is a little different... I'm hoping to swap/ change the soft keys, not disable.
But if generic.kl worked for you, that's a good place for me to start. Will play around and post back if I can swap the menu/back button, hopefully the long press options as well. Ideally I want to move a lot of things around, (long press home for gnow, back to recent, long for menu, menu to back) but we'll see.
I'm on stock rooted, which is why I still need functionality
based on how I see it. I think it could be done
I will try it out if I could swap the menu and home like how you wanted. But you definitely need to be rooted first to edit the files
tried it changing key 139 MENU with BACK. saved reboot with success. Menu function swap to back function.
rem you got to be rooted for this to work. ..
kelvinator said:
I will try it out if I could swap the menu and home like how you wanted. But you definitely need to be rooted first to edit the files
tried it changing key 139 MENU with BACK. saved reboot with success. Menu function swap to back function.
rem you got to be rooted for this to work. ..
Click to expand...
Click to collapse
Is a long press registered as a different key for mapping purposed?
Like menu button is 001 but long press menu is 002?
Ultimately I'd like to be able to make a long press on the home button turn the screen off. That's my end goal with that question.
Mix3d said:
Good to know, but my use case is a little different... I'm hoping to swap/ change the soft keys, not disable.
But if generic.kl worked for you, that's a good place for me to start. Will play around and post back if I can swap the menu/back button, hopefully the long press options as well. Ideally I want to move a lot of things around, (long press home for gnow, back to recent, long for menu, menu to back) but we'll see.
I'm on stock rooted, which is why I still need functionality
Click to expand...
Click to collapse
In the generic.kl file, just change the labels to what you want. For instnace, where it says 117 VOLUME_UP WAKE (thats just an example) remove the volume_up and put MENU or BACK or whatever you want there.
Skipjacks said:
Is a long press registered as a different key for mapping purposed?
Like menu button is 001 but long press menu is 002?
Ultimately I'd like to be able to make a long press on the home button turn the screen off. That's my end goal with that question.
Click to expand...
Click to collapse
The system interupts the key down press, it then launches a post delayed runnable when you press down, if the key is pressed down for the length of that post delayed, then essentially "long press" has been executed. The runnable then consumes the the original key press to prevent the key from executing.
elesbb said:
In the generic.kl file, just change the labels to what you want. For instnace, where it says 117 VOLUME_UP WAKE (thats just an example) remove the volume_up and put MENU or BACK or whatever you want there.
The system interupts the volume down press, it then launches a post delayed runnable when you press down, if the key is pressed down for the length of that post delayed, then essentially "long press" has been executed. The runnable then consumes the the original key press to prevent the key from executing.
Click to expand...
Click to collapse
Right, so then how do we override the long press?
Mix3d said:
Right, so then how do we override the long press?
Click to expand...
Click to collapse
If you are trying to do it via the system. Meaning overriding system button presses, then you will have to edit the smali code. I believe the method is interceptKeyBeforeQueing or something like that.
where the hell is the 'soft' back button on this phone? so annoying i can't find it! or do i need to use a 3rd party launcher and rid of that stock touchwiz crap...phone is not rooted
cobyman7035 said:
where the hell is the 'soft' back button on this phone? so annoying i can't find it! or do i need to use a 3rd party launcher and rid of that stock touchwiz crap...phone is not rooted
Click to expand...
Click to collapse
You are in the wrong place, bud. Please ask questions like this in the q and a forum. This is a development forum for development related discussion.
And do try to be a tad calmer when posting. There are tons of people who will be happy to help. But the aggressive tone of your post will prevent many people from wanting to assist.
Also...really? Its the arrow to the right of the home button on the bottom right of the phone.
Sent from your phone. You should be careful where you leave that thing.
Found this at the AOSP Site:
http://source.android.com/tech/input/key-layout-files.html
Key layout files are located by USB vendor, product (and optionally version) id or by input device name.
The following paths are consulted in order.
Code:
/system/usr/keylayout/Vendor_XXXX_Product_XXXX_Version_XXXX.kl
/system/usr/keylayout/Vendor_XXXX_Product_XXXX.kl
/system/usr/keylayout/DEVICE_NAME.kl
/data/system/devices/keylayout/Vendor_XXXX_Product_XXXX_Version_XXXX.kl
/data/system/devices/keylayout/Vendor_XXXX_Product_XXXX.kl
/data/system/devices/keylayout/DEVICE_NAME.kl
/system/usr/keylayout/Generic.kl
/data/system/devices/keylayout/Generic.kl
Click to expand...
Click to collapse
Another potentially useful resource is this list of keycodes:
http://source.android.com/tech/input/keyboard-devices.html
I haven't had time to play much with this stuff yet, but I DID try the KeynrTracker.apk listed here, however it does not seem to register any of the long presses, leaving us only with menubutton as 139 and back as 158. It could have something to do with the way this app is designed, or in the way Samsung is firing these button presses.
More to come.
Mix3d said:
Found this at the AOSP Site:
http://source.android.com/tech/input/key-layout-files.html
Another potentially useful resource is this list of keycodes:
http://source.android.com/tech/input/keyboard-devices.html
I haven't had time to play much with this stuff yet, but I DID try the KeynrTracker.apk listed here, however it does not seem to register any of the long presses, leaving us only with menubutton as 139 and back as 158. It could have something to do with the way this app is designed, or in the way Samsung is firing these button presses.
More to come.
Click to expand...
Click to collapse
I already explained how long presses work
Sent from my SGH-M919 using Tapatalk 2
elesbb said:
I already explained how long presses work
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
"Edit the smali code" doesn't really count... what file to decompile? Which lines?
I'm completely new to this level of android modifications
Can this be used to make "Menu" button work as recents and "Menu hold" as menu?
jastonas said:
Can this be used to make "Menu" button work as recents and "Menu hold" as menu?
Click to expand...
Click to collapse
I have changed menu to recents. Just edit the file in system/usr
I haven't changed 'menu hold' to menu yet, requires decompiling and I'm lazy.
3473 said:
I have changed menu to recents. Just edit the file in system/usr
I haven't changed 'menu hold' to menu yet, requires decompiling and I'm lazy.
Click to expand...
Click to collapse
Then how do you use the menu of so many apps that don't have the 3 dots?
3473 said:
I have changed menu to recents. Just edit the file in system/usr
I haven't changed 'menu hold' to menu yet, requires decompiling and I'm lazy.
Click to expand...
Click to collapse
decompiling WHICH file? throw me a bone, dude!
Mix3d said:
decompiling WHICH file? throw me a bone, dude!
Click to expand...
Click to collapse
That's what Google is for! We all started there!! I'll give you a hunt it lies within system/framework directory and starts with an a ^-^
Sent from my SGH-M919 using Tapatalk 2

Looking to remap my home key and soft keys

Looking to remap my home key, and my menu and back soft keys on my s3. I've looked at editing scripts, and even Xposed modules for this and here is what I found.
I can remap my keys manually, but I cannot map them to open an application.
With Gravity Box Module, I can map the applications to launch on a double press or a long press.
Here is what I want to do with a single tap.
[MENU SOFT KEY] [HOME KEY] [BACK SOFT KEY]
Open Phone Open search Open Camera
Is there an xposed module for this?
Bump.
vbetts said:
Bump.
Click to expand...
Click to collapse
Not sure there is a module for it..but all button controls are in android.policy.jar.. it would take a heavy re working to get all those things.. not saying it's not possible but..yea..not easy
Sent from my SCH-I605 using xda app-developers app
I've reset them in the touchkeys.kl file under keychars, but I cannot get CAMERA to map on the back button. I can get other actions too, but CAMERA Won't map. Here's my thread in the 747 section.
http://forum.xda-developers.com/showthread.php?t=2705040
I'm doing a few tweaks on my phone, mainly not using the capacitive keys as menu and back, and using the home key as the app switcher, and using the nav bar for those three tasks. Here's what I've got so far.
I edited a few files under system/usr/keylayout
The Menu and Search key layouts were found under sec_touchkey.kl(Home was also found under this, but I had to also edit sec_keys.kl and sec_key.kl to get the home key as the app switcher)
Here's the default settings.
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 102 HOME
key 217 SEARCH
Here's what I set them to.
key 139 CALL VIRTUAL
key 158 CAMERA VIRTUAL
key 102 APP_SWITCH
key 217 SEARCH
Changing the roles of keys 139 and 102 worked, but Camera does not open the camera. I've tried assigning different roles to key 158 and they've worked except for the camera role. So I'm thinking CAMERA is not the correct event name to open the camera up....
http://developer.android.com/referen...KEYCODE_CAMERA
That's where I got the keyEvent listings from.
Rom is in my signature.
Click to expand...
Click to collapse

Restore Menu Button functionality (S4 style)

For reasons of my own, I didn't like the app switcher functionality of the capacitive button (prefer long press instead). I wanted the left softkey to act like it did on the S4, my Note 2014, etc.
After much research, I was able to find the steps needed to make this work. No one seemed to have posted the steps before, so here we go:
1) Download a file manager with root access
2) Navigate to system>usr>keylayout and open Generic.kl in a text editor.
3) Look for key 254 and change APP_SWITCH to MENU
4) Save and reboot
A step further, to have long press activate the app switcher, will come later when I have time to check.
Credits:digitalrelic (http://forum.xda-developers.com/showthread.php?t=2690067)
cyanprinter said:
For reasons of my own, I didn't like the app switcher functionality of the capacitive button (prefer long press instead). I wanted the left softkey to act like it did on the S4, my Note 2014, etc.
After much research, I was able to find the steps needed to make this work. No one seemed to have posted the steps before, so here we go:
1) Download a file manager with root access
2) Navigate to system>usr>keylayout and open Generic.kl in a text editor.
3) Look for key 254 and change APP_SWITCH to MENU
4) Save and reboot
A step further, to have long press activate the app switcher, will come later when I have time to check.
Credits:digitalrelic (http://forum.xda-developers.com/showthread.php?t=2690067)
Click to expand...
Click to collapse
Thanks cyanprinter,
I was looking for a solution since day 1, I didn't want to mess with xposed as some are paying here issues (in some cases) after installing it, so i wanted give it some time mature with the S5.
I'll wait until you find the solution for the recent-apps remapping so I could make the switch.
Thanks!
Sent from my SM-G900T using xda premium
No problem! For the recent apps remapping, that is one more keymap change required, I just have to figure out which one. I'm trying to get AllianceRom up and running (Life sucks without CM lol) so until then I won't be able to continue.
xposed never seemed to allow me to change it, I bought it and some modules and I couldn't find anything, except one module that makes other phones with menu buttons behave like the stock S5.
gilbnx said:
Thanks cyanprinter,
I was looking for a solution since day 1, I didn't want to mess with xposed as some are paying here issues (in some cases) after installing it, so i wanted give it some time mature with the S5.
I'll wait until you find the solution for the recent-apps remapping so I could make the switch.
Thanks!
Sent from my SM-G900T using xda premium
Click to expand...
Click to collapse
I'll be the guy to ask for the noons.. I just like to have my mods available in a fol
cyanprinter said:
No problem! For the recent apps remapping, that is one more keymap change required, I just have to figure out which one. I'm trying to get AllianceRom up and running (Life sucks without CM lol) so until then I won't be able to continue.
xposed never seemed to allow me to change it, I bought it and some modules and I couldn't find anything, except one module that makes other phones with menu buttons behave like the stock S5.
Click to expand...
Click to collapse
Can we get flashabke zips one to change and one to revert. I like to have all mods in a folder on SD so I can revert and or redo after wipe. Thanks! Lol I don't even have my s5 it'll be here by Tuesday. I've spent more time reading up waiting for it then I did the whole time I had s4.
cyanprinter said:
For reasons of my own, I didn't like the app switcher functionality of the capacitive button (prefer long press instead). I wanted the left softkey to act like it did on the S4, my Note 2014, etc.
After much research, I was able to find the steps needed to make this work. No one seemed to have posted the steps before, so here we go:
1) Download a file manager with root access
2) Navigate to system>usr>keylayout and open Generic.kl in a text editor.
3) Look for key 254 and change APP_SWITCH to MENU
4) Save and reboot
A step further, to have long press activate the app switcher, will come later when I have time to check.
Credits:digitalrelic (http://forum.xda-developers.com/showthread.php?t=2690067)
Click to expand...
Click to collapse
Is key 254 the same for both APP_SWITCH and MENU? I'm going to swap some things around after a backup and see if I can get the next step for ya.
Edit: Recovery showed Key Test was 254 but wont allow to check the long press so just tried it. Swapped them in the editor.
254 - MENU
139 - APP_SWITCH
Reboot to recovery, clear cache/dalvic and still nothing, any other ideas?? Doesnt effect it at all.
cyanprinter said:
For reasons of my own, I didn't like the app switcher functionality of the capacitive button (prefer long press instead). I wanted the left softkey to act like it did on the S4, my Note 2014, etc.
After much research, I was able to find the steps needed to make this work. No one seemed to have posted the steps before, so here we go:
1) Download a file manager with root access
2) Navigate to system>usr>keylayout and open Generic.kl in a text editor.
3) Look for key 254 and change APP_SWITCH to MENU
4) Save and reboot
A step further, to have long press activate the app switcher, will come later when I have time to check.
Credits:digitalrelic (http://forum.xda-developers.com/showthread.php?t=2690067)
Click to expand...
Click to collapse
Awesome. I will certainly do this once you (or someone else) figure out how to have long press activate the app switcher.
Or you could always hold press the button?
It's been a week and a half and I still can't get used to not having the menu button. Thanks for sharing.
Sent from my SM-G900T using XDA Premium 4 mobile app
CanadianKB said:
Can we get flashabke zips one to change and one to revert. I like to have all mods in a folder on SD so I can revert and or redo after wipe. Thanks! Lol I don't even have my s5 it'll be here by Tuesday. I've spent more time reading up waiting for it then I did the whole time I had s4.
Click to expand...
Click to collapse
Here you go.
Always safe to make backup before flashing anything
Mod - https://www.dropbox.com/s/w8xe7vm0l8men8i/GS5 Menu Button (S4 style).zip
Stock - https://www.dropbox.com/s/6vna358rswllgzh/GS5 Menu Button (Stock).zip
---------- Post added 29th April 2014 at 12:27 AM ---------- Previous post was 28th April 2014 at 11:28 PM ----------
hmm interesting , by the looks APP_SWITCH needs to be placed around here
# samsung dummy key (common)
key 249 DUMMY_HOME1
key 250 DUMMY_HOME2
key 251 DUMMY_MENU
key 252 DUMMY_HOME
key 253 DUMMY_BACK
With MENU edit added hold key and it brings up Home screen edit , Push menu key again while thats open and App switch displays.
Im thinking line 252 needs edit I will play tomorrow
sling said:
Here you go.
Always safe to make backup before flashing anything
Mod - https://www.dropbox.com/s/w8xe7vm0l8men8i/GS5 Menu Button (S4 style).zip
Stock - https://www.dropbox.com/s/6vna358rswllgzh/GS5 Menu Button (Stock).zip
---------- Post added 29th April 2014 at 12:27 AM ---------- Previous post was 28th April 2014 at 11:28 PM ----------
hmm interesting , by the looks APP_SWITCH needs to be placed around here
# samsung dummy key (common)
key 249 DUMMY_HOME1
key 250 DUMMY_HOME2
key 251 DUMMY_MENU
key 252 DUMMY_HOME
key 253 DUMMY_BACK
With MENU edit added hold key and it brings up Home screen edit , Push menu key again while thats open and App switch displays.
Im thinking line 252 needs edit I will play tomorrow
Click to expand...
Click to collapse
I'd love to test and help but when I went and edited everything yesterday, things went right back to the original form after a reboot? I changed to mount SD etc but not sure what I'm missing.
gravity box has work fine for me since day one with alliance rom
losplatanos said:
gravity box has work fine for me since day one with alliance rom
Click to expand...
Click to collapse
Yes but it been known to break S-Health, among other things..
sling said:
Here you go.
Always safe to make backup before flashing anything
Mod - https://www.dropbox.com/s/w8xe7vm0l8men8i/GS5 Menu Button (S4 style).zip
Stock - https://www.dropbox.com/s/6vna358rswllgzh/GS5 Menu Button (Stock).zip
---------- Post added 29th April 2014 at 12:27 AM ---------- Previous post was 28th April 2014 at 11:28 PM ----------
hmm interesting , by the looks APP_SWITCH needs to be placed around here
# samsung dummy key (common)
key 249 DUMMY_HOME1
key 250 DUMMY_HOME2
key 251 DUMMY_MENU
key 252 DUMMY_HOME
key 253 DUMMY_BACK
With MENU edit added hold key and it brings up Home screen edit , Push menu key again while thats open and App switch displays.
Im thinking line 252 needs edit I will play tomorrow
Click to expand...
Click to collapse
I have edited this line and actually disabled all keys, even power. Currently in using lmt app for recent apps and reverted the menu button back to menu. Currently long pressing menu button for me brings up search. I've tried changing line 217? I think that is search and that didn't work either. I've done some reading and this might require more than editing, possibly some decompiling
How about making the back key the recent apps? the way it used to be
Never had a phone like that, for a long time now it's been menu is menu and long press is recent apps. Back is back and long press back is search. At least on phones I've add within last 2 years. I can play with it if any is interested having back button as recent apps.
Edit: to have back button be recent apps edit line 158 to APP_SWITCH.
you are right how about setting recent apps to menu and long press
Unfortunately those zips didn't work for me. I'm on stock deodexed rooted etc rom flashed with twrp
Doesn't work. Good thing I made a backup and set permissions back.
Sent from my toaster
jrdejavux said:
you are right how about setting recent apps to menu and long press
Click to expand...
Click to collapse
Are you asking for recent apps to be the menu button long press ? That's what I was saying earlier, it's going to require a decompile not just a simple text edit. I think all long press actions are. I figure for now just use lmt or edit to enable on screen navigation bar.
Anyone know if bringing up Google search would be obtainable through one of these quick text edits? I'd prefer my long press left soft key to bring up Google search, rather than S Finder. Please and thank you for help.
My notes after reading this thread and originally thinking that this messes with other apps functionality and then finding a workaround like so:
With a file manager with root access, menu key can be reassigned, however "Ok Google" hotword detection must be turned off:
App Drawer > Google > Settings > Voice > "Ok Google" hotword detection > OFF
or else it prevents the menu key being used by some other applications.
Navigate to
System > usr > keylayout and copy Generic.kl away from this location where it can be edited in a text editor.
Look for key 254 and change APP_SWITCH to MENU
Rename original file Generic.kl to Generic.kl .original and it its place paste the edited Generic.kl file > Reboot.

[Guide] Replace MENU with Recent Apps on CM12.1

This guide is for the Note 3 Neo and should work on all variants.
If you're looking at this thread then you should have noticed that the Menu key on @FireLord 's CM12.1 is mapped to MENU and you can't change it from Buttons in Settings since it only has Power Button, Recents Button, Volume Button and Home button and no Menu Button.
Of course, there are a bunch of Xposed Modules such as MenuBegone available to do the same but if you'd rather not install anything or if you just like to mess with your phone then this is the guide to follow
So here's what you to do make your Menu key function as a Recent's key.
Download any Root Brower (I'd suggest the one included in Rom Toolbox)
Navigate to /system/usr/keylayout/Generic.kl
Open the File Generic.kl as a text file
Look for key 139 MENU in the list
Replace MENU with APP_SWITCH
Save and Reboot
Now your Menu key will function as a Recents Key and you'll also be able to change what tapping it and long-pressing it does through Buttons In Settings.
Thanks for the info.
but do you know how to enable vibration on them?
damadikaz said:
Thanks for the info.
but do you know how to enable vibration on them?
Click to expand...
Click to collapse
Oh I'm sorry, I'm afraid i don't know about that. All the vibrations are on and it seems only the Soft keys aren't vibrating. I'll fill you in if i do find something out though.
ICUDeadNaw said:
Oh I'm sorry, I'm afraid i don't know about that. All the vibrations are on and it seems only the Soft keys aren't vibrating. I'll fill you in if i do find something out though.
Click to expand...
Click to collapse
I've found temporary solution tbh, but it kinda weird. the softkey also vibrate when the screen is off.
http://forum.xda-developers.com/showthread.php?t=2152355
still searching for another solution tho.

Categories

Resources