Volume Button Mod [1129]
Ok so we all do it because its the only way we really wake up our HTC phones. Pressing the power button will make an interrupt to wake up the phone and take it out of sleep mode. Now the only problem is that the power button can become over-used and can become broken over time.
Â
So why allow the use of the volume button to wake up the phone as well? Well from stock this option is not given, however – this can be modified and pretty simply.
Â
Firstly you will want to find a file within your build called “android.policy.jar” Â called KeyguardViewMediator.smali and you will want to open it with the notepad or something similar.
Â
Once opened you will need the line with ” .method private isWakeKeyWhenKeyGuardShowing(I)Z” and delete the 0x18 &0x19 lines.
Â
Save your edited file and repackage your build.
Â
Once built flash onto your device and hopefully you should now have a phone that can be woken by using the volume buttons as well as the power buttons!
Â
Happy modding!!