Deactivate volume buttons possible?

Search This thread

lordofazeroth

Senior Member
Nov 28, 2010
537
26
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?
 

mugna91

Member
Jan 2, 2012
37
46
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
 
Last edited:

isajoo

Senior Member
Oct 17, 2012
253
65
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.
 

AGoogleUser

Senior Member
Dec 14, 2012
233
29
Harmony
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

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!
 

mugna91

Member
Jan 2, 2012
37
46
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!

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
 
  • Like
Reactions: AGoogleUser

AGoogleUser

Senior Member
Dec 14, 2012
233
29
Harmony
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

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
 

mugna91

Member
Jan 2, 2012
37
46
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

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
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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!

    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