Problems with compiled framework-res(unmodified). - Sony Xperia P, U, Sola, Go

This what I have done,
Decompiled the framework-res.apk without any errors.Didn't change anything.
Compiled the framework-res.apk without any errors.
Copied resources.arsc from unsignedframework-res.apk to original framework-res.apk.
Installed original framework-res.apk using flashable.zip with correct permissions.
framework-res.apk is from Xperia sola ICS.
It is causing bootloops.I want to know what is wrong with compiled framework-res.
I seriously need some solution.

i think you need to zipalign and signed it.

neectron said:
This what I have done,
Decompiled the framework-res.apk without any errors.Didn't change anything.
Compiled the framework-res.apk without any errors.
Copied resources.arsc from unsignedframework-res.apk to original framework-res.apk.
Installed original framework-res.apk using flashable.zip with correct permissions.
framework-res.apk is from Xperia sola ICS.
It is causing bootloops.I want to know what is wrong with compiled framework-res.
I seriously need some solution.
Click to expand...
Click to collapse
never change androidmanifest and meta-inf, there are keys from sony.
copy back and it'll work.

jader13254 said:
never change androidmanifest and meta-inf, there are keys from sony.
copy back and it'll work.
Click to expand...
Click to collapse
I never change them ..I always use orignal ones.

Related

[TUT] How to mod your own framework-res.apk to include the CRT screen off animation

First of all... Thanks go to sbong for bringing this to my attention and helping me through it.. including proving me with some of the files I needed to make this work..
Also thanks to the devs who created the util's needed to do this mod.
Ok - So I've already modded my framework-res.apk in UOT kitchen so I didn't want to re-do all those mods... and as much as anything else I wanted to be able to do this myself..
Adding the CRT animation to your phone.
You'll need root access
You'll need this APK MANAGER 4.9 - http://forum.xda-developers.com/showthread.php?t=695701 install it somewhere on your PC
You'll need to replace the apktool in the OTHER directory once you've installed apkmanager with the one attached below.
1. Get your framework-res.apk from your phone and put it in the "modding" folder
2. Run apk manager, decompile option 9 [NOT USING DEPENDENCY OPTION]
3. Go into projects\framework-res\res\values\bools.xml [EDIT]
4. Make config_animateScreenLights to false [SAVE and EXIT]
5. Go back to script and select compile option 11.
6. Say y [System app]
7. Say n [don't need to retain anything else]
8. Delete AndroidManifest.xml and Meta-Inf folder from unsignedframework-res.apk
9. Copy and paste AndroidManifest.xml and Meta-Inf folder from original framework-res.apk into unsignframework-res
.......... open the apk files using 7 zip or similar. Do not extract them..
.......... Copy and paste from inside the original apk to inside the new one.
10. You'll find unsignedframework-res.apk in "place-apk-here-for-modding" folder
10a. RENAME IT to framework-res.apk
11. Copy the new framework-res.apk onto your phone in the SYSTEM folder
12. Change the permissions to RW-R--R--
13. Move the file into the FRAMEWORK folder.
Reboot...
Done..
Tested and works on my arc. (Finally!)
Video of the animation...
[EDIT - Added the apktool here as the original link is now dead.]
Hi mate, can you upload the jar file again?
Done! 10chrs
hey ice....sent you a pm!
here's my framework....thanks a lot in advance
im_iceman said:
First of all... Thanks go to sbong for bringing this to my attention and helping me through it.. including proving me with some of the files I needed to make this work..
Also thanks to the devs who created the util's needed to do this mod.
Ok - So I've already modded my framework-res.apk in UOT kitchen so I didn't want to re-do all those mods... and as much as anything else I wanted to be able to do this myself..
Adding the CRT animation to your phone.
You'll need root access
You'll need this APK MANAGER 4.9 - http://forum.xda-developers.com/showthread.php?t=695701 install it somewhere on your PC
You'll need to replace the apktool in the OTHER directory once you've installed apkmanager with the one attached below.
1. Get your framework-res.apk from your phone and put it in the "modding" folder
2. Run apk manager, decompile option 9 [NOT USING DEPENDENCY OPTION]
3. [NOT REQUIRED?] Drag twframework-res.apk into the script.
4. Go into projects\framework-res\res\values\bool.xml [EDIT]
5. Make config_animateScreenLights to false [SAVE and EXIT]
6. Go back to script and select compile option 11.
7. Say y [System app]
8. Say n [don't need to retain anything else]
9. Delete AndroidManifest.xml and Meta-Inf folder from unsignedframework-res.apk
10. Copy and paste AndroidManifest.xml and Meta-Inf folder from original framework-res.apk into unsignframework-res
11. U'll find unsignedframework-res.apk in "place-apk-here-for-modding" folder
12. Copy the unsignedframework-res.apk onto your phone in the SYSTEM folder
13. Change the permissions to RW-R--R--
14. Move the file into the FRAMEWORK folder.
Reboot...
Done..
Tested and works on my arc. (Finally!)
Video of the animation...
[EDIT - Added the apktool here as the original link is now dead.]
Click to expand...
Click to collapse
noobish question here mate, hope you can help me.
First: After compiling the framework-res.apk, how do you edit and overwrite meta.inf and androidmanifest.xml? and when you use the apk manager, their is no meta.inf folder when decompiling framework-res.apk
2nd: Do you need to rename your unsignedframework-res.apk to framework-res.apk?
just copy and paste the androidmanifest and meta.inf files from your original framework-res.apk into the new one..
and yes - rename it to framework-res.apk
im_iceman said:
just copy and paste the androidmanifest and meta.inf files from your original framework-res.apk into the new one..
and yes - rename it to framework-res.apk
Click to expand...
Click to collapse
do you mean to extract the apk again then after copying the files, zip the apk again still using the apk manager?
No..open the apk files using 7 zip or similar. Do not extract them..
Copy and paste from inside the original apk to inside the new one.
Sent from The arc using XDA premium..
im_iceman said:
No..open the apk files using 7 zip or similar. Do not extract them..
Copy and paste from inside the original apk to inside the new one.
Sent from The arc using XDA premium..
Click to expand...
Click to collapse
ok thanks..going to try using winrar.
i've tried this but i got a bootloop
I've done a few of these now and it works perfectly.. perhaps worth trying again.. follow the instructions very carefully.
hello.i have small problem using apk manager 4.9 with replaced apktool.jar. problem is when i try decompile file.still i have error.please help.log attached.thanks
i followed your steps to the letter and im getting bootloop but ill try it again and see if i get a different result
"4. Go into projects\framework-res\res\values\bool.xml [EDIT]" should be bools, am I right ?
works like a charm thanks mate, its not that hard when you know what to do thanks again
well spotted!.. yes.. it should!
kondejm said:
hello.i have small problem using apk manager 4.9 with replaced apktool.jar. problem is when i try decompile file.still i have error.please help.log attached.thanks
Click to expand...
Click to collapse
Looks like your trying to mod your phonebook.apk...
Nie mo¾na odnale«† C:\Users\Niuniek\Desktop\APK editor\place-apk-here-for-modding\../place-apk-here-for-modding/signedPhonebook.apk.
Nie mo¾na odnale«† C:\Users\Niuniek\Desktop\APK editor\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedPhonebook.apk.
Click to expand...
Click to collapse
I've just amended the first post...
you need to rename the unsignedframework-res.apk to framework-res.apk (ie the name of the original file)..
I thought that would have been obvious.. but perhaps not.
post deleted
Just followed the guide, no issues.
Loving the animation
One small thing, can't help feeling that the first post should be edited to include this to make it clearer:
im_iceman said:
No..open the apk files using 7 zip or similar. Do not extract them..
Copy and paste from inside the original apk to inside the new one.
Click to expand...
Click to collapse
Done!.....

Need Help

Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Open ur new apk using 7zip (righr click>7zip>open archive) and do the same with ur old one. Delete the resources.xxxx(i dont know the name by heart lol) and drag and drop the one (by one i meant the resources.xxxx file) from the new zip to the old zip and adb push ur old frameworkres apk and reboot
Sent from my PG86100 using XDA App
kpkimmel said:
Posted it here because i need a dev.
I pulled my Framework-res.apk and modified all the icons for everything. I decompiled using apktool.
My question is what steps do i take now (do i need to sign it, what a good tool to recompile it as apktool does and gives me a framework-res.apk but caused my phone not to boot up)..also someone said seomthing about resources.arsc or something..not sure where to go...thanks for your help.
Click to expand...
Click to collapse
sounds more like a question. Use apk manager and or 7zip
how does just that one file carry over all the new pics and stuff i changed...
edited......
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
preludedrew said:
What exactly have you edited? If you just change non patch9 images... then you can just drag and drop the new images into the apk (may have to rename apk to zip).
If they are patch9's... you need to..
decompile framework-res.apk (apktool d framework-res.apk)
swap out images
recompile (apktool b framework-res)
Now take the newly compiled apk (in the /dist folder). Open it up and take the edited images (only the ones you need changed) and put them into your original apk.
No need to resign just push it to your phone and verify that it works
If you are editing xml files in /values* or /layout..
do the same as above, except after re-compiling, you're going to swap over the resources.arsc file to the original apk.
This is using apktool... in my experience apk manager doesn't do the job to my expectations... so i just do it manually with apktool.
Lemme know if u need anything more, or if i didnt touch on a specific situation.
Btw, maybe to combat the retarded comments about q&a and being in the right section... maybe turn the OP into a How-To?
Click to expand...
Click to collapse
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
kpkimmel said:
Thank you very much..finally...one last question, where do i put the wallpaper so when the system is fully booted it shows the wallpaper i want? Thanks.
Click to expand...
Click to collapse
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
preludedrew said:
There's an xml edit for it... but forgot it off the top of my head... quickest way is to replace system/customize/resource/shows_over.jpg with your image.
Click to expand...
Click to collapse
Thanks you, sorry about the stupid framework-res question...i knew the answer but had been so long forget the simplest of steps....instead of normal compression i was using store instead.....duh.......thank you though for the reminder because 7zip will automatically restore the same it was decompressed with, unlike that crap winrar. Have a good one man and thank you again.

Help with Default themes.apk

Hy i just de-compiled Default Themes.apk from ST15i
as i wanted to change the name From DefaultThemes.apk to something i want & i successfully did it
but now that .apk in not installing as a normal apk or by pushing into system app
even tried to sign it but no luck:crying:
I attached the .apk i moded, please someone look into it and tell me whats wrong
This defaultthemes.apk is de-compiles so just extract it and peep into it
Thanks
piousheart said:
Hy i just de-compiled Default Themes.apk from ST15i
as i wanted to change the name From DefaultThemes.apk to something i want & i successfully did it
but now that .apk in not installing as a normal apk or by pushing into system app
even tried to sign it but no luck:crying:
I attached the .apk i moded, please someone look into it and tell me whats wrong
This defaultthemes.apk is de-compiles so just extract it and peep into it
Thanks
Click to expand...
Click to collapse
What did you do after you recompiled the apk?
Ticklefish said:
What did you do after you recompiled the apk?
Click to expand...
Click to collapse
Pushed in system\app rebooted phone ( This method didn't worked, defaultthemes.apk didn't installed )
Then i tried to sign the apk and pushed - didnt workred.. then installed as a normal apk still no sucess
Thanks for the reply.
piousheart said:
Pushed in system\app rebooted phone ( This method didn't worked, defaultthemes.apk didn't installed )
Then i tried to sign the apk and pushed - didnt workred.. then installed as a normal apk still no sucess
Thanks for the reply.
Click to expand...
Click to collapse
So you didn't use the signing from the original app? Or change the compression rate of resources.arsc? Just compiled and pushed?
1.Make a copy of an original apk
2.Decompile the app
3.Do desired changes
4.Recompile
5.Replace changed resources from recompiled app back to original app (without unpacking it, use winrar or something like that open the apk and then just paste the changed resources inside)
6.Copy the file to /system/app
7.Give 644 permissions.
Ticklefish said:
So you didn't use the signing from the original app? Or change the compression rate of resources.arsc? Just compiled and pushed?
Click to expand...
Click to collapse
How to use the signing from original app?
How to change the compression ratio of resources.arsc?
Sorry for making you concern but i am really a noob
Theonewithideas said:
1.Make a copy of an original apk
2.Decompile the app
3.Do desired changes
4.Recompile
5.Replace changed resources from recompiled app back to original app (without unpacking it, use winrar or something like that open the apk and then just paste the changed resources inside)
6.Copy the file to /system/app
7.Give 644 permissions.
Click to expand...
Click to collapse
Thanks for replying..
I tired to paste the changed work from recompiled app to original but the problem is i changed the values in res\value\string ( changed the name of application so that i can install w\o replacing the original themes ) but after recompiling VALUE folder disappeared from res, now how do i move the STRING to original apk?
piousheart said:
Thanks for replying..
I tired to paste the changed work from recompiled app to original but the problem is i changed the values in res\value\string ( changed the name of application so that i can install w\o replacing the original themes ) but after recompiling VALUE folder disappeared from res, now how do i move the STRING to original apk?
Click to expand...
Click to collapse
That's inside resources.arsc. Which needs to be compressed at a STORE rate. Have a look at the tool in my signature, it can do all this for you automatically.
Ticklefish said:
That's inside resources.arsc. Which needs to be compressed at a STORE rate. Have a look at the tool in my signature, it can do all this for you automatically.
Click to expand...
Click to collapse
Can you teach me how do i make that defaultThemes.apk a normal installable apk?

Framework for apktool

what's the framework-res.apk to use to decompile apks in apktool? i can't decompile even one apk because it says the framework installed is wrong.
also maybe can someone attach the original stock settings.apk for lww?
:thanks:
patz0110 said:
what's the framework-res.apk to use to decompile apks in apktool? i can't decompile even one apk because it says the framework installed is wrong.
also maybe can someone attach the original stock settings.apk for lww?
:thanks:
Click to expand...
Click to collapse
The framework-res.apk you need to install is the one which comes with your rom. You may need to install some other files as well, depending on which files you're trying to decompile.
Best thing to do is go through your system/app and system/framework folders and install everything with the word 'res' in the name. You might install some files you don't need, but this won't cause any harm and it will ensure you've installed all the resources available.
Solved by installing SemcGenericUxpRes.apk
closed

[Q] Modifying SystemUI.apk xml file

I am using kyanROM and love it! One little tweak I was looking to make was in the notification it has kyanROM along the bottom. I was looking to replace that with my nickname. I am new to modding Android, so any help or tips would be appreciated.
Here are the steps I took and the issues I encountered:
Using NinjaMorph I extracted/decompiled SystemUI
I copied the files over to my PC
Looking through the files (not an exhaustive search mind you), I found one, tw_status_bar_tracking.xml, that had android:text="@string/kyanROM and android:layout_gravity="bottom". This looked promising to me, so I changed kyanROM to the name I wanted to use.
After saving, I copied this file back to my phone and opened the projected in NinjaMorph and said replace the original xml file with my new xml file.
"Finished" the project and closed out NinjaMorph.
Immediately experienced issues. SystemUI stopped working. Rebooting did nothing. So I restored my nandroid backup in order to start over. Back in NinjaMorph, I extracted SystemUI again and copied all files to my PC. Searching the contents of all files (a more exhaustive search) I found 4 instances of the phrase kyanROM:
First was the original in tw_status_bar_tracking.xml and said android:text="@string/kyanROM"
Second is in values\public.xml and says <public type="string" name="kyanROM" id="0x7f0800cd" />
The last two hits are from the same line in values\strings.xml and say <string name="kyanROM">kyanROM</string>
Now, assuming I'm correct that I need to mod SystemUI, after looking at the search results I'm thinking the change I need to make is to the last hit on my search, thus making it <string name="kyanROM">myName</string>. Then, when tw_status_bar_tracking.xml looks for the string kyanROM, it will display myName.
So, am I correct that in order to make this change I need to be in SystemUI? And If that is correct, is my proposed change correct - modifying the strings.xml file to show <string name="kyanROM">myName</string>?
If I do those, go into NinjaMorph and say to replace the original file with my new file I then should see myName along the bottom of the notification dropdown. Thoughts???
So I started over, this time I pulled the SystemUI.apk using adb. Then using apktool I did "apktook if SystermUI.apk". Then, apktool d SystermUI.apk ./mod". Found the file I *think* I need to modify (\values\strings.xml) and replaced kyanROM with myName. Saved the file.
Now I'm trying to recompile the file. I run the following apktool b -f -d mod. When I run this I get the error: Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml.
1) Am I modifying the correct file to place myName at the bottom of the notification screen?
2) How do I fix the PathNotExist error? I've looked at some solutions, but none seem to have worked.
Actually you need framework-res.apk from /system/framework installed through apk tool.
Pull framwork-res.apk and install it as you did for systemui.
After installing framework,type
apktool d systemui.apk
Now make the necessary changes and type
apktool b systemui
To recompile it back.
Note:after you recompile,you need to add meta-inf folder from original apk to your new recompiled apk to make it work.
Sent from my GT-N7000 using xda app-developers app
OK, I think I'm with you.
I need both SystemUI and framework-res in order to modify SystemUI
Install both (apktool if NameOfApk.apk)
decompile (apktool d SystemUI.apk)
make changes
recompile (apktool b SystemUI) but not the framework-res since I made no changes to it
And thanks for the tip about adding the meta-inf folder. I knew this, but since I never gotten that far to test, I'd probably forget to do that.
cyberpac9 said:
OK, I think I'm with you.
I need both SystemUI and framework-res in order to modify SystemUI
Install both (apktool if NameOfApk.apk)
decompile (apktool d SystemUI.apk)
make changes
recompile (apktool b SystemUI) but not the framework-res since I made no changes to it
And thanks for the tip about adding the meta-inf folder. I knew this, but since I never gotten that far to test, I'd probably forget to do that.
Click to expand...
Click to collapse
Installing framework-res.apk alone is enough if you have Samsung phone and have the latest apktool...
Sent from my GT-N7000 using xda app-developers app
vijai2011 said:
Installing framework-res.apk alone is enough if you have Samsung phone and have the latest apktool...
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
OK, I installed both - no harm I guess. So I have made all my changes, updated the apk with the meta folder, etc. I'm ready to push this over to my phone. Using adb, do I need to remount or can I just do the following: adb push S:\apk\SystemUI.apk /system/app/
Well, I took a shot and just did the adb push without remount. I think it worked. We'll see if there are any issues moving forward. Yay! Many thanks....
edit: I noticed it reset my wallpaper, easy fix. Wonder if anything else would've been reset by this change?

Categories

Resources