editing xml help, stuck in bootloop. - HTC EVO 3D

Hi everyone, i used to tommytomatoes linux software to work on framwork and com.htc.resource files and all seemed to go fine with tommy's tools. no errors.
i pushed them to my phone and then installed them using adb.
i restart the phone and end up in a bootloop.
all i did was edit the colors.xml file to change the color and nothing else, no images, not a thing.
is there a way to figure out what is wrong with the 2 apk's i edited?
Thanks for any and all assistance, xml editing is killing me.

what ROM is it from? odex or not?

i used the apk's from king cobras rom.

I can't quite remember (and it could be different on a GSM ROM but I doubt it) but I think if you edit xml you need to remove the arsc or dex from the apk before you recompile.
you can ask here - lots of great help there, including tommyt
http://forum.xda-developers.com/showthread.php?t=1320891

hackit said:
Hi everyone, i used to tommytomatoes linux software to work on framwork and com.htc.resource files and all seemed to go fine with tommy's tools. no errors.
i pushed them to my phone and then installed them using adb.
i restart the phone and end up in a bootloop.
all i did was edit the colors.xml file to change the color and nothing else, no images, not a thing.
is there a way to figure out what is wrong with the 2 apk's i edited?
Thanks for any and all assistance, xml editing is killing me.
Click to expand...
Click to collapse
If any .xml's are edited, before you recompile the .apk, you should remove the resources.arsc file. Then, compile.

^^^ that thanks, I couldn't remember lol.

pinky059 said:
If any .xml's are edited, before you recompile the .apk, you should remove the resources.arsc file. Then, compile.
Click to expand...
Click to collapse
il Duce said:
^^^ that thanks, I couldn't remember lol.
Click to expand...
Click to collapse
where is the resource.arc file i have looked in the decompiled apk and i dont see it, but i see it in one that i havent decompiled?

ok i keep getting stuck bootlooping.
I have removed the resources.arsc file and lef tit in and either way it's the same, all i'm editing is the colors.xml and nothing else.
If i post my colors.xml and the apk can you maybe try it and see if you can do it?
Thanks to anyone willing to take the time to do this.
Kev

dased14 said:
where is the resource.arc file i have looked in the decompiled apk and i dont see it, but i see it in one that i havent decompiled?
Click to expand...
Click to collapse
it build when you compile - then delete from "keep" or whatever before you "finish" (in apkmanager anyway)
hackit said:
ok i keep getting stuck bootlooping.
I have removed the resources.arsc file and lef tit in and either way it's the same, all i'm editing is the colors.xml and nothing else.
If i post my colors.xml and the apk can you maybe try it and see if you can do it?
Thanks to anyone willing to take the time to do this.
Kev
Click to expand...
Click to collapse
post your exact edits, and you MUST remove arsc when edited xml, and your apk here with what you're trying to do >>
http://forum.xda-developers.com/showthread.php?t=1320891

Related

editing the framework-res.apk

Sorry if I missed the answer I'm looking for but I did search first, I tried editing a few .png files and after pushing the framework-res.apk back everything on my phone went into a force close loop, I tried pushing the original back and it did the same thing, any help?
I tried editing a PNG file the in call screen pic and pushed it to phone and same thing happened to me,no idea why
After you edit framework-res it must be signed you cannot simply flash it, first you must edit the images you choose, make sure the names stay the same, make it an apk, sign the apk, the reload in the rom by pushing it.
Cheers,
Captainkrtek
Pm if you need help
How do you go bouts signing it
I've never had to resign that one after making any changes. Just a reboot would suffice.
Edit: Maybe try using Metamorph to make your changes. That's what I did recently on that particular apk without a problem. I mistakenly thought I pulled/pushed that one, but maybe I didn't.
PPCGeek01 said:
I've never had to resign that one after making any changes. Just a reboot would suffice.
Edit: Maybe try using Metamorph to make your changes. That's what I did recently on that particular apk without a problem. I mistakenly thought I pulled/pushed that one, but maybe I didn't.
Click to expand...
Click to collapse
heres a good instruction for theming and a singningzip for your sdk tools folder... http://forum.cyanogenmod.com/topic/56-mods-blackbar-etc-50x/page__st__20__p__3320#entry3320

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.

[Q] Problem with SystemUI.apk/res/layout/status_bar_expanded.xml

Sorry for all the questions lately, even though I'll probably have more.
I'm working on the SystemUI.apk from IE20 and my method of compiling consists of using the keep folder method and deleting all the files I changed with apk manager 4.9.
Now I can change the Status_bar.xml and status_bar_tracking.xml without a hitch, however if I delete status_bar_expanded.xml from the keep folder (whether I change anything in it or not) I get force closes when I get it loaded onto my phone.
There's no error in the log so I'm pretty lost...So I was wondering if there's something else I have to do that anyone knows of?
Thanks if you can help!
The only thing that should be deleted are images that you edited (if you didn't edit any images just leave the folder). But if you edited ANY xml ONLY delete the resourses.arc from the keep folder. But don't delete any individual xml's from keep. And yes the size will change because of the compression used in apk mgr.
good day.
chopper the dog said:
The only thing that should be deleted are images that you edited (if you didn't edit any images just leave the folder). But if you edited ANY xml ONLY delete the resourses.arc from the keep folder. But don't delete any individual xml's from keep. And yes the size will change because of the compression used in apk mgr.
good day.
Click to expand...
Click to collapse
Thanks for the response,
However, by not deleting the xmls I edited in the keep folder it seems it just replaces them with the stock files.
Soo...This stopped the force closes, but none of my edits took.
Maybe it's time to to switch to a linux build environment...I'm frustrated to say the least. Google'd every possible problem and nothing...
EDIT: But before I do that could someone possibly try to compile this SystemUI.apk with a color edit in the res/layout/status_bar_expanded file?
Would highly appreciate this ^^^

Decompiling SystemUI.apk problem

I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
tallgrasshawk said:
I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
Click to expand...
Click to collapse
its better to bring the error log here, its located in apk manager directory log.txt
When at the PC I will zip up my apktool and run you through what I do
---------- Post added at 05:08 AM ---------- Previous post was at 04:53 AM ----------
Here is my APKtool folder (I doubt it matters but I keep it in the C drive) C:\apktool
http://dl.dropbox.com/u/22063477/apktool.zip
1. apktool if framework-res.apk (this is the stock framework from whatever rom you are working on)
2. apktool d -f SystemUI.apk (seem to have better luck with using the force command)
3. make your edits
4. apktool b -f SystemUI SystemUIedit.apk
5. clap with glee that after bashing your head into a wall like I have been you can now edit XML's
6. now come help me fix some things in my themes
Don't you also have to install the twframework as well?
tallgrasshawk said:
Don't you also have to install the twframework as well?
Click to expand...
Click to collapse
I didnt have to but may want to avoid some of the phantom file missing errors
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
tallgrasshawk said:
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
Click to expand...
Click to collapse
here is what I did and it seemed to help me get teh basic understanding (changing clock color etc)
there is a app called CSDiff you can use it to compare diff in a folder, so I decompiled two SystemUI's one stock one themed and then took a look at what changed in the XML then can test and recompile. has worked ok for me so far lol
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
tallgrasshawk said:
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
Click to expand...
Click to collapse
this gave me a headache more than helped but may help you out a bit..
http://www.xoomforums.com/forum/mot...guide-xml-breakout-themeing-full-details.html
Hey boosted, have you seen this version of apktool? It allows the decompiling of SystemUI, etc. with no problem. Rename current apktool.jar and name this new one apktool.jar and put it into APKmanager's "other" folder.
Comment deleted

Status bar background

How to change the status-bar background?
i want to change the transparent black background with the image in attachment so that it match my theme.
So which files i have to replace with this background?
Using xPeria Mini with stock ICS ROM
So no help?:crying:
piousheart said:
So no help?:crying:
Click to expand...
Click to collapse
Try to post in Themes and Apps section.
Publiuss said:
Try to post in Themes and Apps section.
Click to expand...
Click to collapse
What is this thread?
mobilephone01 said:
What is this thread?
Click to expand...
Click to collapse
Actually this thread was in general but i moved it
And guys will you all please stick to the topic..any help?
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
iiandskater said:
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
Click to expand...
Click to collapse
See here is my systemUI.apk please add the image at OP (opaque)
piousheart said:
See here is my systemUI.apk please add the image at OP (opaque)
Click to expand...
Click to collapse
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
evilbarcode said:
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
Click to expand...
Click to collapse
I tried but when i recompile it & push it in system\app with proper permission, after rebooting phone it stuck bootlogo..
The same happens when i tried to decompile DefaultThemes.apk & MusicWidget.apk they both were not installed...
then i searched & found that we have to compress the resources.arc blablablaaa... & signing with recompiling system apk..
Still after giving a lot of tries i dont understand how to use signing & compress resources.arc blablaballl idk..
If you know than may be you can teach
Rebooted my phone 100z of time to check every method i found but no success
Now i dont wana harm my phone, rebooting it again & again for the things that isn't working for me...
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
piousheart said:
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
Click to expand...
Click to collapse
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Ticklefish said:
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Click to expand...
Click to collapse
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Click to expand...
Click to collapse
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Ticklefish said:
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Click to expand...
Click to collapse
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
Click to expand...
Click to collapse
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Ticklefish said:
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Click to expand...
Click to collapse
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
piousheart said:
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
Click to expand...
Click to collapse
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Ticklefish said:
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
Okay thanks..
So i tried to mod even after knowing that it wont work as before..
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else
is i am doing it editing wrong file and yes how can i use your tool for this?
Originally Posted by Ticklefish<br />
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.<br />
<br />
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.<br />
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
<br />
<br />
Okay thanks..<br />
So i tried to mod even after knowing that it wont work as before..<br />
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else<br />
is i am doing it editing wrong file and yes how can i use your tool for this?
Click to expand...
Click to collapse
To be honest, I don't know how to change the name of an app. It's something I've never done before.
I suspect that you've gotten the mod wrong somewhere but unfortunately I can't advise on where that could be.
Sorry, mate.

Categories

Resources