[MOD][TUTORIAL][GB]Xperia Go Lockscreen for Xperia MDPI(UPD: Mod your settings.apk)

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
This is the Lockscreen ported from Xperia Go. Tested and works very well with my XMP on HaSa ROM based on GB 2.3.7:D

Reported to be working with GB 2.3.4 too.:D

Download links updated with android.policy.jar modded to include skip track on long press volume button. down-previous track, up-next track.

WARNING:

I'm Not Responsible if you brick your phone or your phone gets stuck in a bootloop


FEATURES:

Very similar to the lockscreen ported from Xperia S to MDPI devices on ICS
1. Message and missed call notifications
2. Ability to change wallpaper of the lockscreen
3. Lockscreen music controls (without album art)
4. Lockscreen doesn't distort when in landscape mode

BUGS:

1. Gmail notifications aren't shown on the lockscreen:(
2. Lockscreen wallpaper isn't shown in landscape mode, no music controls in landscape. All in all nothing works in Lanscape as of now, I'l see if I can do something about it. But the good news is lockscreen doesn't get distorted. So you can still unlock the screen:)

SCREENSHOTS

screenshot_2012-08-16_0545.png screenshot_2012-08-17_0619.png
screenshot_2012-08-15_2251.png screenshot_2012-08-15_2251_1.png

Orochixxx's mods

screenshot201208160930.jpg

INSTALLATION:

Download and flash the zip file.

DOWNLOAD:

Mod with STOCK battery icons

Mod with NUMBERS battery icons

Orochixxx's mods ( Don't forget to thank him:) )
1.link No Shade Effect Lock Screen Wall
http://www.mediafire.com/?5drr4r6gxvsbpbk

2.link Shade effect lock Screen Wall
http://www.mediafire.com/?52sip88f58qp72s

Please press the THANKS button if you like my work.. Better than posting 'Thank you':)

CREDITS:

Gustavo RD78 for Xperia Go system folder dump

AeonWorld for his tutorial


TUTORIAL- MOD your own framework-res and android-policy.jar to get Xperia Go lockscreen:D

NOTE: Only for people familiar with decoding and other modding stuff. I recommend others to use the file provided above:D

1)ANDROID.POLICY.JAR (/system/framework/android.policy.jar)

a)Download This http://dl.dropbox.com/u/59977570/XperiaGo-Androidpolicy.rar
b)DECOMPILE your android.policy.jar
c)Copy the files from the downloaded RAR (above) to the decompiled folder /policy and RECOMPILE. Thats it.

2)FRAMEWORK-RES.APK (/system/framework/framework-res.apk)

a)DECOMPILE your framework-res.apk
b)Add this line to the AndroidManifest
Code:
<permission android:label="@string/permlab_external_lockscreen" android:name="com.sonyericsson.permission.EXTERNAL_LOCKSCREEN" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_external_lockscreen" />
c)Add these lines to the end of the strings.xml (/res/values/strings.xml)
Code:
<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)
Code:
<public type="string" name="permlab_external_lockscreen" id="0x0104051b" />
<public type="string" name="permdesc_external_lockscreen" id="0x0104051c" />
0x0104051b,0x0104051c<<<< hex codes should be written in a way as a continuation of the codes that was above

More detailed explanation on hex code modifications
http://forum.xda-developers.com/showpost.php?p=31012681&postcount=114

Tutorial to edit Settings.apk to add lockscreen settings
http://forum.xda-developers.com/showpost.php?p=30756142&postcount=83
 
Last edited:

Pixelado

Senior Member
Jan 18, 2012
380
71
58
Landscape bugs were not much of a surprise considering no 2012 Xperia has a keyboard.

Thanks dude, looking forward for an ICS version.
 

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
Very nice.
Please make ICS version.
ICS version can be made only when Xperia Go gets an ICS update :) . Until then you can use AeonWorld's port of Xperia S lockscreen.

Landscape bugs were not much of a surprise considering no 2012 Xperia has a keyboard.

Thanks dude, looking forward for an ICS version.
Yup. But atleast lockscreen doesn't get distorted. So we can still unlock :D
 
  • Like
Reactions: sandy7

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
AeonWorld's mod does not work SK17i.
I tried many times but always bootloop.
If your ROM is odex, you can do the following:
Flash mod 1 from here http://forum.xda-developers.com/showthread.php?p=27256913. It will deodex your system files.

Then flash deodex version of AeonWorld's lockscreen.

Works on sk17 2.3.4 but what happend with the battery icon its possible to restore it?
Personally I like these 'numbers' battery icons. You can always change battery icons using 'tickle my android' tool or even UOT Kitchen.. If I get more requests, I might make one mod with stock battery icons:D.

Sent from my SK17i using xda premium
 
Last edited:
  • Like
Reactions: R10MaRiOo

hash87

Senior Member
Jul 25, 2008
122
43
0
@Sudanminipro,

Awesome work! However I have a big request :) Could you tell or give a small tutorial what you've modified in framework-res.apk and android.policy.jar? My files are already a little bit modified and i don't want to lose any of my modifications.
 

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
@Sudanminipro,

Awesome work! However I have a big request :) Could you tell or give a small tutorial what you've modified in framework-res.apk and android.policy.jar? My files are already a little bit modified and i don't want to lose any of my modifications.
Tutorial added:D

Thank you for your advice.
Now it's working. Thank you.

After flash the Home mod or Lock screen mod.
Many application stop to work.
How can I stop to this happen?
If my post helped in any way please press THANKS button instead of typing 'Thank you':silly:

Some apps like Titanium Backup do FC when framework-res gets changed. Just re-install the apps:) If you still have problems with some specific mods please post in their respective threads:good:
 
Last edited:

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
hey, i was thinking about porting the whole GB Rom of Go for our devices...
Possible.. Most of the apps work as it is with our devices.. Some do need porting.. Radio, gallery, settings... Etc.. Takes some work.. I have absolutely no idea on how to port incompatible system apps between devices:(.

Sent from my SK17i using xda premium
 

Orochixxx

Senior Member
Jul 25, 2011
600
1,249
0
38
KAHRAMANMARAŞ (46)
First Message String Codes Not Work LWW framework :)
ım try my Old Framework

error
Code:
C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\place-apk-here-for-modding\.
./place-apk-here-for-modding/signedframework-res.apk Bulunamadı
C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\place-apk-here-for-modding\.
./place-apk-here-for-modding/unsignedframework-res.apk Bulunamadı
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\other\..\projects\framework-
res.apk\res\values\public.xml:2734: error: Public entry identifier 0x104051c ent
ry index is larger than available symbols (index 1308, total symbols 1012).
C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\other\..\projects\framework-
res.apk\res\values\public.xml:2734: error: Public symbol string/permdesc_externa
l_lockscreen declared here is not defined.
C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\other\..\projects\framework-
res.apk\res\values\public.xml:2733: error: Public entry identifier 0x104051b ent
ry index is larger than available symbols (index 1307, total symbols 1012).
C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\other\..\projects\framework-
res.apk\res\values\public.xml:2733: error: Public symbol string/permlab_external
_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\OROCHI~1\AppData\Local\Tem
p\APKTOOL3863448579740139576.tmp, -x, -S, C:\Users\OROCHI-TR\Desktop\Apk edit\Ap
k_Manager_ICS\other\..\projects\framework-res.apk\res, -M, C:\Users\OROCHI-TR\De
sktop\Apk edit\Apk_Manager_ICS\other\..\projects\framework-res.apk\AndroidManife
st.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\OROCHI~1\AppData\Local\Temp\APKTOOL3863448579740139576.tmp, -x, -S, C:\User
s\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\other\..\projects\framework-res.apk
\res, -M, C:\Users\OROCHI-TR\Desktop\Apk edit\Apk_Manager_ICS\other\..\projects\
framework-res.apk\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more

My Lock Screen and Worked LWW Code add first message



1.link No Shade Effect Lock Screen Wall
http://www.mediafire.com/?5drr4r6gxvsbpbk

2.link Shade effect lock Screen Wall
http://www.mediafire.com/?52sip88f58qp72s




android manifest.xml
Code:
<permission android:label="@string/permlab_external_lockscreen" android:name="com.sonyericsson.permission.EXTERNAL_LOCKSCREEN" android:protectionLevel="signatureOrSystem" android:description="@string/permdesc_external_lockscreen" />
string.xml
Code:
<string name="permlab_external_lockscreen">You May Write Anything Here</string>
<string name="permdesc_external_lockscreen"> You May Write Anything Here </string>

public.xml
Code:
<public type="string" name="permlab_external_lockscreen" id="0x010403f1" />
<public type="string" name="permdesc_external_lockscreen" id="0x010403f2" />

My Own private Mod Change Font-Add Owner Text :p
 
Last edited:
  • Like
Reactions: Sudanminipro