bootloop trying to replace framework-res.apk - Xperia Arc Q&A, Help & Troubleshooting

I've been getting this bootloop for the last 18hours of trying
I'm on stock ROM, with Gin2Ics V1.0 theme, and using Overdose1986 Notification toggle, but I change the wifi icon of Overdose1986 using ApkChanger and it works..
and then I want to change the battery icon of FlorinXstyle (Gin2Ics V1.0) to something like this http://forum.xda-developers.com/showthread.php?t=1472766 so I tried decompile the framework-res (should be from Gin2Ics theme) then put some new battery icon from http://forum.xda-developers.com/showthread.php?p=19938404 , then re-compile and i got bootloop..
Am i missing something or doing wrong here? well actually I just read some of the post here on how to decompile/recompile framework-res but mine always ends up in bootloop.. can somene help me thanks

I think just to replace the battery icons you don't need to decompile, just open the framework apk with 7 zip or winrar, and paste the images in, checking the names match. There might bee more or less, but so long as the names match, shouldn't be a prob.
When done, install as you have been.
Sent from my metalliArc S

Metallijim said:
I think just to replace the battery icons you don't need to decompile, just open the framework apk with 7 zip or winrar, and paste the images in, checking the names match. There might bee more or less, but so long as the names match, shouldn't be a prob.
When done, install as you have been.
Sent from my metalliArc S
Click to expand...
Click to collapse
thanks for reply, after I put the images in, what should I do next? how can I make it again to an apk file without compiling it and how should I install it?
EDIT#1: I still got a bootloop

asderth8000 said:
thanks for reply, after I put the images in, what should I do next? how can I make it again to an apk file without compiling it and how should I install it?
EDIT#1: I still got a bootloop
Click to expand...
Click to collapse
To replace images use WinRAR, rename .pngs you have the same as they are in drawable-hdpi (stat_sys_battery_0-100, stat_sys_battery_charge_0-100 stat_sys_battery_charge_full, stat_sys_battery_full, stat_sys_battery_unknown) if they aren't already renamed. So open framework-res.apk with Winrar, go to drawable-hdpi, click Add button, choose all the icons you want, click ok, choose Store compression method and OK. Then you shouldn't have a bootloop.
It won't change from apk to any other file.

n3n00 said:
To replace images use WinRAR, rename .pngs you have the same as they are in drawable-hdpi (stat_sys_battery_0-100, stat_sys_battery_charge_0-100 stat_sys_battery_charge_full, stat_sys_battery_full, stat_sys_battery_unknown) if they aren't already renamed. So open framework-res.apk with Winrar, go to drawable-hdpi, click Add button, choose all the icons you want, click ok, choose Store compression method and OK. Then you shouldn't have a bootloop.
It won't change from apk to any other file.
Click to expand...
Click to collapse
I did what you said but no luck, or maybe I'm using incompatible files but all I do is change the png files, and they have the same name already, I'll call it a night maybe try something tomorrow thanks

http://forum.xda-developers.com/showthread.php?t=1374394
Are you changing permissions when you put the framework-res back in the framework folder?

yes I'm changing permissions, rw-r--r--, but always ends up in bootloop, I read somewhere post that after changemjg permission and move to framework folder, if phone reboot itself then there must be wrong in what i' m doing, cause thats what happen after I move the framework-res to framework folder, after finish replacing the one in the folder, phone shutdown and start to bootloop..
Sent from my LT18i using xda app-developers app

Do you have .odex files in system/app? Also which battery mod are you trying to add?

n3n00 said:
Do you have .odex files in system/app? Also which battery mod are you trying to add?
Click to expand...
Click to collapse
i dont know actually about odex files i'll check them later,btw what about odex files?
its jamesgary's battery mod
Sent from my LT18i using xda app-developers app

i think i dont have .odex files in my system/app folders
Sent from my LT18i using xda app-developers app

Related

[Q] Problems with theming Framework

Hi everyone,
I'm having a few questions regarding the theming of framework-res.apk on Android Revolution (No-Sense/Sense)..
After I pull the .apk, and decompile it, I edit the images so that the .9.png files stay intact. Then after that I compile the entire .apk and use WinRar to only push the images to the origional framework-res.apk..
But everytime I flash it I get bootloops and it won't boot into Android, any idea what I do wrong in the proces?
Thanks in advance!
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
leith51 said:
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
Click to expand...
Click to collapse
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
deanr1977 said:
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
Click to expand...
Click to collapse
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
apaquette420 said:
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
Click to expand...
Click to collapse
I find it much easyer this way. Can i ask you a question if you know abit about framework modding can you see were i have gone wrong here - http://forum.xda-developers.com/showthread.php?t=1195549
I can live with it but i would rather change it to a light gray or a different color? Any help would be very nice & not had a reply about this yet? Can you help?
i had the same issue and i found it easier to update the old framework and overwrite existing files. once you have completed compiling your new framework APK extract the contents and copy into the old framework... and that seems to work fine

[Transition Animation] [StarBurst] MotoBlur

These are the transition animations from MotoBlur.
I was unable at this point to find where the screen rotation animations are but I'll keep investigating.
the framework-res file is for PhantomHacker's Starburst ROM v1.3
You can just push the file via adb or Root Explorer (?).
I have also attached the transition animations stand-alone. They need to be injected in framework-res.apk/res/anim and they are compatible with all ROM releases.
Hi
Where do we push the framework-res file to?
mandie7312 said:
Where do we push the framework-res file to?
Click to expand...
Click to collapse
/system/framework/
Thanks
krazyflipj said:
/system/framework/
Click to expand...
Click to collapse
Thanks so much
how would i go about injecting this into another rom. any instructions anywhere?
jok3sta said:
how would i go about injecting this into another rom. any instructions anywhere?
Click to expand...
Click to collapse
Go to system/framework and look for you Framework-res.apk and send it to your pc with bluetooth (Thats what I do) then open your framework-res.apk with winrar or 7zip (I use winrar) with framwork-res.apk open navigate to "res" folder open it then look for "anim" folder and open it now from the anim folder that you downloaded from OP open it then drag and drop it to the "anim" folder that you have previously open in Winrar its going to ask you to overwrite the files click ok or yes then close winrar, then send it back to the phone tru bluetooth, now with root explores copy it to system/framework reboot and you are done, you will get FC's but reboot and everythin will be ok.
Hope it helps.
lokko21 said:
Go to system/framework and look for you Framework-res.apk and send it to your pc with bluetooth (Thats what I do) then open your framework-res.apk with winrar or 7zip (I use winrar) with framwork-res.apk open navigate to "res" folder open it then look for "anim" folder and open it now from the anim folder that you downloaded from OP open it then drag and drop it to the "anim" folder that you have previously open in Winrar its going to ask you to overwrite the files click ok or yes then close winrar, then send it back to the phone tru bluetooth, now with root explores copy it to system/framework reboot and you are done, you will get FC's but reboot and everythin will be ok.
Hope it helps.
Click to expand...
Click to collapse
I read somewhere that whe modifying an apk i will have to sign it.. Is that the case here as well?
Tapatalkin' it from my Epic Touch 3g
jok3sta said:
I read somewhere that whe modifying an apk i will have to sign it.. Is that the case here as well?
Tapatalkin' it from my Epic Touch 3g
Click to expand...
Click to collapse
You don't sign system apk's.
Just push it to system/framework and reboot.
Bah, double post.
AvatarOfFrost said:
You don't sign system apk's.
Just push it to system/framework and reboot.
Click to expand...
Click to collapse
Kool thanks
Tapatalkin' it from my Epic Touch 3g
Thanks, looking forward to trying this out in a bit!
You can't just open an .apk. It has to be de-compiled, edited, then re-compiled. Just fyi so you don't get an FC fest
Sent from my SPH-D710 using xda premium
SAShady said:
You can't just open an .apk. It has to be de-compiled, edited, then re-compiled. Just fyi so you don't get an FC fest
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Depends on what you're doing. I've opened system .apks such framework, settings, systemui, etc. for graphic changes for years with no issues.
.....
Vegasden said:
Depends on what you're doing. I've opened system .apks such framework, settings, systemui, etc. for graphic changes for years with no issues.
.....
Click to expand...
Click to collapse
In assuming the anim.zip is an xml, which does need a decompile/compile method. Dropping pngs into an apk is one thing, not so with xmls. The are other xmls in the apk that need to populate based on things in the apk, including other xmls.
Sent from my SPH-D710 using xda premium
works like a charm, thanks OP. (used 7zip to replace res/anim with anim.zip)
cant wait til you get your hands on those rotation animations. maybe this could help but i bet youve already seen this:
http://hotfile.com/dl/122984343/f518479/motoblurframework.zip.html
couldnt find anything to point to the xml that covers rotation animations
Vegasden said:
Depends on what you're doing. I've opened system .apks such framework, settings, systemui, etc. for graphic changes for years with no issues.
.....
Click to expand...
Click to collapse
+1000000
Sent from my SPH-D710 using xda premium
squshy 7 said:
In assuming the anim.zip is an xml, which does need a decompile/compile method. Dropping pngs into an apk is one thing, not so with xmls. The are other xmls in the apk that need to populate based on things in the apk, including other xmls.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
I haven't looked but on htc's it was a folder that could be replaced and I've done it several times with 7zip and had no issues.
Sent from my SPH-D710 using xda premium
Tiffany84 said:
I haven't looked but on htc's it was a folder that could be replaced and I've done it several times with 7zip and had no issues.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
it is the same i did it on one of my batt mods the closed the .zip and flashed and all was ok
squshy 7 said:
In assuming the anim.zip is an xml, which does need a decompile/compile method. Dropping pngs into an apk is one thing, not so with xmls. The are other xmls in the apk that need to populate based on things in the apk, including other xmls.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
You don't need to decompile and recompile unless you are modifying the CONTENTS of the xml. In this case you are simply replacing them.
I believe the transition animations are in blur-res.apk or moto-res.apk.
Sent from my SPH-D710 using xda premium

Customizing graphics (maybe noobish question)

Less than an hour ago I decided to skin my statusbar. What I do is open SystemUI.apk with 7zip, extract everything from drawable folders and modify them. Now, I've got a question. Is it enough to replace png files in apk with modded ones, or I should somehow sign the apk file?
Thanks in advance.
Sent from nowhere
tajimura said:
Less than an hour ago I decided to skin my statusbar. What I do is open SystemUI.apk with 7zip, extract everything from drawable folders and modify them. Now, I've got a question. Is it enough to replace png files in apk with modded ones, or I should somehow sign the apk file?
Thanks in advance.
Sent from nowhere
Click to expand...
Click to collapse
Good question! I'm also interested in this.
Can't remember well whether it will work without resigning but I always sign the system apk / user apk after doing any modification.
Unsign apk normally get installed when it is placed at system/app but will not work when put it at sd-ext/app_s.
ckpv5 said:
Can't remember well whether it will work without resigning but I always sign the system apk / user apk after doing any modification.
Unsign apk normally get installed when it is placed at system/app but will not work when put it at sd-ext/app_s.
Click to expand...
Click to collapse
Got it. One more question - which tool do you use for signing?
Sent from nowhere
tajimura said:
Got it. One more question - which tool do you use for signing?
Sent from nowhere
Click to expand...
Click to collapse
Auto-sign for signing on PC and Signapktic (from Market) for signing on the phone.
ckpv5 said:
Auto-sign for signing on PC and Signapktic (from Market) for signing on the phone.
Click to expand...
Click to collapse
Thanks for the answers, now going to try that all
Sent from nowhere
Search for "apk tool" here on xda and you'll have what you need for theming and signing and more.
via xda app
System apps are NEVER signed.
If you don't extract (just open in 7zip or winrar) you can just drag new images in. If prompted for compression level, Choose "store". When finished, simply close the file with the x.
Only if you want to change xml files, need you decompile
Sent from my HTC Desire using Tapatalk
rootSU said:
System apps are NEVER signed.
If you don't extract (just open in 7zip or winrar) you can just drag new images in. If prompted for compression level, Choose "store". When finished, simply close the file with the x.
Only if you want to change xml files, need you decompile
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
Umm, I thought that I have to sign it with "platform" key...
BTW, which PNG is responsible for statusbar background? The closest one I found is "statusbar_bg_tile", 1x1 black image. I want to use gradient background, and have created one full background image and one 9-patch, but dunno what to do - simply replace statusbar_bg_tile with statusbar_bg/statusbar_bg.9 or also modify some xml? In statusbar.xml I can't find any reference to statusbar_bg_tile PNG.
Sent from nowhere

Recompile apks

Everywhere i look redirects to apkmanager.. Which is not working for me.. Can someone tell me the manual way to recompile an apk.. Or an alternative to apk manager...
Sent from my SPH-D710 using XDA Premium App
What apps are you trying to mod?
What OS?
agat63 said:
What apps are you trying to mod?
What OS?
Click to expand...
Click to collapse
I got it figured out, was trying to mod Blend ICS apps.. need de-odexed ones..
Ok new question.. This is obviously my first time figuring out how to put these back together... heres my issue: Im using the multi-tool the app im adjusting is mms.apk.. after I extract and edit the images in the res folder I choose option 3 to zip it up and then 5 to zip align and then it creates the new unsigned apk, which I then rename to Mms.apk ... when I dump it onto my phone it doesnt have the icon in astro, it looks like the white icon with the gear on it.. when i try to install it gives a parsing error... I assume its because its a system file and I need to adb it onto the phone.. but why isnt it showing up with the original mms icon? and then secondly.. I cant get multitool to adb push to my galaxy s2 it just says waiting on device.. is there something I need to do besides usb debugging and connect it to the computer? sorry for all the noobness.. gotta start somewhere right?
Oh also Im using fireworks to edit the png's and exporting them back and i noticed when i sent it back out it was like 29kb so I image export and optimized down to 2kb does that even matter?
You can't dump unsigned app into your phone.
I never workred with tool you mentioned but I think you should have sign option there.
Or you just drug modified images and xml files from that unsigned app into your original one.
It has the option to have signed or unsigned ... both ways result in the same issue...
As I said try to drag modded files and png's into original app and try to flash that.
agat63 said:
As I said try to drag modded files and png's into original app and try to flash that.
Click to expand...
Click to collapse
Ok trying..
Worked like a charm.. Makes me wonder what the point of apk manager is at all? Just 7zip unzip.. Edit and rezip...
Sent from my SPH-D710 using XDA Premium App
You can't edit xml files if you just unzip them. You have to decompile them in order to be able to edit them.

Transparent Pulldown Bar like this, please HELP

Can somebody please help me make my pulldown bar on CodeNameAndroid just like this? It would be amazing if anybody could make a zip theme or flashable zip. The forum where I got this from has a download but it doesn't have the file for zip themer and it causes my UI to crash on boot up after flash. Stock or CNA.
I don't know how to make a ZT file or flashable zip, but I know which files need to be altered...it's not hard, you only have to change out two files in your SystemUI.apk. I'll type out an explanation if you want to try.
I'll try.
Sent from my Galaxy Nexus using xda
Sure. I hope this means I don't have to recompile or anything. I hope its just editing in photoshop.
warfexion said:
Sure. I hope this means I don't have to recompile or anything. I hope its just editing in photoshop.
Click to expand...
Click to collapse
Nah, for basic image changes you don't need even need to decompile/recompile anything.
You just have to pull your SystemUI.apk from system/app. You can do it either through adb or copy-paste to sdcard and then your PC using a file explorer app. Use this PNG I uploaded https://www.box.com/s/93whafwr36fzyijvkx86, and copy-paste it (use WinRAR or 7Zip) to the res/drawable-xhdpi folder of your SystemUI.apk. Push/copy-paste SystemUI.apk back to system/app, set permissions to rw-r-r, and then reboot. It should work.
As always though, have a nandroid handy just in case, or have your original SystemUI.apk ready if you need to push it back.
EDIT: Tried it just now to make sure it worked. Attached a pic if you want to see. Also...I can't tell from the pic you attached whether the top part where the date/time is is transparent as well. If you wanted that part transparent, use this PNG: https://www.box.com/s/hh5h8ptqpc8nojw8x292, replace it in SystemUI.apk using the exact same steps and that part will be the same transparent black as the rest.
dirtygoldfish said:
Nah, for basic image changes you don't need even need to decompile/recompile anything.
You just have to pull your SystemUI.apk from system/app. You can do it either through adb or copy-paste to sdcard and then your PC using a file explorer app. Use this PNG I uploaded https://www.box.com/s/93whafwr36fzyijvkx86, and copy-paste it (use WinRAR or 7Zip) to the res/drawable-xhdpi folder of your SystemUI.apk. Push/copy-paste SystemUI.apk back to system/app, set permissions to rw-r-r, and then reboot. It should work.
As always though, have a nandroid handy just in case, or have your original SystemUI.apk ready if you need to push it back.
EDIT: Tried it just now to make sure it worked. Attached a pic if you want to see. Also...I can't tell from the pic you attached whether the top part where the date/time is is transparent as well. If you wanted that part transparent, use this PNG: https://www.box.com/s/hh5h8ptqpc8nojw8x292, replace it in SystemUI.apk using the exact same steps and that part will be the same transparent black as the rest.
Click to expand...
Click to collapse
Thanks so much dude your awesome! IDK anything with android that isn't flashable ends up usually a mess in my hands so thanks and finally I don't have to stare at that ugly grey!
warfexion said:
Thanks so much dude your awesome! IDK anything with android that isn't flashable ends up usually a mess in my hands so thanks and finally I don't have to stare at that ugly grey!
Click to expand...
Click to collapse
Lol well that's what backups are for! And you're welcome, glad you got it sorted out.

Categories

Resources