I gave the Galaxy Nexus to my father. Everytime he takes it out of the leatherbag he accidentally touches the volume keys.
Is there a way to deactivate the volume keys, so the ringer cannot be changed, but the volume when phoning can be changed?
If you have root privileges just edit /system/usr/keylayout/tuna-gpio-keypad.kl.
key 114 UNKNOWN
key 115 UNKNOWN
Backup the file before.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Installing gravitybox via exposed add-on will give you full control over the volume buttons + more.
Eg.
Set it to only change media volume by default.
Remove annoying beeping sound when pressing volume buttons.
Expanded on screen volume controls for ringer/media/notification/alarm/in-call.
mugna91 said:
If you have root privileges just edit /system/usr/keylayout/tuna-gpio-keypad.kl.
key 114 VOLUME_DOWN UNKNOWN
key 115 VOLUME_UP UNKNOWN
Backup the file before.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Click to expand...
Click to collapse
You might be able to help me sir.
Is there a way to map these hardware keys to preform different actions? If possible I'd like the power button to go to the home screen.
Sent from my Liquid Powered Nexus!
AGoogleUser said:
You might be able to help me sir.
Is there a way to map these hardware keys to preform different actions? If possible I'd like the power button to go to the home screen.
Sent from my Liquid Powered Nexus!
Click to expand...
Click to collapse
Yep. Just check Generic.kl (same folder) for a full list of commands. In your case:
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 116 HOME
PS I have edited my previous message.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
mugna91 said:
Yep. Just check Generic.kl (same folder) for a full list of commands. In your case:
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 116 HOME
PS I have edited my previous message.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Click to expand...
Click to collapse
Setting key 116 to HOME didn't work. After a reboot my power button just didn't do anything. Even long holding didn't make the power off screen open. I reverted and it works fine again.
Sent from my Galaxy Nexus using XDA Free mobile app
AGoogleUser said:
Setting key 116 to HOME didn't work. After a reboot my power button just didn't do anything. Even long holding didn't make the power off screen open. I reverted and it works fine again.
Sent from my Galaxy Nexus using XDA Free mobile app
Click to expand...
Click to collapse
Here is working. Make sure you have deleted WAKE. The string it's just:
key 116 HOME
EDIT: Try this http://d-h.st/xFp
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
mugna91 said:
Here is working. Make sure you have deleted WAKE. The string it's just:
key 116 HOME
EDIT: Try this http://d-h.st/xFp
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Click to expand...
Click to collapse
Still not working. Will try with different launcher and will report back.
Sent from my Galaxy Nexus using XDA Free mobile app
Related
I have been searching to fix my broken back key(it only activates when i push on it hard) and came across this thread. Here is a modified version for the ns4g.
How To:
All the commands for the buttons are in
Code:
/system/usr/keylayout
"cypress-touchkey.kl" is for the 4 main buttons
"herring-keypad.kl" includes all of the exterior buttons including the capacitive buttons, but the action only changes for capacitive buttons if you edit the action in cypress-touchkey.kl.
Here all of the actions that you can replace an action with:
"Power", "Home", "Menu", "Back", "Search", "Volume up", "Volume down", "Camera", "Focus", "Endcall", "Call", "Media Play Pause", "Media Stop", "Media Next", "Media Previous", "Media Rewind", "Media Fast Forward", "Dpad center", "Dpad up", "Dpad down", "Dpad left", "Dpad right"
For me, I will be changing the search key to go back instead of searching.
Code:
adb shell
Code:
cd /system/usr/keylayout
Code:
vi cypress-touchkey.kl
*for windows users notepad can be used to edit these files*
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
key 217 is the search key so
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 MEDIA_PLAY_PAUSE VIRTUAL
key 217 BACK VIRTUAL
As you can see I also changed the back key to play/pause music.
**You can also use a root file explorer such as es file manager to do this. **
Reboot to apply changes
special thanks to Decad3nce and appelflap
reserved for more
Cool, thanks for sharing
Igotsanevo4g said:
Cool, thanks for sharing
Click to expand...
Click to collapse
No problem
Sent from my Nexus S 4G using xda premium
awesome very useful
Sent from my Nexus S 4G using the XDA mobile application powered by Tapatalk
Bobguy21 said:
awesome very useful
Sent from my Nexus S 4G using the XDA mobile application powered by Tapatalk
Click to expand...
Click to collapse
Glad you like it
Sent from my Nexus S 4G using xda premium
There is also a app out there called "Button Remapper" if anyone is interested
Sent from my Kushed Nexus S 4G
Rooster85 said:
There is also a app out there called "Button Remapper" if anyone is interested
Sent from my Kushed Nexus S 4G
Click to expand...
Click to collapse
If you're talking about this thread, it only partially supports sgs variants
Sent from my Nexus S 4G using xda premium
Ahhh yea your right, I just used it when I had my evo shift.... my b bro
Sent from my Kushed Nexus S 4G
O.O So I found this out when I was inserting my SD-Card into my Galaxy Gio.
Then I accidentally pressed the following buttons:
Power Button + Home Button
O.O
But not at the same time! Power button first, then press the home button!
Ahahahaha
This was on STOCK Gingerbread 2.3.6
Home button + back soft key with Froyo and Gingerbread (2.3.3, 2.3.4)
Lol peter.
You didnt know???
Screencaptureservice in system/app
Sent from my GT-S5660 using xda premium
voetbalremco said:
Lol peter.
You didnt know???
Screencaptureservice in system/app
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
Yeah I knew about it but I never got it working -_-
I would press Power + Home button together and never get screenshot LOL
But know I now you must press power first then home
lol fail
I mostly press home first, otherwise the power popup pops up
It depends on holding them both for a few seconds
Sent from my GT-S5660 using xda premium
voetbalremco said:
I mostly press home first, otherwise the power popup pops up
It depends on holding them both for a few seconds
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
But if you press home first it would make you go back home.
Where as, when you press power first, there's a delay and then quickly press home to screensot. Or not you lock the phone.
LOL
Hahaha
I hate the feeling when you discover something cool then everybody knows about it lol
Sent from my GT-S5660 using xda premium
Hi,
Since few days i'am looking for apk or any solution to answer by HOME button on Arc S. Sometimes is annoing (or even impossible) slide the screen
valdek26 said:
Hi,
Since few days i'am looking for apk or any solution to answer by HOME button on Arc S. Sometimes is annoing (or even impossible) slide the screen
Click to expand...
Click to collapse
I have such an option in sjb4... Maybe it's there in all cm10 roms...
Edit: maybe you can try this forum.xda-developers.com/showthread.php?p=35913887
Sent from my Neo V using xda-developers app
Attitude.SSJ said:
I have such an option in sjb4... Maybe it's there in all cm10 roms...
Sent from my Neo V using xda-developers app
Click to expand...
Click to collapse
There is just ending connection by power button
I use lar official firmware for ArcS Android 4.0.4 4.1.B.0.587 becouse of looked bootloader is the newest firmware I can use
valdek26 said:
There is just ending connection by power button
I use lar official firmware for ArcS Android 4.0.4 4.1.B.0.587 becouse of looked bootloader is the newest firmware I can use
Click to expand...
Click to collapse
Tried the app?
Sent from my Neo V using xda-developers app
Attitude.SSJ said:
Tried the app?
Sent from my Neo V using xda-developers app
Click to expand...
Click to collapse
I tied few apk for example Answer Call Easy is closest my problem. But is doesn't work is for Samsung Galaxy
Attitude.SSJ said:
Tried the app?
Sent from my Neo V using xda-developers app
Click to expand...
Click to collapse
Maybe somehow edit this file pm8058-keypad.kl in system/usr/keylayouts
# this corresponds to kernel/arch/arm/mach-msm/keypad-ayame.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_MENU, KEY_HOME, KEY_BACK
key 139 MENU
key 102 HOME WAKE_DROPPED
key 158 BACK
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
valdek26 said:
Maybe somehow edit this file pm8058-keypad.kl in system/usr/keylayouts
key 102 HOME WAKE_DROPPED
Click to expand...
Click to collapse
I've changed HOME to CALL with Root Explorer
It works but lack of HOME button
I would like to have HOME function and just when I want to answer CALL function
Hi
I add soft key to my note 2 and disable hard buttons too, and everythings is ok, now i want reverse back soft key with recent app key, then every thing will be like nexus 4 softkeys
Thanks
Sent from my GT-N7100 using Tapatalk 4
Just picked up my Nexus 7 and plan to root. I have never owned a device that didn't have a removable battery. Whenever I have an issue with boot loops on my devices with removable batteries, I can just pull the battery but I am unsure of how to accomplish this with my N7. What do you guys do to power off the device if stuck in a boot loop?
Metroba said:
Just picked up my Nexus 7 and plan to root. I have never owned a device that didn't have a removable battery. Whenever I have an issue with boot loops on my devices with removable batteries, I can just pull the battery but I am unsure of how to accomplish this with my N7. What do you guys do to power off the device if stuck in a boot loop?
Click to expand...
Click to collapse
I think holding down the power button for about 10-15 seconds will power down the device.
There is a combo
press power button and vol - (down ) for 5 sec ~
You'll reboot the device
For the recovery all buttons (vol+ vol - and power) when off
Inviato dal mio Nexus 7 usando XDA Premium HD app
Thank you guys very much! This was my only concern with this device.
Vallerino WR said:
There is a combo
press power button and vol - (down ) for 5 sec ~
You'll reboot the device
For the recovery all buttons (vol+ vol - and power) when off
Inviato dal mio Nexus 7 usando XDA Premium HD app
Click to expand...
Click to collapse
Actually, it is just vol- and power to enter the bootloader.
Sent from my Nexus 7 using Tapatalk 4
ops...sorry
i use this combo on my motorola razr
i confuse the Q&A section....