Post Reply

[SOLVED]Enable On-Screen btn and disable hw btn???[/SOLVED]

OP dong2007

13th June 2014, 09:36 AM   |  #1  
dong2007's Avatar
OP Senior Member
Flag subsurface
Thanks Meter: 130
 
515 posts
Join Date:Joined: May 2010
More
Is it possible to get this settings to CM 11 (S4 Mini LTE)?
Enable On-Screen button & Disable HW button.

The screenshot is from Oneplus one settings.


EDIT: I found a manual solution.

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

For Customize Navbar Go to Settings-->Interface


//dong2007
Attached Thumbnails
Click image for larger version

Name:	oneplus_disable_b2.jpg
Views:	68
Size:	132.2 KB
ID:	2795569  
Last edited by dong2007; 19th June 2014 at 02:42 PM.
16th June 2014, 06:34 PM   |  #2  
dong2007's Avatar
OP Senior Member
Flag subsurface
Thanks Meter: 130
 
515 posts
Join Date:Joined: May 2010
More
Here´s a demonstrated video from Oneplus One
https://www.youtube.com/watch?v=cp-3jChf3DU#t=362
19th June 2014, 12:55 PM   |  #3  
dong2007's Avatar
OP Senior Member
Flag subsurface
Thanks Meter: 130
 
515 posts
Join Date:Joined: May 2010
More
I found a solution - look at the first post...
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes