Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,990 Members 37,126 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
dong2007
Old
(Last edited by dong2007; 19th June 2014 at 02:42 PM.)
#1  
dong2007's Avatar
Senior Member - OP
Thanks Meter 120
Posts: 502
Join Date: May 2010
Location: subsurface
Lightbulb [SOLVED]Enable On-Screen btn and disable hw btn???[/SOLVED]

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:	63
Size:	132.2 KB
ID:	2795569  
#S4 Mini (White) #CM 11 M7 (Android 4.4.2)
#S2 (White) #CM 11 M7 (Android 4.4.2)

Telmore DK
Sorry for my bad english
 
dong2007
Old
#2  
dong2007's Avatar
Senior Member - OP
Thanks Meter 120
Posts: 502
Join Date: May 2010
Location: subsurface
Here´s a demonstrated video from Oneplus One
https://www.youtube.com/watch?v=cp-3jChf3DU#t=362
#S4 Mini (White) #CM 11 M7 (Android 4.4.2)
#S2 (White) #CM 11 M7 (Android 4.4.2)

Telmore DK
Sorry for my bad english
 
dong2007
Old
#3  
dong2007's Avatar
Senior Member - OP
Thanks Meter 120
Posts: 502
Join Date: May 2010
Location: subsurface
I found a solution - look at the first post...
#S4 Mini (White) #CM 11 M7 (Android 4.4.2)
#S2 (White) #CM 11 M7 (Android 4.4.2)

Telmore DK
Sorry for my bad english
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes