Remove All Ads from XDA
Honor 9 Lite

[Guide/Mod] Disable Power Button in Jellybean 4.1.2

13,713 posts
Thanks Meter: 36,469
By tdunham, Recognized Contributor on 25th January 2014, 03:42 PM
Post Reply Email Thread
Disable Power Button Mod

The flashable mod will ONLY work on the E4GT JB 4.1.2 build please do not use this mod on any other build or phone.

Due to the high failure rate of the power button on our older phones, this is a hardware key mod that will disable the power button on our E4GT phones in JB. This only cuts back on the random power button presses of a failing button while the JB rom is booted. I don't think it disables the long press of the power button to do a soft reset as this is not a ROM feature but a hardware feature built into the phone.

Flash this mod in recovery mode.
Please make certain you have a current backup already saved to your phone.
I will not be responsible if your rom does not boot or has any other issues.


Brief guide:
For our builds this is a simple edit of two files.

Place a comment code (#) in front of any line that is still active with the keyword POWER

Example gpio-keys.kl edit

key 115   VOLUME_UP         WAKE
key 114   VOLUME_DOWN       WAKE
key 116   POWER             WAKE
key 172   HOME              WAKE
key 115   VOLUME_UP         WAKE
key 114   VOLUME_DOWN       WAKE
# key 116   POWER             WAKE
key 172   HOME              WAKE
Note: This principle should work on other phones & builds but your key files may be slightly different. If you successfully edit your phone & build, please share your experience here with others.
Attached Files
File Type: zip - [Click for QR Code] (1.65 MB, 60 views)
File Type: zip - [Click for QR Code] (1.65 MB, 36 views)
The Following 6 Users Say Thank You to tdunham For This Useful Post: [ View ] Gift tdunham Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes