Or Continue to Thread: Volume rocker awake 2.3.5
Find Your Device:
4th February 2012, 11:45 AM   |  #2  
qwerty12's Avatar
Senior Member
Flag (*England).London
Thanks Meter: 278
 
416 posts
Join Date:Joined: Jan 2005
More
EDIT: It seems that yannn007 has an easier way: http://forum.xda-developers.com/show...0&postcount=95 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

Prerequisites:
  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:
    Code:
        :sswitch_data_0
        .sparse-switch
  6. Underneath that, you'll see the following:
    Code:
            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 ]