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

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
haha, I made this same mod for sonydroid rom 3 days ago :D

:good: :D

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


My Own private Mod Change Font-Add Owner Text :p
Nice mods dude :good:

Codes in the OP do work.. From the log that you've posted, I notice that you haven't changed the hex codes according to your public.xml. It should be a continuation of the hex codes in <strings> names of your public.xml (should be the next hex code of the largest hex code used in <strings> names of your public.xml):)

For example the previous largest hex code used in <strings> names in public.xml is 0x0104051a, thats why 0x0104051b and 0x0104051c are used in the case of the tutorial.:D

Thats what I meant by

0x0104051b,0x0104051c <<<< hex codes should be written in a way as a continuation of the codes that was above
:cool:
 
  • Like
Reactions: senkrabl

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
I made this same mod for X-Walkman Ultimate rom 11 days ago
Thats great dude:D you guys should have posted it. I would've used it instead of modding myself :)

But still.. Even with your code, It is necessary to change the hex code for anyone who uses it (until and unless they have the same largest hex code as you have) :)

Anyways, I'm going to add the links that you posted of your mods in OP :)
 
Last edited:

hash87

Senior Member
Jul 25, 2008
122
43
0
I've modded all files using your tutorial and everything works great. Except one thing - there seems to be some kind of delay before the screen turns on. It takes about 3-5 seconds before screen turns on with this lockscreen and with stock lockscreen its almost instant. Anyone else noticed it?
 

ManthanRB

Senior Member
Mar 23, 2012
912
101
0
London
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.



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
This mod with Stock battery ICON please:fingers-crossed:
 

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
I've modded all files using your tutorial and everything works great. Except one thing - there seems to be some kind of delay before the screen turns on. It takes about 3-5 seconds before screen turns on with this lockscreen and with stock lockscreen its almost instant. Anyone else noticed it?
It does happen sometimes. For me very rarely. Try changing the wallpaper:)

Sent from my SK17i using xda premium
 
Last edited:

Fußbodenheizung

Senior Member
Nov 15, 2011
69
11
0
I'm trying to modify the framework-res-apk file accordingly, but how do you do the AndroidManifest.xml change? Once framework-res-apk is compiled you need to copy AndroidManifest.xml from the original framework-res-apk into your new one, otherwise it boot-loops. How can I avoid boot-loop without carrying the original AndroidManifest.xml over to the new framework-res-apk?
 

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
I'm trying to modify the framework-res-apk file accordingly, but how do you do the AndroidManifest.xml change? Once framework-res-apk is compiled you need to copy AndroidManifest.xml from the original framework-res-apk into your new one, otherwise it boot-loops. How can I avoid boot-loop without carrying the original AndroidManifest.xml over to the new framework-res-apk?
Which tool do you use to compile and decompile apks? I recommend you to use APKMANAGER.

In this tool, while recompiling, it asks if it is a system apk, say 'y', then agin it asks 'Do you want to copy the files from original apk to prevent errors' or something like that, say 'y'.

After that a folder called keep is created in the root directory of ApkManager folder, open this folder and delete the files you modified (AndroidManifest.xml in this case) & resources.arsc.

Now come back to the tool and press any key to continue. Thats it, a new file called unsignedframework-res.apk will be created in place apk here for modding folder, rename it to framework-res.apk and use it. No need to replace modded files in original file:D
 

Fußbodenheizung

Senior Member
Nov 15, 2011
69
11
0
Which tool do you use to compile and decompile apks? I recommend you to use APKMANAGER.

In this tool, while recompiling, it asks if it is a system apk, say 'y', then agin it asks 'Do you want to copy the files from original apk to prevent errors' or something like that, say 'y'.

After that a folder called keep is created in the root directory of ApkManager folder, open this folder and delete the files you modified (AndroidManifest.xml in this case) & resources.arsc.

Now come back to the tool and press any key to continue. Thats it, a new file called unsignedframework-res.apk will be created in place apk here for modding folder, rename it to framework-res.apk and use it. No need to replace modded files in original file:D
Nope. Still boot-loops. You HAVE TO keep the original AndroidManifest.xml, even with APK Manager.

I have tried decompiling and recompiling framework-res.apk without changing anything and comparing the AndroidManifest.xml of both. The latter is different.
Then I tried adding the permissions line that this mod requires and then comparing both the recompiled AndroidManifest.xml, the altered and the unaltered. And they're identical!
 
Last edited:

attack11

Recognized Developer
Nov 28, 2011
1,245
2,929
153
Buenos Aires
hi! Thanks for your mod! Its perfect,but somethimes when i install it i get bootloop and sometimes it doesnt, there is any special way to install it? Im using the last stock GB i tried modifing my own framework-res but doesnt change any thing

Sent from my WT19a
 

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
Nope. Still boot-loops. You HAVE TO keep the original AndroidManifest.xml, even with APK Manager.

I have tried decompiling and recompiling framework-res.apk without changing anything and comparing the AndroidManifest.xml of both. The latter has a lot of stuff missing.
Then I tried adding the permissions line that this mod requires and then comparing both the recompiled AndroidManifest.xml, the altered and the unaltered. And they're identical!
Well I never replace original androidmanifest. I follow the method I have described above.. And everything works fine.:confused:. Not only with this mod or file, but with every apk that I mod:)

And if you always have to put back the original androidmanifest how could you modify it?

hi! Thanks for your mod! Its perfect,but somethimes when i install it i get bootloop and sometimes it doesnt, there is any special way to install it? Im using the last stock GB i tried modifing my own framework-res but doesnt change any thing

Sent from my WT19a
No. There is no particular special method to install the mod. U just have to flash the file:) I don't think there's any problem with the flashable zip, cause many have got it working.

Try following the tutorial again without missing anything:)

Sent from my SK17i using xda premium
 
Last edited:

Fußbodenheizung

Senior Member
Nov 15, 2011
69
11
0
Well I never replace original androidmanifest. I follow the method I have described above.. And everything works fine.:confused:. Not only with this mod or file, but with every apk that I mod:)
Are you sure you've tried modifying framework-res.apk? Because everywhere that I've looked where it was explained how to modify framework-res.apk, it was said that you need to keep the original AndroidManifest.xml and META-INF. But obviously, you can't do that with this mod.

I didn't think it would be any different (APK Manager and apktool (what I normally use) both use aapt to compile), but I tried your method as you described it, nonetheless, and the same thing happened.

And if you always have to put back the original androidmanifest how could you modify it?
That's exactly why I'm posting these questions here. I've always modified framework-res.apk this way, but now that I need to modify AndroidManifest.xml, I'm stuck.

Thanks for trying to help, though. :)

EDIT: I just noticed that the AndroidManifest.xml of the framework-res.apk supplied with this mod is identical to mine + the permissions line, so I can just use this one. :D

EDIT2: I can't even do that. It still boot-loops. I can only use the original AndroidManifest.xml. :(
Perhaps it's not framework-res.apk that causes trouble. Perhaps it's the new lockscreen.
 
Last edited:
  • Like
Reactions: Sudanminipro

Sudanminipro

Senior Member
Dec 15, 2011
288
135
63
Bangalore
Are you sure you've tried modifying framework-res.apk?

Thanks for trying to help, though. :)

EDIT2: I can't even do that. It still boot-loops. I can only use the original AndroidManifest.xml. :(
Perhaps it's not framework-res.apk that causes trouble. Perhaps it's the new lockscreen.
I'm very sure that I've modified framework-res.apk with the method described above manier times, and I still continue to do it:D

You might be right. May be the new lockscreen is causing the bootloop in your device:confused: don't ask me why, cause I don't know:eek:

May be some developer could help?? Pm someone:)

Sent from my SK17i using xda premium