[Mod][CM10] Xperia Z lockscreen for CM10

Search This thread

benclark101

Senior Member
Nov 7, 2010
61
117
Xperia Z Lockscreen for CM10

The Xperia Z lockscreen is now working on CM10 on the X10!

Tested and working well with CM10 v9.4 by scritch007

screen1.png
screen2.png

screen3.png
screen4.png



Downloads
For CM10 users:
Download for CM10
or
Download for CM10 with Settings
(Allows you to change the wallpaper from the settings menu)

For Slimbean Users:
Download for Slimbean
or
Download for Slimbean with Settings
(Allows you to change the wallpaper from the settings menu)

Installation
To install, make a backup then:
simply flash via CWM.

Bugs
Blurry "Swipe to unlock" text
Download This Fix (Thanks to Vasishta Reddy)

Cannot change wallpaper
You can only use Xperia wallpapers for now (unless you edit default_wallpaper.jpg in UxpNxtLockscreen.apk) - get it in This Post

Guide
If the above versions don't work for your phone/ROM, I've written a quick guide with all the tools you need to get this lockscreen working on your CM10 rom.
Just check my post Here

Credits
Major credit to emwno - they managed to integrate the lockscreen into CM10.
Please head over to the original thread and thank them!

Uninstall
To uninstall, just flash This in cwm (works for CM10 only)​
 

Attachments

  • Screenshot_2013-03-15-13-20-02.jpg
    Screenshot_2013-03-15-13-20-02.jpg
    34.5 KB · Views: 2,340
  • Screenshot_2013-03-15-13-20-19.jpg
    Screenshot_2013-03-15-13-20-19.jpg
    34.3 KB · Views: 2,057
Last edited:

Dr.Gonzo105

Senior Member
The Xperia Z lockscreen is now working on CM10 on the X10!

Tested and working well with CM10 v9.4 by scritch007 (see attached screenshots)


Download with the framework for the x10 from HERE

To install, simply flash via CWM.

Please note, full credit goes to emwno - they managed to integrate the lockscreen into CM10.

Please head over to the original thread and thank them!

Please make an uninstall zip as well

Sent from my Xperia x10i using xda premium
 

benclark101

Senior Member
Nov 7, 2010
61
117
Do not try it, or at're stuck like me.;)
Yes, unfortunately from the looks of it the framework for CM10 and 10.1 are quite different, so flashing the zip will not work. I'll look at it in more detail when I get around to testing CM10.1.

Too bad it doesn't work on slimbean:(

Sent from my es209ra using xda premium
What happens when you try to flash it?
I've created a version that should work with Slimbean v4 but haven't had the chance to test it.
You can get it Here .
Can you let me know if it works or not?
Cheers
 
Last edited:

armaan.ag

Senior Member
Jun 23, 2010
178
131
gurgaon
Yes, unfortunately from the looks of it the framework for CM10 and 10.1 are quite different, so flashing the zip will not work. I'll look at it in more detail when I get around to testing CM10.1.


What happens when you try to flash it?
I've created a version that should work with Slimbean v4 but haven't had the chance to test it.
You can get it Here .
Can you let me know if it works or not?
Cheers

Well when i flashed the cm10 version my phone was stuck on the bootanimation.
But, the slimbean version is working perfectly:):D
How can i change the lockscreen background??

Sent from my es209ra using xda premium
 
  • Like
Reactions: benclark101

benclark101

Senior Member
Nov 7, 2010
61
117
How can i change the lockscreen background??

The lockscreen is now integrated with settings for CM10 (see first post) that allows you to change the wallpaper from the settings menu
I'll implement it into Slimbean if I get time later. But in the mean time:

1. Download quickshortcutmaker from the play store.
2. Open it and search for Lockscreen
3. Select the file called com.sonyericsson.lockscreen.uxpnxt/com.sonyericsson.settings.setup
4. Create a name for it and press OK
5. A shortcut should now be created on your desktop, pressing it should take you to the wallpaper settings menu for the lockscreen
- This allows you to change the wallpaper like you normally would

Thanks to Azz Reh for this method, you can find his Youtube video of how to do this Here (jump to 4:55)

And if you're looking for the default Xperia Z wallpapers, you can get them From this thread
 
Last edited:
  • Like
Reactions: armaan.ag

eddyklf

Senior Member
Jun 27, 2009
202
47
Installed on Scritch v9.4 rom.
Looks good but is a bit laggy and slow. When i try to start camera from lockscreen i have to slide it about 3 or 4 times and then the camera starts very laggy...
The unlock text is blurred and you cant read it....

So i think theire is more work needed....
I flashed back to stock unlockscreen
 

benclark101

Senior Member
Nov 7, 2010
61
117
Installed on Scritch v9.4 rom.
Looks good but is a bit laggy and slow. When i try to start camera from lockscreen i have to slide it about 3 or 4 times and then the camera starts very laggy...
The unlock text is blurred and you cant read it....

Hi, sorry to hear that... I'm on Scritch v9.4 and have experienced none of the issues you've listed.
Lockscreen is fast and smooth with me, unlock text is very clear and camera starts directly from lockscreen first time and is fully loaded in about 2-3 seconds.
Which kernel are you using and which version of the lockscreen did you download?

Is it laggy for anyone else?
 
Last edited:
  • Like
Reactions: themis123

armaan.ag

Senior Member
Jun 23, 2010
178
131
gurgaon
Well after the installation of the new zip there now exists an option to change wAllpaper, but choosing a wallpaper does not affect anything:(
P.s. im refering to the slimbean version

Sent from my es209ra using xda premium
 
  • Like
Reactions: benclark101

benclark101

Senior Member
Nov 7, 2010
61
117
Well after the installation of the new zip there now exists an option to change wAllpaper, but choosing a wallpaper does not affect anything:(
P.s. im refering to the slimbean version

Sent from my es209ra using xda premium

Ah.. I have a similar error, but I thought it was just my phone playing up.

Set the wallpaper for it once, then don't press anything. It should ask you to select it again, do so and it should go back to the settings screen.
For some reason you have to set it twice in a row.

I'll have a look at the files now, but hopefully the above will work!
 

Slow7u

Senior Member
Jan 20, 2011
65
22
Lock screen text is blurred for me as well but its doesn't matter anyway.

Sent from my Xperia X10 using XDA Premium HD app
 

eddyklf

Senior Member
Jun 27, 2009
202
47
@benclark101
I use the last scritch007 rom(9.4?) with his last Kernel(v21). After some uses the lockscreen works better and is smooth and the camera starts with first try. So now without problems and not bad.
But at morning when the alarm starts first i could disable it but when the second alarm starts 10 minutes later i couldnt disable it because i saw the lockscreen and not the settings from the buzzer...
So i had to unlock the screen and diable it manually in the settings...

Maybe it was only bad luck...
I will report when i will have it again.
 
  • Like
Reactions: benclark101

Superman

Senior Member
May 5, 2012
583
181
I cannot change wallpaper in the lockscreen on my own album. On slimbean.

Superman™
 

Attachments

  • uploadfromtaptalk1363686000304.jpg
    uploadfromtaptalk1363686000304.jpg
    26.5 KB · Views: 147
  • Like
Reactions: benclark101

armaan.ag

Senior Member
Jun 23, 2010
178
131
gurgaon
I cannot change wallpaper in the lockscreen on my own album. On slimbean.

Superman™

even i encounter the same problem, but its not so much of a deal breaker ;)





Ah.. I have a similar error, but I thought it was just my phone playing up.

Set the wallpaper for it once, then don't press anything. It should ask you to select it again, do so and it should go back to the settings screen.
For some reason you have to set it twice in a row.

I'll have a look at the files now, but hopefully the above will work!

Its still not working dude :eek:
But awsome work on porting the lockscreen, much appreciated :p hope you get the wallpaper problem solved..
Sent from my es209ra using xda premium
 

Superman

Senior Member
May 5, 2012
583
181
If can please port it into the lock screen option? Thanks and just if can port into.

Superman™
 

benclark101

Senior Member
Nov 7, 2010
61
117
I cannot change wallpaper in the lockscreen on my own album. On slimbean.
Its still not working dude :eek:
But awsome work on porting the lockscreen, much appreciated :p hope you get the wallpaper problem solved..
Sent from my es209ra using xda premium

OK.. seems you have to have Sony's 'Album' app installed in order to be able to change the wallpaper. I'll see if I can change that this afternoon

If can please port it into the lock screen option? Thanks and just if can port into.
Superman™

No problem.. that makes more sense. I'll update later.
 
  • Like
Reactions: Superman

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    Xperia Z Lockscreen for CM10

    The Xperia Z lockscreen is now working on CM10 on the X10!

    Tested and working well with CM10 v9.4 by scritch007

    screen1.png
    screen2.png

    screen3.png
    screen4.png



    Downloads
    For CM10 users:
    Download for CM10
    or
    Download for CM10 with Settings
    (Allows you to change the wallpaper from the settings menu)

    For Slimbean Users:
    Download for Slimbean
    or
    Download for Slimbean with Settings
    (Allows you to change the wallpaper from the settings menu)

    Installation
    To install, make a backup then:
    simply flash via CWM.

    Bugs
    Blurry "Swipe to unlock" text
    Download This Fix (Thanks to Vasishta Reddy)

    Cannot change wallpaper
    You can only use Xperia wallpapers for now (unless you edit default_wallpaper.jpg in UxpNxtLockscreen.apk) - get it in This Post

    Guide
    If the above versions don't work for your phone/ROM, I've written a quick guide with all the tools you need to get this lockscreen working on your CM10 rom.
    Just check my post Here

    Credits
    Major credit to emwno - they managed to integrate the lockscreen into CM10.
    Please head over to the original thread and thank them!

    Uninstall
    To uninstall, just flash This in cwm (works for CM10 only)​
    6
    If u could tell (show) me what i should edit i wiil be thankful as i like xperia z lockscreen style
    Sure, I'll try to make this as simple as possible!

    Guide
    1. Firstly, download and extract the attached file to a new folder.
    (Inside the folder you should have 6 files)

    2. Now copy your android.policy.jar from /system/framework on your phone into the same folder

    3. Use 7zip or similar to extract classes.dex from that file into the folder

    4. Open command prompt (Windows key + "r", type cmd and press enter)

    3. Now browse to the folder where you just extracted the files - for instance, if i made a folder called "Lockscreen" on my desktop I'd type:
    cd C:\users\ben\desktop\lockscreen\

    4. Now type java -jar baksmali-1.3.3.jar -o classout/ classes.dex and press enter
    This should extract the odex file to a folder called "classout" within the folder you created

    5. Open the classout folder and browse to com/android/internal/policy/impl

    6. Copy both "ExtendedKeyguardScreen.smali" and "ExternalLockScreen.smali" from the attached archive to this location

    7. Now open the file called LockPatternKeyguardView.smali
    There are a few changes that need to be made to this file:
    7.1 Firstly find the lines
    Code:
    .field mInfoCallback:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$InfoCallbackImpl;
    
    .field private mIsVerifyUnlockOnly:Z

    and add the highlighted line between them
    Code:
    .field mInfoCallback:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$InfoCallbackImpl;
    
    [COLOR="Red"].field private mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]
    
    .field private mIsVerifyUnlockOnly:Z

    7.2 Now scroll down and find the method that starts with
    Code:
    # virtual methods
    .method public cleanUp()V
        .registers 3
    
        .prologue
        const/4 v1, 0x0

    select from the # all the way to after the second time you see the line .end method
    (we want to replace the public_cleanUp() and createLockScreen() functions - it should be around 140 lines of code!)

    7.3 Delete the selected lines and replace with the following
    Code:
    # virtual methods
    .method public cleanUp()V
        .registers 3
    
        .prologue
        const/4 v1, 0x0
    
        const/4 v0, 0x0
    
        iput-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
    
        .line 812
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
    
        if-eqz v0, :cond_1d
    
        .line 813
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
    
        check-cast v0, Lcom/android/internal/policy/impl/KeyguardScreen;
    
        invoke-interface {v0}, Lcom/android/internal/policy/impl/KeyguardScreen;->onPause()V
    
        .line 814
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
    
        check-cast v0, Lcom/android/internal/policy/impl/KeyguardScreen;
    
        invoke-interface {v0}, Lcom/android/internal/policy/impl/KeyguardScreen;->cleanUp()V
    
        .line 815
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
    
        invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->removeView(Landroid/view/View;)V
    
        .line 816
        iput-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
    
        .line 818
        :cond_1d
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUnlockScreen:Landroid/view/View;
    
        if-eqz v0, :cond_36
    
        .line 819
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUnlockScreen:Landroid/view/View;
    
        check-cast v0, Lcom/android/internal/policy/impl/KeyguardScreen;
    
        invoke-interface {v0}, Lcom/android/internal/policy/impl/KeyguardScreen;->onPause()V
    
        .line 820
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUnlockScreen:Landroid/view/View;
    
        check-cast v0, Lcom/android/internal/policy/impl/KeyguardScreen;
    
        invoke-interface {v0}, Lcom/android/internal/policy/impl/KeyguardScreen;->cleanUp()V
    
        .line 821
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUnlockScreen:Landroid/view/View;
    
        invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->removeView(Landroid/view/View;)V
    
        .line 822
        iput-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUnlockScreen:Landroid/view/View;
    
        .line 824
        :cond_36
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
    
        invoke-virtual {v0, p0}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->removeCallback(Ljava/lang/Object;)V
    
        .line 825
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mBiometricUnlock:Lcom/android/internal/policy/impl/BiometricSensorUnlock;
    
        if-eqz v0, :cond_44
    
        .line 826
        iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mBiometricUnlock:Lcom/android/internal/policy/impl/BiometricSensorUnlock;
    
        invoke-interface {v0}, Lcom/android/internal/policy/impl/BiometricSensorUnlock;->cleanUp()V
    
        .line 828
        :cond_44
        return-void
    .end method
    
    .method createLockScreen()Landroid/view/View;
        .registers 7
    
        .prologue
        iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
    
        iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
    
        invoke-static {v1, v2}, Lcom/android/internal/policy/impl/ExternalLockScreen;->getLockScreen(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)Landroid/view/View;
    
        move-result-object v0
    
        .local v0, lockView:Landroid/view/View;
        if-eqz v0, :cond_24
    
        const/4 v1, 0x1
    
        :goto_b
        iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
    
        .line 1038
        iget-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
    
        if-nez v1, :cond_20
    
        .line 917
        new-instance v0, Lcom/android/internal/policy/impl/LockScreen;
    
        .end local v0           #lockView:Landroid/view/View;
        iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
    
        iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;
    
        iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;
    
        iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
    
        iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
    
        invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/LockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V
    
        .line 923
        .restart local v0       #lockView:Landroid/view/View;
        :cond_20
        invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View;)V
    
        .line 924
        return-object v0
    
        :cond_24
        const/4 v1, 0x0
    
        goto :goto_b
    .end method

    8. Now delete your original classes.dex file

    9. Go back to command prompt and type java -jar smali-1.3.3.jar classout -o classes.dex - this should create a new classes.dex file

    10. Now use 7zip again but the time take the newly created classes.dex file and copy (and replace) it back into your original android.policy.jar

    11. Finally download my original lockscreen zip Here and replace the android.policy.jar in /system/framework with your new version

    12. Flash the zip and reboot your phone! You should now have the Xperia Z Lockscreen!


    Hope that helps - let me know if you have problems, I can try and upload screenshots if you're really stuck!
    3
    when I select the option to change wallpaper from the new settings option you had added, I select the album app.
    After this i select my preferred wallpaper and crop it.
    Since i get promted again i select the same wallpaper and crop it to the same size.
    But, If i follow the above wallpaper nothing happens and the lockscreen wallpaper does not change.
    If someone manages to change the wallpaper please report it.

    P.S. this is the same thing i did in the slimbean rom and i got the same result.

    Thanks, I've uploaded a new version. Download it from here (for CM10 only) - (If this gives an error, see post below)

    The main lockscreen apk has been replaced with a direct port from the Xperia Z. The "Xperia Wallpapers" app is now working, so you should be able to set the lockscreen background using it.
    I've tested it with CM10 v9.4 and it works everytime. You can See it working here (sorry for laggy recording)

    Please note - I've also moved the "Xperia Z Lockscreen" settings into the "Lockscreen" option.

    Can you let me know whether changing the lockscreen wallpaper works using the "Xperia Wallpapers" app?
    2
    Lockscreen words(swipe up or down to unlock) blur layout fixed . :)