hi all,
just found the way to make the button of wired headset working correctly on any CM ROMs.
All you have to do is to edit this file "/system/usr/keylayout/Generic.kl" using any file manager with root feature,
go to this line "key 226 HEADSETHOOK" and modify key number to 250 "key 250 HEADSETHOOK".
save and exit.
!!IMPORTANT!! set permission of the saved file like this: "-rw-r--r--" and reboot
now the button should work fine.
I think that this fix can be applied to other L9 variants, just try and see if it works.
edit: works on P765 and P769
CYA
- shifu - said:
hi all,
just found the way to make the button of wired headset working correctly on any CM ROMs.
All you have to do is to edit this file "/system/usr/keylayout/Generic.kl" using any file manager with root feature,
go to this line "key 226 HEADSETHOOK WAKE" and modify key number to 250 "key 250 HEADSETHOOK WAKE".
save and exit.
!!IMPORTANT!! set permission of the saved file like this: "-rw-r--r--" and reboot
now the button should work fine.
I think that this fix can be applied to other L9 variants, just try and see if it works.
CYA
Click to expand...
Click to collapse
Starts Apollo on the p769, but I guess that's better than not working at all. Thanks!
sent from my p769, CM10.1, using Tapatalk4 beta
animusFL said:
Starts Apollo on the p769, but I guess that's better than not working at all. Thanks!
sent from my p769, CM10.1, using Tapatalk4 beta
Click to expand...
Click to collapse
..on my p760 too, but i think it's normal becuase the button is multi-function..
not in call functions:
one clic --> starts apollo (play/pause)
double clic during play --> next track
long press --> starts google search
in call functions:
one clic --> answer incoming call
one clic during call --> disables microphone
long press during call --> hangup
- shifu - said:
hi all,
just found the way to make the button of wired headset working correctly on any CM ROMs.
All you have to do is to edit this file "/system/usr/keylayout/Generic.kl" using any file manager with root feature,
go to this line "key 226 HEADSETHOOK WAKE" and modify key number to 250 "key 250 HEADSETHOOK WAKE".
save and exit.
!!IMPORTANT!! set permission of the saved file like this: "-rw-r--r--" and reboot
now the button should work fine.
I think that this fix can be applied to other L9 variants, just try and see if it works.
CYA
Click to expand...
Click to collapse
Are you sure about that "WAKE"? Cause I don't have it and I don't add it and my headphone button works fine.
Anyway thanks man, you should inform devs about it so they can include this fix in their roms.
- shifu - said:
hi all,
just found the way to make the button of wired headset working correctly on any CM ROMs.
All you have to do is to edit this file "/system/usr/keylayout/Generic.kl" using any file manager with root feature,
go to this line "key 226 HEADSETHOOK WAKE" and modify key number to 250 "key 250 HEADSETHOOK WAKE".
save and exit.
!!IMPORTANT!! set permission of the saved file like this: "-rw-r--r--" and reboot
now the button should work fine.
I think that this fix can be applied to other L9 variants, just try and see if it works.
CYA
Click to expand...
Click to collapse
Wow thanks dude, this worked flawlessly on my P769
---------- Post added at 03:24 AM ---------- Previous post was at 03:22 AM ----------
PreemPalver said:
Are you sure about that "WAKE"? Cause I don't have it and I don't add it and my headphone button works fine.
Anyway thanks man, you should inform devs about it so they can include this fix in their roms.
Click to expand...
Click to collapse
Doesn't including "WAKE" cause the key backlights to wake when you press a headset remote key?
Doesn't including "WAKE" cause the key backlights to wake when you press a headset remote key?
Click to expand...
Click to collapse
No, backlights remain off
Thanks. This works for my P765 too.
PreemPalver said:
Are you sure about that "WAKE"? Cause I don't have it and I don't add it and my headphone button works fine.
Click to expand...
Click to collapse
no idea sorry i've only changed the key event number with the right one and nothing else, so you should ask to CM dev
btw i've compared the values with the jb stock v20 and they are exactly the same
- shifu - said:
no idea sorry i've only changed the key event number with the right one and nothing else, so you should ask to CM dev
btw i've compared the values with the jb stock v20 and they are exactly the same
Click to expand...
Click to collapse
So word "WAKE" is missing in CM only?
PreemPalver said:
So word "WAKE" is missing in CM only?
Click to expand...
Click to collapse
ehm.. no
the word WAKE is present in both Generic.kl file
CM key assignment not fixed --> key 226 HEADSETHOOK WAKE
STOCK JB key assignment --> key 250 HEADSETHOOK WAKE
CM key assignment fixed --> key 250 HEADSETHOOK WAKE
- shifu - said:
ehm.. no
the word WAKE is present in both Generic.kl file
CM key assignment not fixed --> key 226 HEADSETHOOK WAKE
STOCK JB key assignment --> key 250 HEADSETHOOK WAKE
CM key assignment fixed --> key 250 HEADSETHOOK WAKE
Click to expand...
Click to collapse
that's weird
I don't have the "wake" and i haven't added it but it works. Very Thanks
Inviato dal mio LG-P760 usando Tapatalk 4
PreemPalver said:
that's weird
Click to expand...
Click to collapse
oops my fault sorry
"WAKE" is present in stock jb only not in CM...
OP updated (thx to PreemPalver)
Worked
Thank you a lot!
Sent from my LG-P760 using XDA Premium 4 mobile app
Related
I'm wondering if it's possible to remap the capacitive Search button to open up the ICS Recent Apps menu instead, exactly like described in this thread:
http://forum.xda-developers.com/showthread.php?p=21501238
I'm on stock OTA 4.0.4 rooted, but I'm not sure if a custom rom has this functionality or I have to try to make it myself (no idea how!). There seem to be mods but are for other devices.
Currently if I modify the cy8c201xx.kl in /keylayout (i.e. change SEARCH to APP_SWITCH) it just opens up the old gingerbread app switcher.
Hmm.. This shouldn't be too hard to do.. I'll have a few friends of mine take a look into it with me, and come back with what I find They're long-time Android Hackers
EDIT: Talking with my friends, will be working on trying to get this to work Can't promise anything, but I'll sure try to get it working! lol.. It would be something that I want too
_patrickc_ said:
Hmm.. This shouldn't be too hard to do.. I'll have a few friends of mine take a look into it with me, and come back with what I find They're long-time Android Hackers
EDIT: Talking with my friends, will be working on trying to get this to work Can't promise anything, but I'll sure try to get it working! lol.. It would be something that I want too
Click to expand...
Click to collapse
That would be absolutely fantastic and much appreciated, thanks! :good:
Talked to one of my friends, he said it shouldn't be hard, but he didn't know exactly how to do it. Going to bed now, will look more into it tomorrow
Sent from my RAZR MAXX using XDA premium
Any breakthrough ?
It's the last missing thing on this phone !
ulybu said:
Any breakthrough ?
It's the last missing thing on this phone !
Click to expand...
Click to collapse
Try Long press home button
whirleyes said:
Try Long press home button
Click to expand...
Click to collapse
Yeah sure, but we're trying to get it from the search key we never use..
I also get the GB recent app screen
Sent from my XT910 using xda premium
ulybu said:
Yeah sure, but we're trying to get it from the search key we never use..
I also get the GB recent app screen
Sent from my XT910 using xda premium
Click to expand...
Click to collapse
Hi, I found this on another Droid Forum:
You just need to edit the corresponding key mapping file in /system/usr/keylayout/ to make the changes you want. On my Razr Maxx the file that controls the 4 capacitive buttons is named cy8c201xx.kl. To swap the key functions you just change the word next to the key number: i.e. replace SEARCH with MENU and vice versa. Make sure to backup your original just in case.
You can set it to any function that is defined (POWER, AUTO_ROTATION, VOLUME_UP, etc.) you just need to know the proper name. I have read that recent apps may be APP_SWITCH but I have not tested it myself. I do not know how to create a new function if it is not already defined.
Hope it helps.
prabbie said:
Hi, I found this on another Droid Forum:
You just need to edit the corresponding key mapping file in /system/usr/keylayout/ to make the changes you want. On my Razr Maxx the file that controls the 4 capacitive buttons is named cy8c201xx.kl. To swap the key functions you just change the word next to the key number: i.e. replace SEARCH with MENU and vice versa. Make sure to backup your original just in case.
You can set it to any function that is defined (POWER, AUTO_ROTATION, VOLUME_UP, etc.) you just need to know the proper name. I have read that recent apps may be APP_SWITCH but I have not tested it myself. I do not know how to create a new function if it is not already defined.
Hope it helps.
Click to expand...
Click to collapse
Can anyone confirm making this work? Search button really IS useless
Sent from my DROID RAZR using Tapatalk 2
i love the search button... especially the long press to bring up sound hound search and others
Sent from my DROID RAZR using Tapatalk 2
imdaman99 said:
Can anyone confirm making this work? Search button really IS useless
Sent from my DROID RAZR using Tapatalk 2
Click to expand...
Click to collapse
Works Great on my XT912. I can now lock my screen by short pressing the cap search
I know that on phones that you have to use the power button to lock/unlock it is usally the first button to fail.
Now I need to figure out how to wake using a cap button.
Here's the original
Code:
key 158 BACK WAKE_DROPPED VIRTUAL
key 139 MENU WAKE_DROPPED VIRTUAL
key 217 SEARCH WAKE_DROPPED VIRTUAL
key 102 HOME WAKE VIRTUAL
Here's what I changed
Code:
key 158 BACK WAKE_DROPPED VIRTUAL
key 139 MENU WAKE_DROPPED VIRTUAL
key 217 POWER WAKE_DROPPED VIRTUAL
key 102 HOME WAKE VIRTUAL
imdaman99 said:
Can anyone confirm making this work? Search button really IS useless
Sent from my DROID RAZR using Tapatalk 2
Click to expand...
Click to collapse
I just did this change on my Razr and it does work, but it brings up the GB sytle of switcher.
borgdog said:
I just did this change on my Razr and it does work, but it brings up the GB sytle of switcher.
Click to expand...
Click to collapse
yes, me2. brings up GB style only .....
i would like to remap one of my phones hardware buttons to play/pause music playback.
i have done some searching and there are some solutions out there but there for other phones.
does anyone know of a method that works on the amaze?
ty
Remapping
Truck'nfool said:
i would like to remap one of my phones hardware buttons to play/pause music playback.
i have done some searching and there are some solutions out there but there for other phones.
does anyone know of a method that works on the amaze?
ty
Click to expand...
Click to collapse
I found a button remapper program Here on XDA . I used it with sucess. You can also do some editing to a system file if you would like. I can point you in the right direction....
http://forum.xda-developers.com/showthread.php?t=850464
Download and install
ButtonRemapper v0_2.4.1.apk
If that doesn't help let me know i can edit the file you need to be able to do what you want. Which hardware key do you want to use to do this?
chevycowboyusa said:
I found a button remapper program Here on XDA . I used it with sucess. You can also do some editing to a system file if you would like. I can point you in the right direction....
http://forum.xda-developers.com/showthread.php?t=850464
Download and install
ButtonRemapper v0_2.4.1.apk
If that doesn't help let me know i can edit the file you need to be able to do what you want. Which hardware key do you want to use to do this?
Click to expand...
Click to collapse
What's the file you edit and where is it located?
Do you just edit it with a text editor or something special required?
wolf_7669 said:
What's the file you edit and where is it located?
Do you just edit it with a text editor or something special required?
Click to expand...
Click to collapse
System/usr/keylayout/ruby-keypad.kl
Use a text editor and make sure you have root permissions.
Key 248 should be the unusable camcorder button.
Sent from my Amaze 4G using xda app-developers app
More info
What rom are you using? I don't know if it makes a difference....
Here's what the file contents look like.
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 CAMCORDER WAKE #### you could change this from CAMCORDER to MEDIA_PLAY_PAUSE ####
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
thank you.
thank you folks, i haven't been able to check the forums for a few days else I would have replied sooner. I will give this a try and see if it works.
Truck'nfool said:
thank you folks, i haven't been able to check the forums for a few days else I would have replied sooner. I will give this a try and see if it works.
Click to expand...
Click to collapse
Great!
Sent from my Amaze 4G using xda app-developers app
Incoming call answer
chevycowboyusa said:
Great!
Click to expand...
Click to collapse
I am completely happy with my Amaze - just lacking one important for me feature.. to be able answering incoming calls with a phone hardware button.. I tried this one https://play.google.com/store/apps/details?id=com.kigate.EZbutton&hl=en but couldn't get it working with VOLUME_UP button.. the VOLUME buttons anyway kept muting the ring during incoming calls instead of answering them..
Any help or an idea?
Thanks a lot!
jauhien said:
I am completely happy with my Amaze - just lacking one important for me feature.. to be able answering incoming calls with a phone hardware button.. I tried this one https://play.google.com/store/apps/details?id=com.kigate.EZbutton&hl=en but couldn't get it working with VOLUME_UP button.. the VOLUME buttons anyway kept muting the ring during incoming calls instead of answering them..
Any help or an idea?
Thanks a lot!
Click to expand...
Click to collapse
I haven't used that one. I found Buttonmapper and was able to change some of the buttons. I posted a link to the forum as well.
You can edit the file that I spoke of in the previous posts as well.
Sent from my HTC_Amaze_4G using xda app-developers app
been using the posted program for a few day's now , works fantastic love it. now I don't have to exit out of my current app just to pause the playback.
Truck'nfool said:
been using the posted program for a few day's now , works fantastic love it. now I don't have to exit out of my current app just to pause the playback.
Click to expand...
Click to collapse
Great... glad it helped. Make sure you thank the guy who made it!
Sent from my Amaze 4G using xda app-developers app
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
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.
There are several ways to change your function of Walkman button on the top of Live With Walkman...
I will guide you to change it into your desire function in easy way even you are a noob...
The things you must have are:
1. Rooted WT19i phone
2. Root explorer
3. Dream Keys app [ Play Store Link ]
install the Dream Keys and follow the steps:
1. Open Root Explorer, go to /system/usr/keylayout/
2. Open the File named "pm8058-keypad.kl" using Text Editor
3. You will see the file like this
# this corresponds to kernel/arch/arm/mach-msm/keypad-coconut.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
# WALKMAN key
key 200 VENDOR_1
4. Change the most bottom :
# WALKMAN key
key 200 VENDOR_1
become like this :
# WALKMAN key
key 200 CALL
5. Save it when you done changing it [ don't worry because the original file will be backed up while you successfully save it as "pm8058-keypad.kl.bak" ]
6. Open Dream Keys setting in your app drawer, choose Setup Call Button and Check the Action >>> Launch an application
7. Press the Select an application, and choose what application you would like to choose... :fingers-crossed: for example, I choose PowerAmp application.
8. Save and Reboot
9. Try press the Walkman button and it will show to choose "Dream Keys" and "Phone"
10. Check "always perform this action" and choose Dream Keys
11. Done. for this case, because earlier I choose PowerAMP, now the Walkman will open PowerAmp :highfive:
To make it back to its original function, go to Setting > App > Dream Keys > Clear data and default setting, then replace the "pm8058-keypad.kl" with the one you already backed up earlier... :fingers-crossed:
Thanks man! Is there a way to use the "camera key" to take screenshots?
app
can you upload this --> Dream Keys app ....I can't find it in the play.store
thanks :cyclops:
pertilee said:
Thanks man! Is there a way to use the "camera key" to take screenshots?
Click to expand...
Click to collapse
If you want to change the function of the camera button to take screenshots, it has to be concerned with a screenshot app...
But basically, from ICS, Live with Walkman has its own screenshot with an easy way, so I suggest it is not really necessary to change it...
razzorchile said:
can you upload this --> Dream Keys app ....I can't find it in the play.store
thanks :cyclops:
Click to expand...
Click to collapse
You can find it in Play Store, pal... Type "Dreamkeys"
I can't upload it since it against the rules.. any application that doesn't concern with my authority should not be shared.. especially if the author of the application is charging the application with some prices.. Just regards the developers..
Can i change the function of the táctil keys? Or only physical buttons?
Sent from my WT19i using xda premium
Front-Line said:
Can i change the function of the táctil keys? Or only physical buttons?
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
I'm afraid it is only for physical button because Dreamkeys basically for camera, volume, and other physical buttons...
Sent from my WT19i using xda premium
Good
I'll Test It On My Rom With Which I'm Having This Button Prob.
Anyway Is That Dreamkeys app paid ??
If Not You Can Attach It
Pranto Roy said:
Good
I'll Test It On My Rom With Which I'm Having This Button Prob.
Anyway Is That Dreamkeys app paid ??
If Not You Can Attach It
Click to expand...
Click to collapse
that will be great...
and yes it is a paid application by Richard Zhang which worth $ 2.99 in Play Store..
That's why I don't have the authority to attach it...
Rei Zazie said:
that will be great...
and yes it is a paid application by Richard Zhang which worth $ 2.99 in Play Store..
That's why I don't have the authority to attach it...
Click to expand...
Click to collapse
Hm m m m m . . . . . . .
Good