Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: Volume rocker awake 2.3.5
4th February 2012, 11:45 AM
qwerty12's Avatar
Senior Member
Flag (*England).London
Thanks Meter: 284
EDIT: It seems that yannn007 has an easier way: I tried it, and it didn't work for me, unfortunately.

Since I promised to add to the wiki, let this be the first. I learnt this trick from a ROM by birdyi, so I credit him; however, I have seen it in ROMs that existed before his did.

How to make the volume rocker wake up the phone with the stock locker

  1. Obtain /system/framework/android.policy.jar from your phone
  2. Decompile said file using apktool
  3. Open android.policy.jar.out/smali/com/android/internal/policy/impl/KeyguardViewMediator.smali (note, if you chose to extract to a different folder, then replace "android.policy.jar.out" with the name of your chosen folder)
  4. Find the line ".method private isWakeKeyWhenKeyguardShowing(I)Z"
  5. In this function, look for:
  6. Underneath that, you'll see the following:
            0x18 -> :sswitch_0
            0x19 -> :sswitch_0
  7. Remove the 0x18 and 0x19 lines, save and use apktool to rebuild the android.policy.jar file. Place it back onto your device and restart.
Last edited by qwerty12; 6th February 2012 at 05:57 PM.
The Following 2 Users Say Thank You to qwerty12 For This Useful Post: [ View ] Gift qwerty12 Ad-Free