Disable HW Keys - T-Mobile Samsung Galaxy Note II

I have enabled on screen buttons via the build.prop edit. but for some reason whenever i go to comment out the menu and back buttons from the keylayout after i reboot the buttons still work but the comment is still there. any help? I'm running the CM10 test build

truthkillszz said:
I have enabled on screen buttons via the build.prop edit. but for some reason whenever i go to comment out the menu and back buttons from the keylayout after i reboot the buttons still work but the comment is still there. any help? I'm running the CM10 test build
Click to expand...
Click to collapse
which file did you modify? I commented out the buttons in the generic one as well as in the sii9234 file.
Sent from my SGH-T889 using xda premium

Related

[Q] How to disable Menu, Back, and redirect Home to launch camera

Alright, im on Stock Deodexed Rooted LJ7. I know that adding
qemu.hw.mainkeys=0
to the build.prop forces the navigation bar to show up, but can someone help me figure put which files to edit(presumably in /system/usr/keylayout) to disable the Menu and Back keys, and have the Home button launch the camera on a long press, and take a picture on short press? I know it's possible, I just don't know what to edit specifically.
Edit: went ahead and tried this. Instructions were for CM10, but I tried them anyways.
Changing the physical button is a matter of editing .kl files in usr/keylayout. For those, edit sec_touchkey.kl, sec_keys.kl and Generic.kl.
In sec_touchkey just change MENU and BACK to either VIRTUAL or (undefined)
In sec_keys and Generic change Button 172 from HOME to CAMERA.
Click to expand...
Click to collapse
Doing so does disable the menu and back keys but does not seem to change the home to camera, but instead the home button does nothing. Doesn't wake the screen, go home, take pictures, anything. Any advice? Gonna try again, fresh.
Edit 2:
Same result. Any suggestions?
Posted by Mr. Z's Galaxy S3.
I'm looking too but I did find this that might help with just disabling back and menu
http://forum.xda-developers.com/showthread.php?t=1982000
or try this
http://www.ehow.com/how_12031565_change-key-mappings-android.html
FrameCityJackal said:
I'm looking too but I did find this that might help with just disabling back and menu
http://forum.xda-developers.com/showthread.php?t=1982000
or try this
http://www.ehow.com/how_12031565_change-key-mappings-android.html
Click to expand...
Click to collapse
As for the first link, I've stumbled across that already and made his modifications. Worked great. Now I just need to get the home button to act as a camera button
Posted by Mr. Z's Galaxy S3.
I'm still looking I'll notify you when I find out. I swore someone wrote a tutorial on how to do it.
FrameCityJackal said:
I'm still looking I'll notify you when I find out. I swore someone wrote a tutorial on how to do it.
Click to expand...
Click to collapse
I know they did for CM10, but that didn't work on Touchwiz.
I tried replacing any and every reference to "HOME" I could find to "CAMERA" in the .kl files, but nothing seemed to work. Then again at the end of that day I had managed to bork my .kl files and none of my hardware buttons worked lol(power button for 8seconds still rebooted it, so I got to recovery and fixed it )
Posted by Mr. Z's Galaxy S3.
Try this out then go thank them lol
Kailee said:
Yes, in the gpio-keys.kl file, use CAMERA for key 172, like this:
Code:
key 172 CAMERA
Do note that you will have to hold the home button for a few seconds for the camera to start.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=34271673#post34271673
FrameCityJackal said:
Try this out then go thank them lol
http://forum.xda-developers.com/showthread.php?p=34271673#post34271673
Click to expand...
Click to collapse
We don't have that line in that file. Home is listed as 102, and I tried editing it, but that didn't work.
Posted by Mr. Z's Galaxy S3.

Galaxy note 2 hardkeys not working. Only home key.

Hi there. Changed my build prop to use softkeys, which I have done many times. Soft keys are great. But until there is a permanent soft key for menu I like turning off hardkeys but using the menu hardkey. Some reason now they have stopped workin except home key. Anyone have any idea's.
Sent from my GT-P7510 using Tapatalk 2
tybowski said:
Hi there. Changed my build prop to use softkeys, which I have done many times. Soft keys are great. But until there is a permanent soft key for menu I like turning off hardkeys but using the menu hardkey. Some reason now they have stopped workin except home key. Anyone have any idea's.
Sent from my GT-P7510 using Tapatalk 2
Click to expand...
Click to collapse
Not sure if you have solved the problem but....
There is a thread in the Android Development forums
....../showthread.php?t=2022058
In the second post, you can see where you can enable/disable keys. Check those values if they are commented out or removed. If so, uncomment or add them back in.
Hope this helps!

Enable on screen keys on 10.1 illusion rom????????????

Having a problem with my home button where it thinks I'm holding it for recent apps menu. Would like to install or flash a mod for on screen Nav keys? Any help?
Sent from my SGH-T999 using xda app-developers app
I have a few files I downloaded awhile back that allows for the S3 to have on screen button, but I'm not 100% sure it will work for your ROM that you are running. The "NAV_StockKeys_Universal" is the file you flash to get the on screen button, the one with the word "Remove" is to obviously remove it. And the last file allows you to use the home button as a camera button if you want to.
Please do backup your current ROM just incase these files you flash might mess up your phone.
I am terribly sorry if this does mess up your phone.
And just to prove I do have on screen button, ill attach a picture for you to see
Doesn't work
Why do you want to do this????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[Q] Disable hardware buttons

Hi,
I would like to disable the hardware buttons from my Galaxy Tab 3 7.0 since I already made the softkeys visible by changing the /system/build.prop file.
I found HowTo's for other Samsung devices. All of them proposed a modification of the /system/usr/keylayout/Generic.kl file by deactivating the mappings for the keys 139, 158 and 172 (see this thread). Unfortunately, this isn't working for my Tab 3.
Can someone give my advice in this topic?
Thanks in advance,
Greeny
Im curious what edit you made to enable the soft keys
Sent from my SM-T217S using XDA Premium 4 mobile app
I added qemu.hw.mainkeys=0 to the end of /system/build.prop. If you are interested in the source I could post a link, even if I'm not sure whether external links are accepted.
I've got mine disabled and all you do is put # in front of the key mappings.
What I want to know is how to switch the back key (which defaults to the right) and the menu key (which defaults to the left). It's a pain to have the back key on the right.
Anyone know how to swap them, I've tried different steps for galaxy devices and nothing's working.
Thanks for your answer, but this isn't working for me. I prepended the 3 lines with a # and rebooted the device. But the three hardware buttons are still working
linkboy said:
I've got mine disabled and all you do is put # in front of the key mappings.
Click to expand...
Click to collapse
Do you talk about the mappings in the Generic.kl file? I just opened the other *.kl files and noticed keymappings for the same keys in many other files, like vnc-kbd.kl
DerGreeny said:
Do you talk about the mappings in the Generic.kl file? I just opened the other *.kl files and noticed keymappings for the same keys in many other files, like vnc-kbd.kl
Click to expand...
Click to collapse
Open up sec_touchscreen.kl and place a # in front of key 139 MENU and key 158 BACK.
This will disable the Samsung buttons.
linkboy said:
Open up sec_touchscreen.kl and place a # in front of key 139 MENU and key 158 BACK.
This will disable the Samsung buttons.
Click to expand...
Click to collapse
Thank you! The back button is disabled but the center Home button is still working. Any advice for this?
DerGreeny said:
Thank you! The back button is disabled but the center Home button is still working. Any advice for this?
Click to expand...
Click to collapse
Comment out HOME button in gpio-keys.kl
ketut.kumajaya said:
Comment out HOME button in gpio-keys.kl
Click to expand...
Click to collapse
Thank you! That solved it!
When you added the soft keys did it make the launcher bar at the bottom move up and overlap the page dots for the home pages? I turned them on in gravity box and thats what happened.
Thanks
Sent from my SM-T217S using Tapatalk
graffix31 said:
When you added the soft keys did it make the launcher bar at the bottom move up and overlap the page dots for the home pages? I turned them on in gravity box and thats what happened.
Thanks
Sent from my SM-T217S using Tapatalk
Click to expand...
Click to collapse
The soft keys do not overlap the page dots, but they are now really close (see attached screenshot).
DerGreeny said:
The soft keys do not overlap the page dots, but they are now really close (see attached screenshot).
Click to expand...
Click to collapse
Are you on stock ROM?
new-noob said:
Are you on stock ROM?
Click to expand...
Click to collapse
Yes, I am.
DerGreeny said:
Yes, I am.
Click to expand...
Click to collapse
Hi,
Does the bottons move when you turn ur tab horizontaly? Do they move to right edge of the screen?
new-noob said:
Hi,
Does the bottons move when you turn ur tab horizontaly? Do they move to right edge of the screen?
Click to expand...
Click to collapse
Unfortunately they stay at the bottom and overlay the lowest row of icons.
DerGreeny said:
Unfortunately they stay at the bottom and overlay the lowest row of icons.
Click to expand...
Click to collapse
ok good to know, thanks.
I am having some issues with overclocking here on stock ROM so need to consider switching to custom, since as rooted I won't get official update anyway
the major thing with custom is that there is no multi-window available which I heavily use .

Customizing Buttons

I am wondering if there is a way to customize the Menu, Home, Back buttons. Since I am so use to how S4 buttons were. My S5 custom rom have this as built-in feature. However, the custom rom I am using on my Tab S 8.4 doesn't. Any idea?
drift08 said:
I am wondering if there is a way to customize the Menu, Home, Back buttons. Since I am so use to how S4 buttons were. My S5 custom rom have this as built-in feature. However, the custom rom I am using on my Tab S 8.4 doesn't. Any idea?
Click to expand...
Click to collapse
I Googled about this a while ago and found an XDA post describing that you can make some changes to the HW button functionality. It required root and manually edits to a build.prop or similar system file. Unfortunately I no longer have the link to that post but you can do the same searches that I did. I was hoping to modify what they initiated and to add long press functionality. What I found only did some of what I wanted.
Sent from my SM-T800 using XDA Premium HD app
3DSammy said:
I Googled about this a while ago and found an XDA post describing that you can make some changes to the HW button functionality. It required root and manually edits to a build.prop or similar system file. Unfortunately I no longer have the link to that post but you can do the same searches that I did. I was hoping to modify what they initiated and to add long press functionality. What I found only did some of what I wanted.
Sent from my SM-T800 using XDA Premium HD app
Click to expand...
Click to collapse
I was able to change the left soft key to menu button by editing two files located at /system/usr/keylayout/:
1) Generic.kl
under # samsung
key 254 RECENT APP
Change it to
key 254 MENU
2) gpio-keys.kl
Add this line to it: key 254 MENU
Save both file when you close it. Reboot into custom recovery, wipe cache and dev cache. As for the long press Home key to bring out Recent App, I can't seem to find a solution. I was able use a work around way. I use Nova Launcher, which allows me to assign "Recnt App" as double press on Home key. Hopfully someone will be able to assign long press Home key for it. I guess I will have to use my work around way for now.

Categories

Resources