Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Arrow [GUIDE][GB] How to use UxpNxtLockscreen.apk on GB ? - with lockscreen music control

OP Erhany

15th August 2012, 10:09 PM   |  #1  
Erhany's Avatar
OP Senior Member
Flag com/erhany
Thanks Meter: 986
443 posts
Join Date:Joined: Feb 2012
Donate to Me
Hey guys, finally I started successfully using Xperia Sola apks on my Xperia arc stock 42 rooted phone..

Tested on Xperia arc(Sola apks), LWW(Sola,Go apks both) and must work on other devices too.


Note: When u did all steps if you still dont have a working lockscreen just try going for Xperia Go apks and android.policy.jar of Xperia Go!
I dont share a flashable zip file because I use Xperia arc, you use Neo, LWW etc.. This is a guide for you to make yourselves.

- First download the FILES.rar which includes all necessarily files,on the link.


- On the phone, go to system/framework and copy android.policy.jar to your desktop.

In pack, I added baksmali-smali folder/files for you to edit your classes.dex file of android.policy.jar

1- Open your android.policy.jar file with 7zip (right click-7zip-open archive) and then drag&drop classes.dex file to BAKSMALI-SMALI folder.

2- Run CMD in that folder and write this code and enter >> java -jar baksmali-1.3.3.jar -o classout/ classes.dex
Classout folder must be generated. Go to BAKSMALI-SMALI\classout\com\android\internal\policy\impl

3- Copy ExternalLockScreen.smali and LockPatternKeyguardView.smali files which are in MY FILES.RAR pack , inside ../impl folder. (LockPatternKeyguardView will overwrite)

4- Delete classes.dex file in BAKSMALI-SMALI folder and run CMD again and write this code and enter again>> java -jar smali-1.3.3.jar classout -o classes.dex

5- Now your new classes.dex file is ready. just open archive your android.policy.jar file with 7zip again and drag&drop new classes.dex in it..

-Second you will find Xperia_Sola_app_files folder in FILES.RAR pack. It includes Xperia Sola Settngs.apk and UxpNxtLockScreen.apk files.
Normally just copy these files to system if you use root explorer, set permissions & move system/app folder and android.policy.jar to framework folder. reboot and All done! Alternative way is Android Commander PC programme.

>> But I dont suggest you to use Settings.apk of Xperia Sola. It has bug on brightness. best way is decompiling your own Settings.apk with apk manager/tool (best working Wanam's apk manager ICS on GB) and adding lines from Xperia Sola Settings.apk display settings to your own apk. Sorry I don't have much time to explain editing XML on apk manager /compiling/ decompiling it..

If all is ok here is the picture ;

If it doesn't work; u must edit your framework-res.apk (/system/framework/framework-res.apk)

These are quoted from Sudanminipro's topic which is here >> http://forum.xda-developers.com/show....php?t=1837501


a)DECOMPILE your framework-res.apk

b)Add this line to the AndroidManifest.xml >> <permission android:label="@string/permlab_external_lockscreen" android:name="com.sonyericsson.permission.EXTERNAL _LOCKSCREEN" androidrotectionLevel="signatureOrSystem" android:description="@string/permdesc_external_lockscreen" />

c)Add these lines to the end of the strings.xml (/res/values/strings.xml) >>
<string name="permlab_external_lockscreen">You May Write Anything Here</string>
<string name="permdesc_external_lockscreen"> You May Write Anything Here </string>

d)Add these to the end of string names in public.xml (/res/values/public.xml) >> <public type="string" name="permlab_external_lockscreen" id="0xXXXXXXXX" />
<public type="string" name="permdesc_external_lockscreen" id="0xXXXXXXXX" />

the important thing is XXXXXXXX hex codes should be written in a way as a continuation of the codes that was above..

0x0104051b,0x0104051c for example..

e)RECOMPILE. Thats it.

- Settings.apk Lockscreen menu allows you to change your lockscreen wallpaper but it has low quality.
Bugfix: go into Settings.apk display settings and Lockscreen control, select a new wallpaper, then on computer find a wallpaper which u want to use and set pixels and save it as named wallpaper.PNG . On the phone go into data/data/com/sonyericsson.uxplockscreen folder and copy wallpaper.png inside it.. finally just try a few time screenoff&on.. Must be ok.

- Facebook notifications don't work!
- Don't work on landscape mode!
- You tell me more..

I'm not a developer, just modding my Xperia arc.. If any developers can help for these bugs, that will be great..

Cheers! If this is helpful for you please use thanks button.
Special thanx to Orochixxx for .smali file names and Sola system folder..

then all must be ok. Thanks & Regards AeonWorld for his tutorial and Sudanminipro for their work..
Last edited by Erhany; 20th August 2012 at 11:09 PM.
The Following 16 Users Say Thank You to Erhany For This Useful Post: [ View ]
15th August 2012, 10:55 PM   |  #2  
Orochixxx's Avatar
Senior Member
Thanks Meter: 879
566 posts
Join Date:Joined: Jul 2011
Donate to Me
Thumbs up
Good job
The Following User Says Thank You to Orochixxx For This Useful Post: [ View ]
16th August 2012, 04:58 PM   |  #3  
Senior Member
Thanks Meter: 24
185 posts
Join Date:Joined: Feb 2012
one question , will it work on cm9 ??

Sent from my Arc S using Tapatalk 2
16th August 2012, 05:46 PM   |  #4  
Pandemic's Avatar
Senior Member
Flag MePpEl
Thanks Meter: 11,979
15,892 posts
Join Date:Joined: Aug 2010
Donate to Me
Originally Posted by XnightX

one question , will it work on cm9 ??

Sent from my Arc S using Tapatalk 2

No mate, is CM9 a GB rom??

Sent from my Xperia Neo V with Supercharged ICS 4.0.4
16th August 2012, 08:03 PM   |  #5  
FlorinXstyle's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 65
154 posts
Join Date:Joined: Feb 2011
Thumbs up
can you make please a flashable zip arhive ?
17th August 2012, 07:02 AM   |  #6  
soumya_digi's Avatar
Recognized Themer
Flag Kolkata
Thanks Meter: 1,508
1,031 posts
Join Date:Joined: May 2011
Did all the steps, but Lockscreen didn't change! It's same as before. Using Zohaib's Xperia S GB ROM.
17th August 2012, 08:46 AM   |  #7  
Senior Member
Flag Kraków
Thanks Meter: 766
200 posts
Join Date:Joined: May 2011
Originally Posted by soumya_digi

Did all the steps, but Lockscreen didn't change! It's same as before. Using Zohaib's Xperia S GB ROM.

Same here Using stock .62 fw.
18th August 2012, 03:46 PM   |  #8  
Thanks Meter: 10
67 posts
Join Date:Joined: Nov 2011
Originally Posted by soumya_digi

Did all the steps, but Lockscreen didn't change! It's same as before. Using Zohaib's Xperia S GB ROM.

Same here. Using stock .42, Xperia Play.
18th August 2012, 05:00 PM   |  #9  
RivaultUser's Avatar
Senior Member
Thanks Meter: 18
300 posts
Join Date:Joined: Jun 2012
i confuse on your steps , like " copy classes.dex file to folder, run CMD and enter code: java -jar baksmali-1.3.3.jar -o classout/ classes.dex

"To where I must copy classes.dex file ( what folder ) ?, And I cannot run java -jar baksmali-1.3.3.jar -o classout/ classes.dex ( it said unable to..............)
20th August 2012, 11:56 AM   |  #10  
n3n00's Avatar
Senior Member
Flag Split
Thanks Meter: 250
1,529 posts
Join Date:Joined: Dec 2010
I will try this today, thought I never decompiled anything...we need a developer to make flashable .zip for this :/ ... at least I'll learn something new xD.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes