[Q] Disabled Capacitive Keys - all but Home - AT&T Samsung Galaxy Note I717

I started this in another thread but I thought I'd drop it here in case anyone else wants to work on it as well. I didn't see another active thread so please flame if this isn't in the right place.
Being on tablet mode full time I wanted to disable the capacitive keys. They're not in the way or totally useless, I simply wanted to see if it could be done.
I've managed to disable Menu, Search and Back on mine with an older Honeycomb trick I used on the Galaxy Tab. I just now started monkeying with this on the Note and I've yet to disable the Home button without also disabling waking with power button.
Root Browse your way to "system/usr/keylayout/Generic.kl
Place a # before the following lines (commenting them), save then reboot:
key 139 MENU
key 158 BACK
key 217 SEARCH
I've tried changing key 102 and key 172 to disable the Home key to no avail. Commenting 102 seems to have no effect and commenting out 172 disables waking with the power button.
I'm no developer but it seems to me that the Home key and the power button are somehow linked. Maybe someone that has a firmer grasp of what they're doing within the OS can give some insight?

Hey thanks again for this find.... Just a quick question.
Does this method work with any ICS ROM? Also I'm just curious which ROM you are using and want to hear your recommendation.
Thanks again

sunshines4u said:
Hey thanks again for this find.... Just a quick question.
Does this method work with any ICS ROM? Also I'm just curious which ROM you are using and want to hear your recommendation.
Thanks again
Click to expand...
Click to collapse
I haven't tried it on a GB ROM but I see no reason it wouldn't work there or on any ICS build. From what little knowledge I have of how this works I can't see why the key bindings would be any different from ROM to ROM, as long as it's for the Note. For all I know the same lines of code could be the same on any number of Samsung devices.
I'm currently on DAGr8s The Hybrid_RCIV and enjoying it very much. Aside from having to pop my SD card whenever I install an app it's the bee's knees.

VonLaserface said:
I started this in another thread but I thought I'd drop it here in case anyone else wants to work on it as well. I didn't see another active thread so please flame if this isn't in the right place.
Being on tablet mode full time I wanted to disable the capacitive keys. They're not in the way or totally useless, I simply wanted to see if it could be done.
I've managed to disable Menu, Search and Back on mine with an older Honeycomb trick I used on the Galaxy Tab. I just now started monkeying with this on the Note and I've yet to disable the Home button without also disabling waking with power button.
Root Browse your way to "system/usr/keylayout/Generic.kl
Place a # before the following lines (commenting them), save then reboot:
key 139 MENU
key 158 BACK
key 217 SEARCH
I've tried changing key 102 and key 172 to disable the Home key to no avail. Commenting 102 seems to have no effect and commenting out 172 disables waking with the power button.
I'm no developer but it seems to me that the Home key and the power button are somehow linked. Maybe someone that has a firmer grasp of what they're doing within the OS can give some insight?
Click to expand...
Click to collapse
May have to also edit some of the other key layout files. Like ffa, not entirely sure what they all do, but I have seen home key in done of the other layouts.
Sent from my bigass phone or whatever on ICS

VonLaserface said:
I've tried changing key 102 and key 172 to disable the Home key to no avail. Commenting 102 seems to have no effect and commenting out 172 disables waking with the power button.
I'm no developer but it seems to me that the Home key and the power button are somehow linked. Maybe someone that has a firmer grasp of what they're doing within the OS can give some insight?
Click to expand...
Click to collapse
Just an FYI - I was able to disable all of the keys using melfas_touchkey.kl on the new CM9 Unofficial release. Power still works.

jpg71 said:
Just an FYI - I was able to disable all of the keys using melfas_touchkey.kl on the new CM9 Unofficial release. Power still works.
Click to expand...
Click to collapse
Where can I get that file and where do I put it on the phone?

Related

[Q] Remapping video or camera button?

I don't even have my Amaze yet, but one of the things I know I'm interested in is remapping the dedicated video button. I know I'll probably love the dedicated camera button, but I doubt I'll use the video button- mapping the button to either an app to it or a more useful function would be nice.
That said, has anyone decided to change the button functions and if so what did you use? What function did you give it?
I found a thread here that sounds like it could work except it makes a big deal out of needing "for full rooted devices. (NAND unlocked. Full, permanent write access to the system dir is needed)" and the functions it can provide don't seem all that helpful..
I did a fair amount of searching and couldn't find a better app, I'm not sure if the root the amaze has would be considered "full root", or if anyone here has really played with this.
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
jo093142 said:
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
Click to expand...
Click to collapse
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Silentbtdeadly said:
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Click to expand...
Click to collapse
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
mikeschevelle said:
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
Click to expand...
Click to collapse
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
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 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Silentbtdeadly said:
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
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 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Click to expand...
Click to collapse
.......appreciate it......over my head though

Menu button remap

Nova launcher has a feature that lets you remap the long-press of the menu button to do among a number of things, one of which is bringing up the multi-task menu. Anyone know how to make this happen without using this launcher. I've tried editing the file in key_layout but it didn't do anything.
Same type of issue here. (first time post / newb by the way). I'm looking to use a long press of the Back key to act as an alternate home key (but would accept long press of menu key as well). I've tried Nova Launcher, and it can be configured for a long-press of the menu key to go to the "default" screen, which is kind of like having a home key, but it doesn't work unless you are on the 1st level screens (for example it doesn't work if you are using an application, this it is not truly a home key). I've never rooted before and am worried about trying it on my brand new S3 and what it means to warranty. Thus was hoping to find a way to get what I want without rooting, but something tells me I won't be able to. Also, I really didn't want to change to a special launcher like Nova yet, I just want a capacitive home key option. I don't like physical click keys plus my home key is harder to reach now with the case that I have. Not sure what to do next. Willing to consider rooting if it the process can be made fairly idiot proof. BTW I'm on Sprint which is not the exact phone as yours.
zzzzonk said:
Same type of issue here. (first time post / newb by the way). I'm looking to use a long press of the Back key to act as an alternate home key (but would accept long press of menu key as well). I've tried Nova Launcher, and it can be configured for a long-press of the menu key to go to the "default" screen, which is kind of like having a home key, but it doesn't work unless you are on the 1st level screens (for example it doesn't work if you are using an application, this it is not truly a home key). I've never rooted before and am worried about trying it on my brand new S3 and what it means to warranty. Thus was hoping to find a way to get what I want without rooting, but something tells me I won't be able to. Also, I really didn't want to change to a special launcher like Nova yet, I just want a capacitive home key option. I don't like physical click keys plus my home key is harder to reach now with the case that I have. Not sure what to do next. Willing to consider rooting if it the process can be made fairly idiot proof. BTW I'm on Sprint which is not the exact phone as yours.
Click to expand...
Click to collapse
Rooting is fairly idiot proof on the International SGS3 but you may well have major problems if you are in the wrong forum and flash the wrong firmware for a different model phone like the USA models .
jje
JJEgan said:
Rooting is fairly idiot proof on the International SGS3 but you may well have major problems if you are in the wrong forum and flash the wrong firmware for a different model phone like the USA models .
jje
Click to expand...
Click to collapse
Thanks, appreciate that. I figured as much, but thought the ideas would be similar
Actually what I think would be a more ideal button arrangement for me would be as follows (since my goal is to have a capacitive home key)
1) short-press Menu button would function exactly the same as the physical Home button
2) long-press Menu button would function as the Menu
3) short-press Back would function as Back
4) long-press Back button would bring up a Search screen (kind of like long-press Menu does presently)
I for one am glad that Samsung kept some buttons (like the menu button), instead of going to the true 100% ICS experience.
Maybe I'll switch completely over to the Sprint Galaxy S3 forum in order to avoid any confusion.
cm10 has implemented the button remap feature. now you can easily change the menu button long press to recent apps in cm10
bala_gamer said:
cm10 has implemented the button remap feature. now you can easily change the menu button long press to recent apps in cm10
Click to expand...
Click to collapse
Really? Where is it?
Brettbesa said:
Really? Where is it?
Click to expand...
Click to collapse
It comes with cm10
《tapatalked from galaxy s3》

How can i completely disable hardkeys in favor of softkeys?

My dad's Droid X2 was having issues so he got a new phone (Note II, the lucky bastard >_>) and gave me his old phone. Messing with it a little before I activate it on Verizon, I realized that the only thing wrong with it was the back button - its worn out and keeps clicking itself over and over again. To do anything with the phone I need to mash the back button for 15+ seconds while the screen is off/on the home screen.
I haven't done anything with the phone yet, its still bone stock, fully updated, not even rooted yet. In its current state its nearly unusable as a daily driver, but I figure if I can flash ICS/JB, activate the onscreen keys, an fully disable the hard keys, it'll be good to go - a decent replacement to my Droid charge (which I love to pieces but is so lageriffic its getting hard to use)
My problem is, none of the roms say anything about this. My experience with cyanogenmod/AOKP is limited to a few unofficial alpha roms for my tablet, so I really don't know. I found this, which I think might work for what I want , but I don't know if its compatible with the Droid X2, especially with the rom I was really looking into, paranoidandroid. Though I will honestly accept any 4.0+ rom. This will be my daily driver, if I can get it to work, so I do care about stability. Just not sure where to start or how to go about this. I'd like to consider myself a fairly advanced ROMer, so if it gets technical, I don't mind in the slightest.
Thank you guys for any help you can provide me.
mtmerrick said:
My dad's Droid X2 was having issues so he got a new phone (Note II, the lucky bastard >_>) and gave me his old phone. Messing with it a little before I activate it on Verizon, I realized that the only thing wrong with it was the back button - its worn out and keeps clicking itself over and over again. To do anything with the phone I need to mash the back button for 15+ seconds while the screen is off/on the home screen.
I haven't done anything with the phone yet, its still bone stock, fully updated, not even rooted yet. In its current state its nearly unusable as a daily driver, but I figure if I can flash ICS/JB, activate the onscreen keys, an fully disable the hard keys, it'll be good to go - a decent replacement to my Droid charge (which I love to pieces but is so lageriffic its getting hard to use)
My problem is, none of the roms say anything about this. My experience with cyanogenmod/AOKP is limited to a few unofficial alpha roms for my tablet, so I really don't know. I found this, which I think might work for what I want , but I don't know if its compatible with the Droid X2, especially with the rom I was really looking into, paranoidandroid. Though I will honestly accept any 4.0+ rom. This will be my daily driver, if I can get it to work, so I do care about stability. Just not sure where to start or how to go about this. I'd like to consider myself a fairly advanced ROMer, so if it gets technical, I don't mind in the slightest.
Thank you guys for any help you can provide me.
Click to expand...
Click to collapse
there are apps on the market that allow button remaping but if you wanna try something like cyanogen or miui on the dx2 try this Soft key mod for CM/Miui it has a flash able zip for disabling and reenabling the hardware buttons and the same for the software buttons works like a charm for me but im never on one rom long enough to really enjoy it.
Check out an app in the Play Store called "Button Savior".
Sent from my Android device using Tapatalk
OK, so the hardkey issue seems to have mysteriously alleviated itself..
guess i'm just looking for the most stable 4.0+ ROM now.
I had an X2 with a failed back key also. In order to make the phone bearable while waiting for the replacement to arrive, I edited the keyboard file and changed the "search" button to the "back" button. You'll need to be rooted to do this. From a file explorer app (I use Astro or AntTek Explorer), browse to \system\usr\keylayout and open the tegra-kbc.kl file with a text editor from within the phone. I used File Editor, which I think is stock within the phone. When open, you'll see a whole list of keys, but you'll only need to concern yourself with 158 and 217.
Here's a section of the file so you know what I'm talking about.
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
You'll want to make changes to the lines I've bolded so they look like this:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 217 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
# key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
So now, both the "back" button and the "search" button will do the same thing.
You can always disable the original "back" button altogether by putting a # in front of the 158 line like this:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
key 217 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
# key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
After making the changes, save and close the file, then reboot your phone.
Let me know if you have any questions.
This is perfect, thank you so much.
I found the soft keys and installed that, so I'd be plenty happy disabling all 4 hard keys at the bottom. What would be the proper way to go about doing that, using this method?
If you wanted to disable the buttons, you'd simply place a # in front if the line you don't want read by the software. You better make sure the soft key app is rock solid though.
Change it from this:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
to this:
# key 102 HOME WAKE
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP
key 114 VOLUME_DOWN
# key 217 SEARCH WAKE_DROPPED
key 28 ENTER
Click to expand...
Click to collapse
You can also use Bootstrap Recovery to check what each key is. Select Advanced --> Key Test. To get out of the key test, press Power, Volume UP, and Volume DN at the same time, and the phone will reboot.
---------- Post added at 07:46 AM ---------- Previous post was at 07:20 AM ----------
I told you the wrong file name. You'll want to edit the tegra-kbc.kl file located in the same directory. I'm sorry about that.
OK, thank you! I'll let you know how it goes.
And they're the OS soft keys from jellybean, so nothing to worry about.
----------
OK, disabled them! Thanks!
I'm considering assigning the search key to the camera shutter. However, if I do this, I don't want it to launch the camera app, just to take a picture if the camera is open. Is there a way to do this?

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

remap left capacitive button functions to switch apps

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.

Categories

Resources