Default [Guide/Mod] Disable Power Button in Jellybean 4.1.2

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.
system/usr/keylayout/Generic.kl
system/usr/keylayout/gpio-keys.kl

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

Example gpio-keys.kl edit

Before:
Code:
key 115   VOLUME_UP         WAKE
key 114   VOLUME_DOWN       WAKE
key 116   POWER             WAKE
key 172   HOME              WAKE
After:
Code:
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 GB27.Power.Button.Disable.zip - [Click for QR Code] (1.65 MB, 22 views)
File Type: zip GB27.Power.Button.Stock.zip - [Click for QR Code] (1.65 MB, 17 views)