[GUIDE] remap capacitive buttons - Nexus S General

I know a lot of people out there are doing this already, but it didn't seem like there was a guide or anything out there for the NS. So, here we go.
(Please, make sure you know what you're doing BEFORE you apply this modification. I can't be responsible if you somehow manage to brick, or make brick-like your phone while following this guide.)
-You can do this using either adb, Terminal, or apps like Root Explorer. Since I'm trying to make this as easy as possible, I'll explain how to do this using the "File Manager" app, which can be installed via Market for FREE.
First, you need a rooted phone. If your phone is not rooted, there is extensive existing literature on how to get this done. (It's awfully easy on our Nexus S )
Run File Manager, hit Menu > More > Settings, scroll way~~ down, and make sure that "Root Explorer" and "Mount System Folders" are checked.
Navigate your way to
/system/usr/keylayout
(you'll have to move Up a step or two to find 'system' folder at root level.)
[BACKUP THE ORIGNIAL FILE WE'RE ABOUT TO MODIFY]
Long-press the file 'cypress-touchkey.kl'
Select 'Copy'
Hit 'Paste', on the upper left corner of app.
You'll be asked to rename the file. Rename it to something reasonable. (like, cypress-touchkey.kl.bakup)
Hit 'Ok'
Make sure the file you just created exists.
[START MODIFICATION]
Long-press 'cypress-touchkey.kl' (again)
Hit 'Permissions'
Make sure that ALL THREE boxed under "Write" are checked, and hit OK.
Hit 'cypress-touchkey.kl' (yet, again)
Select Text > Text Editor
Here, you'll see something like,
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
as you've guessed, the first part,
Code:
key ###
is telling which key this command (event) is for.
So we can intuitively tell that the number for our capacitive 'Back' button is probably 158.
the next section, 'MENU, HOME, BACK, SEARCH' tells Android what these buttons should actually do.
And a pretty good list of what an Android CAN do on a key-press is listed here: http://goo.gl/vrCvJ
From the list, lookup anything that starts with KEYCODE_ and you'll find a pretty good description of what that command ('event') makes Android do.
Just add this keycode, WITHOUT the KEYCODE_ part of the code, to where the current cypress-touchkey.kl reads 'MENU, HOME, BACK, SEARCH' (according to what you want which button to do, that is)
So, for example, I've remapped my 'Search' button to bring up the App Switcher (Recent Apps). (Long-pressing the Home button just didn't cut it for me )
So, my 'cypress-touchkey.kl' looks like this:
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
Now, save your modified 'cypress-touchkey.kl' by selecting,
Menu > Save, and the exit by selecting Menu > Exit.
To be safe, let's set the permissions back to what they were.
From the File Manager App, long-press 'cypress-touchkey.kl' > Permissions,
and un-check the lower two check-boxes under the 'Write' column, and hit "OK"
Now, reboot your phone, and see if all went well
I actually tried this mod on a ICS rom, expecting the ICS app switcher to pop up, but somehow, the APP_SWITCH event seems to bring out the GB Recent App thingy.
Functionally, it still works pretty well for me. But if there's anyone out there who has any information on how to bring out the all-new ICS App switcher with a key-event, I'd really appreciate it
Hope this makes someone's life easier!

Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.

Thanks for this, will definitely try out soon!
Follow the leader @corythug

Any idea what the app switch command is on ICS
Sent from my Nexus S 4G using xda premium

The ICS app-switch is, in my opinion, the best way to use search button key on Nexus S with ICS rom.
Hope someone will be able to find the correct command ot for that and someother creates a flashable zip to do the mod easily from recovery

Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App

cahir_cz said:
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
Click to expand...
Click to collapse
That's what were trying to figure out
Sent from my Nexus S 4G using xda premium

Thanks for the guide, I'll try it soon. My last few phones were from HTC and I love (or rather am so accustomed to) their button layout.
Sent from my Nexus S 4G using XDA App

Zorrich said:
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Click to expand...
Click to collapse
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(

Tried this, doesnt work on my kellmsking miui 2.8.1 with francos kernel :/ Changing the file does not change the button behaviour

olorin86 said:
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Click to expand...
Click to collapse
Yes, I've only changed the key-event to APP_SWITCH. Actually, I even tried copy/pasting your code into the file, still didn't work.
Thanks anyways. At least I now know how to do it, just have to figure out why it doesn't work, haha.

When using this the old recent apps comr up, meh.
Sent from my Nexus S using Tapatalk

we need to find the correct keyword for triggering the new ics app switch and it will be great

Anyone got a configuration to recommend to complement the ICS on screen buttons?

brrip said:
Anyone got a configuration to recommend to complement the ICS on screen buttons?
Click to expand...
Click to collapse
I tried logcat to see what happens when it's brought up but i'm not a dev, I know some code buy don't have a computer to try and implement for testing
Sent from my Nexus S 4G using xda premium

I tried alogcat from the market. It didn't show anything of worth after a key press.
Sent from my Nexus S 4G using xda premium

any news about that?

provolinoo said:
any news about that?
Click to expand...
Click to collapse
+1!!!
Sent from my Nexus S

Would be pretty sweet idd

Greenthy said:
Would be pretty sweet idd
Click to expand...
Click to collapse
Agreed, would love to get this working on ICS.

Related

[Q] How to I map the genius button to *Google Voice Search* or

Let me start by stating the I have perm root with -s off.
I am using the custom rom Virtuous Affinity.
With that said, I know that this rom has Google Search mapped to the genius button. I have looked at the threads about mapping the genius button to google search. When you press the button, I can then go to the voice search but I want to by pass this extra step.
I would like to map the button to Google Voice Search.
I have not been able to find any threads that discuss and detail what to enter for key 183.
And while we are at it, what would one enter for any of the other voice command apps like Vlingo or DragonGo!
BIG thanks in advance.
I'm running Virtuous Affinity, and this button is mapped to nothing.
When you long-press the button, if you have more than one responder, you get a dialog with choice between the responders. And in this dialog there is a checkbox "Use by default for this action". Press it before you select Voice Search, and next time there will be no more dialog. Until you install another responder, that is.
When you're looking for something, it's useful to start with basics before you dig astray.
[edit] You might be talking about short-pressing the button? In that case, it's indeed Google Search, as it's the default for any Android ROM besides T-Mobile specific one. I'd suggest leaving it as is, and using long-press mapping functionality, since it's present in all the apps you're talking about anyway, and it's native in Android, requiring no hard work. But in case you want to remap the button - it's possible, just a lot of unnecessary pain - to the point of editing framework and such, since you want the long-press functionality initiated by short-press. I saw it done on AOSP/CM ROMs, but it's not that easy in Sense. Most likely that's the reason you don't find anything related to it.
Good Answer!
Jack_R1 said:
I'm running Virtuous Affinity, and this button is mapped to nothing.
When you long-press the button, if you have more than one responder, you get a dialog with choice between the responders. And in this dialog there is a checkbox "Use by default for this action". Press it before you select Voice Search, and next time there will be no more dialog. Until you install another responder, that is.
When you're looking for something, it's useful to start with basics before you dig astray.
Click to expand...
Click to collapse
Thanks so much for the reply - but I would like to know what to put in the key mapping file, cause that is just the kinda girl I am ,
so if anyone else has done a mod to the key/button mapping file, I am still open for suggestions...
You can't. No matter what you put in the mapping file, you won't get the result you're looking for - because, as I already said, the system has button functionality selection built into framework, and the keymap file only selects from that functionality - nothing else. To change it, AOSP/CM ROMs change the framework (which is easy for them - since the framework is recompiled for the build). Sense ROMs will need a framework change too, but since Sense framework is precompiled, you'll need to baksmali the framework, find the right place to alter it (based on the AOSP/CM code location), insert smali code for what you want done (create another function that is capable of launching a user-selected intent, loaded from somewhere), and smali the framework back.
So if you're that kind of girl, start looking into apktool, dex2jar, JD-GUI and CM git
You could download button shortcut from the market and use it to change the button. Easier than messing with the system anyway.
Sent from my HTC Glacier using xda premium
nuclearbroccoli said:
You could download button shortcut from the market and use it to change the button. Easier than messing with the system anyway.
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
AFAIK it also reacts on long-pressing the button, which isn't what the OP wants.
Jack_R1 said:
AFAIK it also reacts on long-pressing the button, which isn't what the OP wants.
Click to expand...
Click to collapse
Sorry. Misunderstood.
I shouldn't post until I've been awake longer I guess...
Sent from my HTC Glacier using xda premium
It's ok, as you can see by my first post in this thread, it took me some time to understand too.
Appreciate the help!
Again, thanks for the help. I don't think I will be going that deep into the code to alter it so you can map voice search to the genius buttons - well not any time soon as I have too much on my plate already
biomade55 said:
Let me start by stating the I have perm root with -s off.
I am using the custom rom Virtuous Affinity.
With that said, I know that this rom has Google Search mapped to the genius button. I have looked at the threads about mapping the genius button to google search. When you press the button, I can then go to the voice search but I want to by pass this extra step.
I would like to map the button to Google Voice Search.
I have not been able to find any threads that discuss and detail what to enter for key 183.
And while we are at it, what would one enter for any of the other voice command apps like Vlingo or DragonGo!
BIG thanks in advance.
Click to expand...
Click to collapse
CM has this function under SITTINGS> INPUT > SEARCH KEY BEHAVIOR
Really?
crazykas said:
CM has this function under SITTINGS> INPUT > SEARCH KEY BEHAVIOR
Click to expand...
Click to collapse
I don't have access to my phone right now (I can't have it at work)...so I will look at this later today.
biomade55 said:
I don't have access to my phone right now (I can't have it at work)...so I will look at this later today.
Click to expand...
Click to collapse
My current rom is CF(CM 7.2 Kang).Sorry about SETTINGS word.Lol.Yes it has that function.You can set an app to open while pressing Genius/Search Key with normal pressing & long pressing too! I have set screenshot app to Genius button.
I believe the OP says in her first row she's using Virtuous Affinity, which is Sense 3.5 ROM.
And I believe I've mentioned CM ROMs having this function.
It won't help her, since she's not on CM. She won't even have "Input" sub-menu in Settings. And you should have read a bit before posting.
Got it
Jack_R1 said:
I believe the OP says in her first row she's using Virtuous Affinity, which is Sense 3.5 ROM.
And I believe I've mentioned CM ROMs having this function.
It won't help her, since she's not on CM. She won't even have "Input" sub-menu in Settings. And you should have read a bit before posting.
Click to expand...
Click to collapse
Sorry about that.I might wrong.I just said where she can find it if it is not on her current rom.Just that.Thank you for your advice.
Jack_R1 said:
I believe the OP says in her first row she's using Virtuous Affinity, which is Sense 3.5 ROM.
And I believe I've mentioned CM ROMs having this function.
It won't help her, since she's not on CM. She won't even have "Input" sub-menu in Settings. And you should have read a bit before posting.
Click to expand...
Click to collapse
Yup, I missed the reference to CM and thus could not find the Input Sub-menu under settings.
biomade55 said:
Yup, I missed the reference to CM and thus could not find the Input Sub-menu under settings.
Click to expand...
Click to collapse
Try Button Remapper app.Not sure,but give it a try

Changing the buttons on the Asus Dock

So I just got my dock a week or so ago and I'm loving it. Hardly ever take it off now. I especially like the shortcut keys. I was just wondering if there is anyway to change what the keys do when pressed? I hardly ever use the menu key because most of ICS/JB got rid of it. However it would be nice to change that key to say open my recently used apps or anything else really lol. I also was curious about changing what apps are open. So when I use the browser button the stock ics browser wont open but chrome will. Or I can change my settings button to just show notifications.
Sent from my Transformer Pad TF300T using xda premium
Nschneider7 said:
So I just got my dock a week or so ago and I'm loving it. Hardly ever take it off now. I especially like the shortcut keys. I was just wondering if there is anyway to change what the keys do when pressed? I hardly ever use the menu key because most of ICS/JB got rid of it. However it would be nice to change that key to say open my recently used apps or anything else really lol. I also was curious about changing what apps are open. So when I use the browser button the stock ics browser wont open but chrome will. Or I can change my settings button to just show notifications.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
I have also been very interested in figuring out this. From what i have seen, there is a file located in /system/usr/keylayout/asusdec.kl. If you open the file as a text document it shows you the key layout. It also looks like key139 is the "menu" key. I am sure we could change this one entry and copy it back into place to change the mapping, but i do not know what key word to use for the recent apps menu. If we could find this key word, we could edit the file to change the mapping. Does any one know the keyword to use to map the recent apps to a key?
Update: If you edit this .kl file and change key139 to read APP_SWITCH. The key will now bring up the recent apps menu. The only problem is it brings up the old looking recent apps. I am looking into how i can make it bring up the new app switch menu.
Interesting. Maybe getting a hold of Asus and asking them for the keywords would be nice. I wonder if they would have that information or be willing to give it out. Until then we can just keep messing with them and see what they do lol.
Sent from my Transformer Pad TF300T using xda premium
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Nschneider7 said:
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
Unfortunately the lock button doesn't unlock even on the stock ROM. I'll be watching this thread closely to see if you guys figure out a workaround. Maybe a semicolon between commands to send multiple commands at once? Who knows.
Nschneider7 said:
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
opethfan89 said:
Unfortunately the lock button doesn't unlock even on the stock ROM. I'll be watching this thread closely to see if you guys figure out a workaround. Maybe a semicolon between commands to send multiple commands at once? Who knows.
Click to expand...
Click to collapse
To be able to unlock using the keyboard lock key:
You can go to the settings (in stock atleast) -> Asus settings -> Battery saving -> untick the mobile dock option.
I assume this requires rooting? And another thing, have you tried changing the browserbutton to Chrome or any other browser?
Does anyone know if I edit this file /system/usr/keylayout/asusdec.kl. and completely turn it into a garbled mess, will it potentially brick my device ( I'll back up the file of course ) I just wnat to ensure if I reboot after making a change to it and I've made a mistake will it stop my device booting ? I've only rooted my tf300 and it's still locked....
brittan said:
I have also been very interested in figuring out this. From what i have seen, there is a file located in /system/usr/keylayout/asusdec.kl. If you open the file as a text document it shows you the key layout. It also looks like key139 is the "menu" key. I am sure we could change this one entry and copy it back into place to change the mapping, but i do not know what key word to use for the recent apps menu. If we could find this key word, we could edit the file to change the mapping. Does any one know the keyword to use to map the recent apps to a key?
Update: If you edit this .kl file and change key139 to read APP_SWITCH. The key will now bring up the recent apps menu. The only problem is it brings up the old looking recent apps. I am looking into how i can make it bring up the new app switch menu.
Click to expand...
Click to collapse
This issue exists in many places. However, its rather difficult to fix and requires a flash of a patch to fix. I had to do it on ics aokp on my phone... I found someone who would do make the patch for me. However that was aokp, and I don't think it would work here. Also, it requires an unlocked loader.
Sent from my SGH-T989 using xda premium
i was literally jut looking at my dock thinking why do they have a menu key but no recent apps key?
jusatin said:
To be able to unlock using the keyboard lock key:
You can go to the settings (in stock atleast) -> Asus settings -> Battery saving -> untick the mobile dock option.
Click to expand...
Click to collapse
This is useful, just tried it on my TF700. However, now it looks like the screen lock doesn't work. That is to say, when I wake with a key on the dock, there is no slide lock, just comes right back to the Launcher screen. Sounds like that could be a bit of a security issue, honestly.
Also, since the option specifically mentions it drains battery (assumedly from continuously polling from input from the dock), I think I'll wait until this is sorted out a bit better.
This is kind of annoying, tho. Having the TF right here next to me like a laptop, but not being able to wake it with this nice huge keyboard dock...
chriwu said:
I assume this requires rooting? And another thing, have you tried changing the browserbutton to Chrome or any other browser?
Click to expand...
Click to collapse
Check this thread:
http://forum.xda-developers.com/showthread.php?t=1497624

[Q] Please help...issue with Win+X shortcuts

when I press Win+X key all the options appear in the box, but when I click on any one --- i.e. Device Manager or System or Command Prompt --- nothing happens. All those programs are working when opened directly (instead of using Win+8 shortcut) and the other Win+ shortcuts work properly. I have not messed with my registry at all. Any other things that may be causing this? or known fixes??
thanks in advance...
Try to right click and open.......
Sent from my Xperia U using xda app-developers app
sometimes they work, sometimes they don't. I noticed that. Right click on them always works though, or if you look down the menu each menu item has 1 letter underlined. Like:
Command Prompt (Admin)
If you press the key corresponding to the highlighted option, it opens that option for you. So Win+X, then press A, I would get windows prompting for admin permissions to open the admin command prompt - probably not the best example because of that actually. Or Win + X, then C, regular command prompt would open.
Karchikumar said:
Try to right click and open.......
Sent from my Xperia U using xda app-developers app
Click to expand...
Click to collapse
SixSixSevenSeven said:
sometimes they work, sometimes they don't. I noticed that. Right click on them always works though, or if you look down the menu each menu item has 1 letter underlined. Like:
Command Prompt (Admin)
If you press the key corresponding to the highlighted option, it opens that option for you. So Win+X, then press A, I would get windows prompting for admin permissions to open the admin command prompt - probably not the best example because of that actually. Or Win + X, then C, regular command prompt would open.
Click to expand...
Click to collapse
I already tried both right click and pressing key of the corresponding underlined letters...but either of them didn't work
any way to revive that function??
thanks in advance...
neob.abragil said:
I already tried both right click and pressing key of the corresponding underlined letters...but either of them didn't work
any way to revive that function??
thanks in advance...
Click to expand...
Click to collapse
Something may be wrong with your windows 8 install. Try a refresh, there are guides online that you should be able to find from google easy.

G2's Volume UP & Down Key Mapping.

Hello,
Holding down the volume up brings up quickmemo. Unfortunately I use Google Keep and was wondering if the keymapping for volume up could be changed to launch Google Keep.
You can't draw in Google keep...
Sent from my LG-D803 using Tapatalk 4
Brava27 said:
You can't draw in Google keep...
Sent from my LG-D803 using Tapatalk 4
Click to expand...
Click to collapse
When did he say you can draw. ..
Sent from my LG-D800 using Tapatalk 4
trh1341 said:
When did he say you can draw. ..
Sent from my LG-D800 using Tapatalk 4
Click to expand...
Click to collapse
lol...
I'd be curious about remapping the volume buttons also.
spinedoc said:
I'd be curious about remapping the volume buttons also.
Click to expand...
Click to collapse
Seems like there is no way right now. I'm hoping future ROM developers do implement this.
diffstyle said:
Seems like there is no way right now. I'm hoping future ROM developers do implement this.
Click to expand...
Click to collapse
I would soo love this feature
spinedoc said:
I'd be curious about remapping the volume buttons also.
Click to expand...
Click to collapse
I was able to remap the buttons (short press and long press) with the Xposed module called : Xposed Additions. It even lets you remap what they do while in sleep, and do something different when awake.
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
spinedoc said:
I was able to remap the buttons (short press and long press) with the Xposed module called : Xposed Additions. It even lets you remap what they do while in sleep, and do something different when awake.
Click to expand...
Click to collapse
I tried it and mapped next/previous track to up and down volume buttons. Also mapped power button to pause and play when double tapping
vijay555 said:
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
Click to expand...
Click to collapse
Is there a way to change/remap the soft Keys?
Slide said:
Is there a way to change/remap the soft Keys?
Click to expand...
Click to collapse
Not without framework mods, AFAIK, but I hate softkeys. Use AutoHideSoftKeys and get the best of both worlds.
V
vijay555 said:
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
Click to expand...
Click to collapse
Very cool, but for a noob on this, any more direction? Want to change the up button to something else besides memo.
friguy3 said:
Very cool, but for a noob on this, any more direction? Want to change the up button to something else besides memo.
Click to expand...
Click to collapse
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
vijay555 said:
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
Click to expand...
Click to collapse
Downloaded and installed xposed but no idea what the hell im doing. lol looked in downloads but not sure whats going on...Think Ill back off now before I screw something up.
friguy3 said:
Downloaded and installed xposed but no idea what the hell im doing. lol looked in downloads but not sure whats going on...Think Ill back off now before I screw something up.
Click to expand...
Click to collapse
@Friguy, I don't want to hijack the thread, but if you're worried about messing anything up, get yourself clockwork mod or twpm installed so that you can make a full backup and restore. It gives you so much freedom!
Download xposed, find the apk and install it.
Find xposed in your apps and run that. Install the framework, and then goto downloads, find the module you want and download it. Go to modules and put a tick next to the module to enable it, and then reboot your phone to enable everything.
After that, find xposed additions in your apps and run that to configure it. My way is easier but additions gives you more flexibility.
V
vijay555 said:
@Friguy, I don't want to hijack the thread, but if you're worried about messing anything up, get yourself clockwork mod or twpm installed so that you can make a full backup and restore. It gives you so much freedom!
Download xposed, find the apk and install it.
Find xposed in your apps and run that. Install the framework, and then goto downloads, find the module you want and download it. Go to modules and put a tick next to the module to enable it, and then reboot your phone to enable everything.
After that, find xposed additions in your apps and run that to configure it. My way is easier but additions gives you more flexibility.
V
Click to expand...
Click to collapse
Oh I have twrp installed (been flashing for years my old gnex) just had no idea which thing to download. A lot said for xperia, so didn't know if it was for any phone. I'll give it a go this weekend. Thx.
Sent from my VS980 4G using Tapatalk 4
Thanks for the responses, I'll be trying out Exposed when I get the chance.
vijay555 said:
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
Click to expand...
Click to collapse
Any way to remap the power button only when the device is on? i.e. only allow it to turn the device on, but not off.
No, you need the ability turn the phone off. if You get caught stuck our locked up you need the button combination get your phone to shut down
Sent from my LG-D800 using Tapatalk

"Virtual button" / On-screen buttons?

Has anyone figured out how to turn on on-screen buttons instead of using the capacitive/physical buttons? In the control center, there's option to turn on "virtual button" and it allows you to disable the capacitive/physical buttons, but nothing shows up on the screen.
It's under accessibility
LeEco Pro3
toanau said:
It's under accessibility
LeEco Pro3
Click to expand...
Click to collapse
That only allows you to disable the hard buttons though, doesn't enable soft ones (on screen nav buttons). There's a way to enable them by default editing the build.prop but people were saying it didn't work on emui for some reason. One guy said it works fine, so I don't know. Requires root too though. No root in sight for US variants so far.
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
Are you rooted? Do you have the US model?
Sent from my SM-P600 using XDA-Developers mobile app
toanau said:
Are you rooted? Do you have the US model?
Sent from my SM-P600 using XDA-Developers mobile app
Click to expand...
Click to collapse
I can answer for him lol. Yes, hes rooted, otherwise it wouldnt be possible, and no, because us model cant be rooted atm
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
Please remember, I'd like to extend the button backlight time
Klara Kaiser said:
Please remember, I'd like to extend the button backlight time
Click to expand...
Click to collapse
If I understood that correctly, then you don't need to use softkeys. After the latest update, if you go to accessibility, there is an option for enabling the button backlight as long as the phone screen is on. I attached a picture clearly showing the option if it might help.
p_pal2000 said:
If I understood that correctly, then you don't need to use softkeys. After the latest update, if you go to accessibility, there is an option for enabling the button backlight as long as the phone screen is on. I attached a picture clearly showing the option if it might help.
Click to expand...
Click to collapse
Was exactly what I'm looking for, but I haven't this setting option. Are you at 5.8.0.19S? I'm still on 18S.
So I have to wait
Yep I'm on 19S. I thought all US models had gotten the update, but I forgot that this phone came out in other countries previously ( -_- ). So I suppose you just have to wait a few more days/weeks and hopefully you get the update.
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
DANG...WORK FOR ME, US VERSION CONVERTED TO CHINESE AND whammmmm.:good:
THANKS A LOT.
johnkchiu said:
Has anyone figured out how to turn on on-screen buttons instead of using the capacitive/physical buttons? In the control center, there's option to turn on "virtual button" and it allows you to disable the capacitive/physical buttons, but nothing shows up on the screen.
Click to expand...
Click to collapse
Like this?
Install SimpleControl
OR you can Flash CM13 rom they have option for on screen navigation key and disable the hardware one, or you can keep the hardware as stock rom.
This rom I was using it I found it best CM13 rom by far: CM13 LEX720 by Team Superluminal
Nova Launcher also can show the software buttons
Tonnex said:
Nova Launcher also can show the software buttons
Click to expand...
Click to collapse
Where is the option in Nova Launcher? I can't find it.
4K2K said:
I got it working by adding qemu.hw.mainkeys=0 on build.prop.
From there, I got physical buttons to not work by modifying synaptics_dsx.kl file in /System/USR/KEYLAYOUT.
You simply put # in front of all the listed entries (e.g., # key 158 BACK VIRTUAL.)
From there, I also disabled button back light by modifying an another system file. I forgot which file it is.
After those three steps, it is as if it came with soft keys without physical buttons.
Click to expand...
Click to collapse
so far this worked, did you remember what file the backlight keys are controlled by?
Klara Kaiser said:
Please remember, I'd like to extend the button backlight time
Click to expand...
Click to collapse
There isn't a file. He said "he cant remember" because he is lying
The backlight controls are driven by two files in /sys/class/leds/button-backlight. Files in the /sys folder are pseudo files created at runtime from the kernal. You would need to mod the kernal to permanently turn the lights off.

Categories

Resources