Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Enable On-Screen Btn and Disable hw Btn

OP dong2007

19th June 2014, 03:42 PM   |  #1  
dong2007's Avatar
OP Senior Member
Flag subsurface
Thanks Meter: 132
 
533 posts
Join Date:Joined: May 2010
More
First of all, root is required to edit these files.

Basically, all you have to enable the software buttons, is add 'qemu.hw.mainkeys=0' to the build.prop in /system and reboot.

Deactivate the hardware keys.
Go to /system/usr/keylayout and open 'Generic.kl' in a text editor and find the lines that say 'key 139 MENU WAKE_DROPPED', 'key 158 BACK WAKE_DROPPED', and 'key 172 HOME' and place a # at the start of each line like:
#139 MENU WAKE_DROPPED
#158 BACK WAKE_DROPPED
key 172 HOME (I would not recommend and disable home)

Take care here because if you add a # to the wrong line, you won

And last, navigate to system>usr>keylayout. We will be looking for a file called "sec_touchkey.kl".
Out the keys you don't want to work with a #.
So if you are like me and think the home button is fine, it will look like this.

#key 139 MENU
#key 158 BACK
key 102 HOME
key 217 SEARCH

UPDATE: For Customize Navbar Go to Settings-->Buttons
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-06-19-18-10-06.png
Views:	315
Size:	105.5 KB
ID:	2807044   Click image for larger version

Name:	Screenshot_2014-06-19-18-10-18.png
Views:	263
Size:	64.5 KB
ID:	2807045   Click image for larger version

Name:	Screenshot_2014-06-19-18-10-27.png
Views:	246
Size:	59.3 KB
ID:	2807046   Click image for larger version

Name:	Screenshot_2014-06-19-18-13-19.png
Views:	209
Size:	32.9 KB
ID:	2807047   Click image for larger version

Name:	Screenshot_2014-06-19-18-15-28.png
Views:	192
Size:	82.9 KB
ID:	2807048  
Last edited by dong2007; 16th July 2014 at 09:38 PM.
4th August 2014, 01:59 PM   |  #2  
dong2007's Avatar
OP Senior Member
Flag subsurface
Thanks Meter: 132
 
533 posts
Join Date:Joined: May 2010
More
Just remember to remove the # - before you update the Cyanogenmod version to a newer.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes