[Fixed] Remap hardware buttons?

jelbo

Senior Member
Jun 20, 2009
585
185
73
tinyurl.com
I used to use ButtonRemapper to switch my Volume Down and Power buttons, but sadly the app crashes on the HTC One. Waking and sleeping the One with Volume Down is very handy in my opinion.

Has anyone found another way to remap the buttons on the One? I tried this method on the qwerty.kl file, but it didn't work.
 
Last edited:

jelbo

Senior Member
Jun 20, 2009
585
185
73
tinyurl.com
Got it working! I got ButtonRemapper to not crash, but it didn't read the correct .kl file. Using Fx File Explorer I edited the file keypad_8960.kl in /system/usr/keylayout/

Original:

Code:
key 116   POWER            WAKE_DROPPED
key 114   VOLUME_DOWN       WAKE
key 115   VOLUME_UP         WAKE

key 107   ENDCALL           WAKE_DROPPED
My current file:

Code:
key 116   VOLUME_DOWN            WAKE
key 114   POWER       WAKE_DROPPED
key 115   VOLUME_UP         WAKE

key 107   ENDCALL           WAKE_DROPPED
Now waking my One is a breeze! :laugh:
 
  • Like
Reactions: propov