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
HereĀ“s a demonstrated video from Oneplus One
https://www.youtube.com/watch?v=cp-3jChf3DU#t=362
I found a solution - look at the first post...
Related
If this has already been addressed, I do apologize. I did quite a bit of searching in all GS4 variant forums and couldn't find a straight answer.
After a bit of tinkering I FINALLY figured out how to disable those pesky capacative buttons on the GS4. This should work for all variants.
It's quite simple actually. I first tried going into /system/usr/keylayout and editing the Generic.kl file using Root Explorer. Just find these lines and add # in front of each so:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
becomes
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
That works for most phones, but not the GS4. Reason being is because Samsung has it's own key layout file in the same directory labeled: sec_touchkey.kl
Follow the same procedure for this file, and your capacative keys will finally be disabled. It is a bit easier to find the lines you need to edit in this file as there are only 4 lines in it. I assume you can also disable the home button (key 102 HOME) using the same procedure, but I didn't try it as I like to have the button working.
Sorry for the crudity of this post. This is literally my first post that has to do with any kind of "development"/"modding".:laugh:
When you disable those buttons, do you get a Nexus-like on screen button bar?
kxmas said:
When you disable those buttons, do you get a Nexus-like on screen button bar?
Click to expand...
Click to collapse
Not with just these modifications. This just disables the touch buttons. To enable the on screen nav bar (if there is not already an option in your rom controlls) all you have to do is add the line "qemu.hw.mainkeys=0" to your build.prop and reboot. That should activate on screen keys.
comoc85 said:
If this has already been addressed, I do apologize. I did quite a bit of searching in all GS4 variant forums and couldn't find a straight answer.
After a bit of tinkering I FINALLY figured out how to disable those pesky capacative buttons on the GS4. This should work for all variants.
It's quite simple actually. I first tried going into /system/usr/keylayout and editing the Generic.kl file using Root Explorer. Just find these lines and add # in front of each so:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
becomes
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
That works for most phones, but not the GS4. Reason being is because Samsung has it's own key layout file in the same directory labeled: sec_touchkey.kl
Follow the same procedure for this file, and your capacative keys will finally be disabled. It is a bit easier to find the lines you need to edit in this file as there are only 4 lines in it. I assume you can also disable the home button (key 102 HOME) using the same procedure, but I didn't try it as I like to have the button working.
Sorry for the crudity of this post. This is literally my first post that has to do with any kind of "development"/"modding".:laugh:
Click to expand...
Click to collapse
I don't have the sec_touchkey.kl file. i do have the Generic.kl but can not get my modifications to save. hmmmmm
Hello,
I want to change 'back' and 'menu' keys, so 'back' to be on the rigth side and 'menu' on the left. Like Samsung (I owned one). I prefer 'back' near my finger, it is more confortable.
I have been investigating. I have found a tool here in xda called buttonremapper, but after download and test, it does not work. Also it looks a bit abandoning, so it is possible it does not work for newer devices.
I have also test xposed framework + gravity box, but it has only the option to program 'long press' and 'double touch'. Under navigation bar there is an option to do what I want, but it only do it activating 'buttons in screen', so that is not a solution for me.
I suspect there is a way to do it modifying values in a /system/usr/keyloyout file, but dont know which and what modifications.
have somebody experience doing this for our device? is there a way to achieve this?
Thanks,
clonfsp said:
Hello,
I want to change 'back' and 'menu' keys, so 'back' to be on the rigth side and 'menu' on the left. Like Samsung (I owned one). I prefer 'back' near my finger, it is more confortable.
I have been investigating. I have found a tool here in xda called buttonremapper, but after download and test, it does not work. Also it looks a bit abandoning, so it is possible it does not work for newer devices.
I have also test xposed framework + gravity box, but it has only the option to program 'long press' and 'double touch'. Under navigation bar there is an option to do what I want, but it only do it activating 'buttons in screen', so that is not a solution for me.
I suspect there is a way to do it modifying values in a /system/usr/keyloyout file, but dont know which and what modifications.
have somebody experience doing this for our device? is there a way to achieve this?
Thanks,
Click to expand...
Click to collapse
I answer myself: it is possible modifyind the file /system/usr/keypad_8064.kl , changing the balues 'back' <-> 'menu'. It is even possible to assign buttons in another way, like right: home, center: menu and left: back.
Code:
key 114 VOLUME_DOWN
key 115 VOLUME_UP
key 116 POWER WAKE
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
Just change keys 139 BACK and 158 Menu
You will find it in usr/keylayout/keypad_8064.kl
I'm doing a few tweaks on my phone, mainly not using the capacitive keys as menu and back, and using the home key as the app switcher, and using the nav bar for those three tasks. Here's what I've got so far.
I edited a few files under system/usr/keylayout
The Menu and Search key layouts were found under sec_touchkey.kl(Home was also found under this, but I had to also edit sec_keys.kl and sec_key.kl to get the home key as the app switcher)
Here's the default settings.
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
key 102 HOME
key 217 SEARCH
Here's what I set them to.
key 139 CALL VIRTUAL
key 158 CAMERA VIRTUAL
key 102 APP_SWITCH
key 217 SEARCH
Changing the roles of keys 139 and 102 worked, but Camera does not open the camera. I've tried assigning different roles to key 158 and they've worked except for the camera role. So I'm thinking CAMERA is not the correct event name to open the camera up....
http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_CAMERA
That's where I got the keyEvent listings from.
Rom is in my signature.
Bump!
Help me out here guys!
I'm just gonna keep bumping every day.
The tricks to do the above seems to applied only to 4.3. Since my P607T is stock but rooted, how do i go by doing the above?
This capacitive keys are driving me mad when holding the tablet in portrait node.
lanwarrior said:
The tricks to do the above seems to applied only to 4.3. Since my P607T is stock but rooted, how do i go by doing the above?
This capacitive keys are driving me mad when holding the tablet in portrait node.
Click to expand...
Click to collapse
Try this:
Comment out lines in the 2 below .kl files:
/system/usr/keylayout/Generic.kl and gpio-keys.kl
Open Generic.kl file with text editor and put a '#' in the beginning of the line like below
Code:
# key 158 BACK
# key 172 HOME
# key 139 MENU
Editing the line on gpio-keys.kl (same directory as above)...
Code:
# key 172 HOME WAKE
** Then turn off lights via settings/display/touchkey light duration.
buhohitr said:
Try this:
Comment out lines in the 2 below .kl files:
/system/usr/keylayout/Generic.kl and gpio-keys.kl
Open Generic.kl file with text editor and put a '#' in the beginning of the line like below
Code:
# key 158 BACK
# key 172 HOME
# key 139 MENU
Editing the line on gpio-keys.kl (same directory as above)...
Code:
# key 172 HOME WAKE
** Then turn off lights via settings/display/touchkey light duration.
Click to expand...
Click to collapse
Thank you for this! I'll try it tonight.
Err...What app do you recommend to replace the back and menu key?
lanwarrior said:
Thank you for this! I'll try it tonight.
Err...What app do you recommend to replace the back and menu key?
Click to expand...
Click to collapse
The best is button savior from the market. You will need a pay version if you want to keep these customize buttons. Let try the free version and see. High lights:
1) create multiple buttons - like menu,home,recent,back etc..
2) cutom icons - nexus look a like and a bunch of others (theme)
3) buttons can be move and place anywhere on the screen
4) short cut key, button resize, color, transparent, hide button support.
Ultimate Dynamic Navbar has an Overlay Mode and can hide when unneeded.
To edit the tap, long touch and slide right and left one has to locate the file
fpc1020p.kl
That can be found at (with root enabled):
/system/usr/keylayout/
In that file the following items can be found:
key 158 (touch) VIRTUAL
key 249 (slide right)
key 254 (slide left)
key 183 (long touch) VIRTUAL
and for example to edit long touch as a shortcut to HOME you set:
key 183 HOME VIRTUAL
But how and where do you edit the double tap and press and double press actions?
Cheers!
This functionality was present on my seller stock ROM. After upgrading to Lineage 14.1 I'm left with partly extended/partly limited functionality of the button, while it looks like the solution is at a hands reach.
I have not ventured into custom ROM territory only to prevent losing the U button functionality.
How to edit double tap home ??