Monday, May 9, 2016

How to change hard keys of Android device

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

  • 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

Recent Posts

Categories

Unordered List

Pages

Powered by Blogger.

Subscribe

Recent Posts

Posts

Contact Form

Name

Email *

Message *