Enable On-Screen Btn and Disable hw Btn

Search This thread

dong2007

Senior Member
May 26, 2010
547
136
subsurface
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
 

Attachments

  • Screenshot_2014-06-19-18-10-06.png
    Screenshot_2014-06-19-18-10-06.png
    105.5 KB · Views: 409
  • Screenshot_2014-06-19-18-10-18.png
    Screenshot_2014-06-19-18-10-18.png
    64.5 KB · Views: 359
  • Screenshot_2014-06-19-18-10-27.png
    Screenshot_2014-06-19-18-10-27.png
    59.3 KB · Views: 342
  • Screenshot_2014-06-19-18-13-19.png
    Screenshot_2014-06-19-18-13-19.png
    32.9 KB · Views: 295
  • Screenshot_2014-06-19-18-15-28.png
    Screenshot_2014-06-19-18-15-28.png
    82.9 KB · Views: 274
Last edited: