Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,865 Members 44,350 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Disable hardware buttons

Tip us?
 
DerGreeny
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Feb 2014
Default [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
 
LiquidSmokeX64
Old
#2  
LiquidSmokeX64's Avatar
Senior Member
Thanks Meter 236
Posts: 712
Join Date: Dec 2011
Location: Centralia, Wasington State
Im curious what edit you made to enable the soft keys

Sent from my SM-T217S using XDA Premium 4 mobile app
 
DerGreeny
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Feb 2014
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.
 
linkboy
Old
#4  
Member
Thanks Meter 5
Posts: 41
Join Date: Apr 2009
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.
 
DerGreeny
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Feb 2014
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
 
DerGreeny
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Feb 2014
Quote:
Originally Posted by linkboy View Post
I've got mine disabled and all you do is put # in front of the key mappings.
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
 
linkboy
Old
#7  
Member
Thanks Meter 5
Posts: 41
Join Date: Apr 2009
Quote:
Originally Posted by DerGreeny View Post
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
Open up sec_touchscreen.kl and place a # in front of key 139 MENU and key 158 BACK.

This will disable the Samsung buttons.
 
DerGreeny
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Feb 2014
Quote:
Originally Posted by linkboy View Post
Open up sec_touchscreen.kl and place a # in front of key 139 MENU and key 158 BACK.

This will disable the Samsung buttons.
Thank you! The back button is disabled but the center Home button is still working. Any advice for this?
 
ketut.kumajaya
Old
#9  
Recognized Developer
Thanks Meter 8857
Posts: 3,288
Join Date: Apr 2011
Location: Bekasi

 
DONATE TO ME
Quote:
Originally Posted by DerGreeny View Post
Thank you! The back button is disabled but the center Home button is still working. Any advice for this?
Comment out HOME button in gpio-keys.kl
 
A proud owner
P31xx kernel | P51xx kernel | T31x kernel
for stock/stock based ROM
for CM/CM based ROM
for DUAL BOOT
If you like my work, please consider donating
 
graffix31
Old
#10  
Senior Member
Thanks Meter 274
Posts: 1,028
Join Date: Oct 2011
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
When in doubt READ the OP! If you still cant figure it out SEARCH is your Friend!
Want to switch to Sprint? Sure why not... help me help you, join my Framily and we all save. PM for info.

NEXUS 5 32GB Black - Slimkat, FK and Art.

Galaxy Note 10.1 2014 ed. Wifi - Stock (for now)

HP Touchpad - evervolv 4.0.0p1 3.4 kernel nightlies

Sprint Galaxy tab 3. Stock rooted

SGS2 E4GT- Touched by SGS4 (Daughters Phone)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Blast Those Flags with Knock the Flags

Lately, we have seen a rather drastic shift in the world of mobile device gaming. The infamous Angry … more

Hide Numbers on Your SMS and Call Logs with Reflection

How many times have you given your device to someone else in order to show them a … more

Implement Split View in Your LG G2 KitKat Rom with Automated Installer

Some of you may have remembered a story on the Portal a few weeks back … more

Cast Your Device Screen the Way it Was Meant to be with Second Screen

Not too long ago here on the XDA Portal, we covered how Google had made … more