Monday, May 9, 2016

How to Remap the Hardware Buttons On Your Android Phone

Remap the Hardware Buttons On Your Android Phone

Suppose you want to make volume keys in Android device as power key, then perform following steps :

Note : Please make sure your device is rooted.
  • In Android, hardware key mapping details are present under /system/usr/keylayout/keypad.kl.
  • Pull keypad.kl and change VOLUME_DOWN or VOLUME_UP to POWER and add  WAKE, like below (Make sure device is rooted)
  • For Volume UP key
                         key 115   VOLUME_UP
                         to
                         key 115   POWER     WAKE
  • For Volume Down key

                         key 114   VOLUME_DOWN
                         to
                         key 115   POWER     WAKE
  • Push keypad.kl, now you can see that VOLUME keys will perform as power key
Share:

0 comments:

Post a Comment

Popular Posts

Contact Form

Name

Email *

Message *