What do I need to view the XML files in the framework-res? I would thought Notepad++ to have worked, but just wondering if I need an extra plugin? I just see a lot of "Nul" characters. Thanks...
floepie said:
What do I need to view the XML files in the framework-res? I would thought Notepad++ to have worked, but just wondering if I need an extra plugin? I just see a lot of "Nul" characters. Thanks...
Click to expand...
Click to collapse
All XML files in android apps get compiled into binary data, so you need to use a tool such as APK Manager by Danesh to decompile the XMl's into human-readable form.
cheers
Great, thanks! It works a charm. What I'm trying to do is modify an XML. Now, to find a way to wrap this that framework-res into an update.zip and have it work.
Related
Im trying to start theming, as i have only been in the android club for about a month. The issue im having is with xml files. Everywhere i read, its like, open in notepad to edit. I open them in notepad and all i get is a bunch of gibberish symbols and letters. Is there any special way that i need to use to edit xml files?
Any help is appreciated, Thanks.
Sorry if this is a repeat, used the search but not in depth, so please dont flame.
I spent a long time searching for how to do this as well. Easiest way is to use APK manager.
Go download it from here: http://forum.xda-developers.com/showthread.php?t=695701
Basically you put the apk you want to edit into the edit folder and decompile it. Then go into the projects folder and the xml files created will be readable. Edit them using textpad, notepad, w/e you want. Once you are done load apk manager backup, select the same project and then compile the apk. Thats the gist of it, its a tiny bit more complex but you should get it after trying it. Also if you are looking to edit something like services.jar I found you can rename it to services.apk and it will decompile the smali for you so it can be edited. Just play around with APK manager and it should do everything you will need.
sweet, thanks for the help. hopefully ill have a nice theme on here in a couple weeks. thanks
yeah, if you want a full look into any apk you're going to have to decompile it unless you know what you're looking for in the hex of a compiled xml... also with a decompiled apk you can see alot of stuff such as how the .9 borders (or what ever you wanna call em) are done so make sure they stretch the same way
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
What is the best program to edit an android xml file and what to use to decrypt it. When i open it it shows all scrambled i have sdk installed aready. I am trying to edit a main.xml file
Get Wanam's ics apk tool! And decompile apk u want to edit ur xml for!
THen use Notepad++ its one of the best xml editor!
Bradl79 said:
What is the best program to edit an android xml file and what to use to decrypt it. When i open it it shows all scrambled i have sdk installed aready. I am trying to edit a main.xml file
Click to expand...
Click to collapse
What about Eclipse (free)? I wrote couple fun Android apps for myself. Edit xml
sweetboy02125 said:
What about Eclipse (free)? I wrote couple fun Android apps for myself. Edit xml
Click to expand...
Click to collapse
Eclipse is pretty cool for java based stuff but I like Liquid XML Editor for higher level binding and validation, or if its just basic editing I like Amaya, the free tool from W3C.
Hello, I'm trying to create my own theme. I've decompiled deodexed systemui / framework-res and I want to get to work on these xml files. I'm running into issues though because they're in android binary format and I can't find a way to convert them to something a human can actually read.
I've searched around, but no methods I've tried have produced useful results. AXML is definitely broken and only shows UTF8 headers. I've decompiled the app in many different ways and it's just not working.
how can I edit something like status_bar.xml without a hex editor?
Are you sure you decompiled with apktool? Or just unzipped the apk? Do you have a /values folder after decompiling?
Sounds like you're not doing something right...
Sent from my phone's mind
If u decompile the apk you can modify .XML with notepad++ and then when you are finished you recompile
You can use
Apktool
Apkmanager
Or Google how to decompile .apk and you will get an answer on that many tutorials out there
Sent from my GT-N7000 using XDA Premium HD app
how can I edit XML files. I tried using notepad++ and VTS. All i see is whats in the attached pic.
Any ideas or reccomended programs?
termin8tor22 said:
how can I edit XML files. I tried using notepad++ and VTS. All i see is whats in the attached pic.
Any ideas or reccomended programs?
Click to expand...
Click to collapse
Is the .xml you're trying to edit from an app? If so, looks like to need to de-compile the app first, instead of just un-zipping it. If you already de-compiled it, then try XML Marker to edit it. :good:
Argumentation said:
Is the .xml you're trying to edit from an app? If so, looks like to need to de-compile the app first, instead of just un-zipping it. If you already de-compiled it, then try XML Marker to edit it. :good:
Click to expand...
Click to collapse
To be exact the xml is the AndroidManifest.xml file in the sense 5 clock widget apk and yes i decompiled the apk. will try xml marker
Edit: xml marker gave same results