G2's Volume UP & Down Key Mapping. - G2 Q&A, Help & Troubleshooting

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

Related

[Q] REMAPPING buttons

wondering,
http://forum.xda-developers.com/showthread.php?t=836702
reading that, i remapped my G button to ENDCALL. i was wondering, the faves soft button on the bottom of the screen, what number button is that and can that be edited to map to something else? like say browser or gmail or sms, etc.
I would like to know too if there's a way to change that soft button without having to root the phone. I absolutely hate that damn soft button, it's wasting one off my app spots
Sent from my HTC Glacier using XDA App
maniacallyhappy said:
I would like to know too if there's a way to change that soft button without having to root the phone. I absolutely hate that damn soft button, it's wasting one off my app spots
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
you mean on the dock? LP lets you change your dock around and you dont need to be rooted for that.
splackavellie said:
you mean on the dock? LP lets you change your dock around and you dont need to be rooted for that.
Click to expand...
Click to collapse
what is LP?
and no we are talking about the faves button on the bottom of the screen on the right next to the applications menu soft key.
[PHONE][APPLICATIONS][FAV]
^^^If that helps
i know some buttons have numbers assigned to them (like button 183, 204, etc) but no idea what button or where the file to edit for above mentioned key would be located. im thinking it may be in the sense theme itself since other themes have different buttons?
Sorry. LP = Launcher Pro, which you can get from the market. And yes it lets you change that.
tackleberry said:
wondering,
http://forum.xda-developers.com/showthread.php?t=836702
reading that, i remapped my G button to ENDCALL. i was wondering, the faves soft button on the bottom of the screen, what number button is that and can that be edited to map to something else? like say browser or gmail or sms, etc.
Click to expand...
Click to collapse
It is not edited the same way. It is much more complicated. But you can go over to my thread and download the mod to change your "Faves" button on the MySense launcher. You must be rooted though.
TrueBlue_Drew said:
It is not edited the same way. It is much more complicated. But you can go over to my thread and download the mod to change your "Faves" button on the MySense launcher. You must be rooted though.
Click to expand...
Click to collapse
oh my thats perfection! ill install later!
Hijacked
TrueBlue_Drew said:
It is not edited the same way. It is much more complicated. But you can go over to my thread and download the mod to change your "Faves" button on the MySense launcher. You must be rooted though.
Click to expand...
Click to collapse
Can't download they all have been hijacked.

[GUIDE] remap capacitive buttons

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.

recent apps button to menu button?

Just was wondering if there is still a way to access the menu with the button or anyway to change that?
I use the menu feature much more frequently then recent apps on my device.
If that can't be changed that might make it harder for me to use.
Not a deal breaker from me buying it but can be annoying.
Long press the Recent apps can open Menu
Okay.
Good to know.
Thank you for sharing.
I feel less bothered by that now.
isnt there any way to change it back to normal ???? its really annoying to long press eveytime !!
Wish I could change it. Been searching with no positive results
Sent from my SAMSUNG-SM-G900A using Tapatalk
You'll need root, then install xposed framework followed by gravitybox... a search on xda will explain these things If you need help
leoaudio13 said:
Long press the Recent apps can open Menu
Click to expand...
Click to collapse
That is not the menu button.
I am also wanting to go back to the old layout and get rid of the stupid app switcher.
JoJo2211 said:
That is not the menu button.
I am also wanting to go back to the old layout and get rid of the stupid app switcher.
Click to expand...
Click to collapse
Buy a S4 and yes, long press task for menu

Remap Home button function??

Posted this in the T-Mo GS4 section but I've gotten no replies so I'll ask here
Basically what's happening here is that I want to use on screen nav keys. OK cool. Enabled them through Gravitybox I shut off the capacitive LEDs and was able to disable to menu and back buttons all together by editing the generic.kl file in /system/usr/ file.
Now, I'm trying to change the home buttons function to menu instead of home but it isn't working. I reboot and the button is still functioning as home.
I edited key 103 and 172 and replace MOVE_HOME with MENU WAKE_DROPPED. It isn't working.
Anyone got any ideas on what to do?
H3adru5H said:
Posted this in the T-Mo GS4 section but I've gotten no replies so I'll ask here
Basically what's happening here is that I want to use on screen nav keys. OK cool. Enabled them through Gravitybox I shut off the capacitive LEDs and was able to disable to menu and back buttons all together by editing the generic.kl file in /system/usr/ file.
Now, I'm trying to change the home buttons function to menu instead of home but it isn't working. I reboot and the button is still functioning as home.
I edited key 103 and 172 and replace MOVE_HOME with MENU WAKE_DROPPED. It isn't working.
Anyone got any ideas on what to do?
Click to expand...
Click to collapse
NEVERMIND! I figured it out.
If anyone is interested in remapping their hardware buttons, the file to edit is the gpio-keys.kl file in /system/usr/keylayout/ folder.
H3adru5H said:
NEVERMIND! I figured it out.
If anyone is interested in remapping their hardware buttons, the file to edit is the gpio-keys.kl file in /system/usr/keylayout/ folder.
Click to expand...
Click to collapse
There is XPOSED.
Then there are WANAM EXPOSED.
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
DeepankarS said:
There is XPOSED.
Then there are WANAM EXPOSED.
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
Click to expand...
Click to collapse
Unfortunately I'm a stock Google kind of guy so Wanam wouldn't work and gravity box has no settings to change hardware butting single press functions.
It's OK though. Editing the file I posted above works well enough.
H3adru5H said:
Unfortunately I'm a stock Google kind of guy so Wanam wouldn't work and gravity box has no settings to change hardware butting single press functions.
It's OK though. Editing the file I posted above works well enough.
Click to expand...
Click to collapse
Ohh..stock android no root you mean?
Because even I use a rooted stock rom and wanam xposed works like a charm..
Anyways to each his own ^_^
Glad you found something that might help many.
Thanks for sharing
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
DeepankarS said:
Ohh..stock android no root you mean?
Because even I use a rooted stock rom and wanam xposed works like a charm..
Anyways to each his own ^_^
Glad you found something that might help many.
Thanks for sharing
Press Thanks if I helped
Sent from my Samsung Galaxy S4 via XDA app.
Click to expand...
Click to collapse
Oh I'm definitely rooted I'm just using a Google Edition ROM instead of TW. Thanks for your input though dude. When I was using TW Wanam worked like a charm for me too.

Disable Home Button Completely

Hello, all. I'm trying to disable the home button. I've tried everything I've read and searched up, it's a no-go. It doesn't wake the phone which is halfway there but it still functions after the lockscreen. What am I doing wrong? Thanks.
totbl said:
Hello, all. I'm trying to disable the home button. I've tried everything I've read and searched up, it's a no-go. It doesn't wake the phone which is halfway there but it still functions after the lockscreen. What am I doing wrong? Thanks.
Click to expand...
Click to collapse
Root your phone, install xposed framework and install xposed additions from playstore, re-map your button with your fav. action :good:
boyrobbie said:
Root your phone, install xposed framework and install xposed additions from playstore, re-map your button with your fav. action :good:
Click to expand...
Click to collapse
Will try right now and get back to you. Thanks a lot. Hope it's that simple.
totbl said:
Will try right now and get back to you. Thanks a lot. Hope it's that simple.
Click to expand...
Click to collapse
let's me see
It didn't work for any of the capacitive buttons nor the home. But I'm already good with the capacitives through another method. Hardware home seems impenetrable. Anything else?
All right. I finally got it! I edited gpio-keys.kl (separate from the rest of the buttons from down there for some reason) and I added a # in front of key 172 HOME and saved it.

Categories

Resources