[MOD] Android Stock Lockscreen for JM8,JPH,JPK,JM9,JPM,JPA,JP6

Search This thread

squashfanatic

Senior Member
Nov 5, 2010
63
2
Just lock screen and extended power menu would be perfect if you have a chance. Thanks very much.

Sent from my GT-I9000 using XDA App
 

boosth1

Member
Nov 30, 2011
10
0
Yp-970 - 2.3.5

This device is the i9000 without the phone part. I have it running gingerbread 2.3.5 which it turns out has a slightly different setup. It still runs the lockscreen through system_server but the smali is different. I suspect that they will do the same for other devices too. Any ideas for how to get around this?

Here's the relevant section from the LockPatternKeyguardView.smali :

Code:
.method private getLockScreenMode()Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;
    .registers 2

    .prologue
    .line 1338
    invoke-direct {p0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->isMissedEventsArrived()Z

    move-result v0

    if-eqz v0, :cond_9

    .line 1339
    sget-object v0, Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;->PuzzleLock:Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;

    .line 1342
    :goto_8
    return-object v0

    :cond_9
    sget-object v0, Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;->GlassLock:Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;

    goto :goto_8
.end method
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    XXJPY AOSP Lockscreen

    here is AOSP lockscreen for XXJPY
    for DEODEX and ODEX, flash it using CWM
    8
    For official I9000XWJS5 firmware (not deodexed) :
    XWJS5 : Android AOSP lockscreen
    XWJS5 : Samsung glass lockscreen


    Instructions:
    - rename to update.zip and flash through recovery mode.
    ________________________________________________


    Deodexed Version :
    DEODEXED XWJS5 : Android AOSP lockscreen
    DEODEXED XWJS5 : Samsung glass lockscreen
    4
    Credits to Ateisti for this http://xdaforums.com/showthread.php?t=779803

    Notes:
    • I'm posting this for those who are in JM8 and want a vanilla lockscreen but are stuck
      UPDATE: and JPH (froyo)
      UPDATE: then JPK (froyo)
      UPDATE: then JM9 (eclair)
      UPDATE: then JPM (froyo)
    • Current setup when I made this
    • Always good idea to backup the file first before doing this
    • Highly recommend enable USB Debugging just so when something goes wrong you can restore from backup using ddms
    • Disclaimer: DO IT AT YOUR OWN RISK :) (haven't tried it on other 2.1 roms that's why I specified JM8 on the title. You might want to test it on other 2.1 rom tho if you know what you're doing, just DIAYR)
    • To install:
      • Need Root
      • Need Root Explorer (or similar caliber)
      • Navigate to /system/framework
      • Backup existing android.policy.odex (.jar for those using deodexed mods) to PC (either bluetooth, or SD then PC)
      • Before proceeding...
        • If you're using a deodexed firmware (applied DocRambone's or Tayutama's or other deodex mod), or you can't find the android.policy.odex file in your framework folder, use the .jar rar
        • If you're using an untouched firmware (you can see the android.policy.odex file) in the framework folder, use the .odex rar
      • Extract the rar, put to sd, copy or overwrite inside /system/framework
      • Reboot :)

    Update 2: Added for JPH
    Update 3: Added for De-odexed jar versions
    Update 4: Added "menu button" fix for all attachments except android.policy.odex.jm8.rar (sorry guys, you understand how tedious it is to flash back to jm8 just to do this don't you?). You could perhaps do this step yourself to re-odex them yourself and patch the signature. dexopt-wrapper and busybox (from market, or built-in from latest BackfireNL root) needed.
    • rename your original odex file you backed up to "android.policyo.odex" and copy that to /system/framework
    • rename your original .jar file you backed up to "android.policyo.jar" and copy to /system/framework
    • extract android.policy.jar from deodexed-jm8.android.policy.jar.rar and copy to /system/framework
    • extract and copy dexopt-wrapper to /system/framework
    • delete patched.odex and existing android.policy.odex if it exists in /system/framework
    • do this in ADB or terminal app

      $ su
      # cd /system/framework
      # ./dexopt-wrapper android.policy.jar patched.odex /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policyo.jar:/system/framework/services.jar
      # bb dd if=android.policyo.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc


    • rename patched.odex to "android.policy.odex"
    • delete existing android.policy.jar (this is deodexed, greather than 100k size)
    • rename android.policyo.jar to android.policy.jar
    • reboot
    • if it's working (it should), send it to this thread as attachment so i can add it to the first post with your name :p


    Update 5: JPK .odex for "untouched" versions, and .jar for deodexed rom mods
    Update 5.1: with the trouble of new JPK kernel "feature" that render current SGS rooting methods (as of this update, Sept. 24) to have read-only access to /system, please see these posts
    http://xdaforums.com/showpost.php?p=8305284&postcount=92
    http://xdaforums.com/showpost.php?p=8307050&postcount=101 <-- thanks jodue
    Update 5.2: Stock Lockscreen for untouched JPK with Recovery 2e as update.zip with Autobackup
    http://xdaforums.com/showpost.php?p=8308233&postcount=160 <-- thanks Aery
    Update 5.3: Aery--"And now? What will come next? Maybe: How can i go back to Samsung Lockscreen?"
    Stock Lockscreen Remover for untouched JPK
    Download: http://www.multiupload.com/0KP69HOTIK ;-)
    Update 6: JM9 versions added
    Update 7: JPM versions added
    Update 8: JPA versions added, JP6 odex only
    Update 9: added emphasis on JPA being not the official version.

    *shot from AdamDowning http://xdaforums.com/showpost.php?p=8204826&postcount=24*
    9jp4bm.png





    JPM Update
    android.policy.odex.jpm.rar
    deodexed-jpm-android.policy.jar.rar

    JPA Update by Mike.sw (warning: this is for the first leaked JPA version[the one that came around the same time with JP6], not the officially released November JPA version[the one that came around JPO] that everyone has gotten confused with, and please take time to read the whole post if you haven't read them yet [specially the very small disclaimer], thanks for understanding guys)
    http://xdaforums.com/showpost.php?p=8615457&postcount=179 <-- odex and deodexed

    JP6 Update
    http://xdaforums.com/showpost.php?p=8619042&postcount=183 <-- odex by Dirhael
    http://xdaforums.com/showpost.php?p=8624410&postcount=194 <-- deodexed by DocRambone
    4
    For official I9000XWJS3 firmware (not deodexed) :

    XWJS3 : Android AOSP lockscreen

    XWJS3 : Back to Samsung glass lockscreen

    Instructions:
    - rename to update.zip and flash through recovery mode.
    4
    For official I9000XXJPX firmware (not deodexed) :

    XXJPX : Android stock lockscreen

    XXJPX : Back to Samsung glass lockscreen

    Instructions:
    - rename to update.zip and flash through recovery mode.