[Q] Help editing XML Files - HTC Droid DNA

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

Related

What's the trick to view stock XMLs in framework?

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.

editing xml help, stuck in bootloop.

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

xml edit

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.

Editing XML's in android's binary format?

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

[Q][YP-GS1]how do i make the battery percentage make it update every 1%? not every 20

How do i make the battery percentage update every 1%? cuz my device updates it every 20% of the battery. using' yp-gs1 eu'
Sorry, thats not possible. It's a thing the Samsung Bootloader "SBL" manages.
Androthan said:
Sorry, thats not possible. It's a thing the Samsung Bootloader "SBL" manages.
Click to expand...
Click to collapse
I think he's talking about the battery indicator in the status bar. You have to modify the xml files related to the battery indicator in the framework-res.apk and put the valid images in the drawable folder You must, however, have basic knowledge of decompiling/compiling apk files. There might be a ROM based on your firmware whose framework-res.apk you can use, or there are multiple guides you can google for, and modify your own.
drakonizer said:
I think he's talking about the battery indicator in the status bar. You have to modify the xml files related to the battery indicator in the framework-res.apk and put the valid images in the drawable folder You must, however, have basic knowledge of decompiling/compiling apk files. There might be a ROM based on your firmware whose framework-res.apk you can use, or there are multiple guides you can google for, and modify your own.
Click to expand...
Click to collapse
Yup im talking about battery icon on status bar. Ive searched some guides. I already have images to replace the icons etc. And ive come to point where i should edit xml, but i cant open the xml file. I tried notepad++, notepad, xml editors online. But no good, or im not really allowed to open it? any help would be great!
kryptonify said:
Yup im talking about battery icon on status bar. Ive searched some guides. I already have images to replace the icons etc. And ive come to point where i should edit xml, but i cant open the xml file. I tried notepad++, notepad, xml editors online. But no good, or im not really allowed to open it? any help would be great!
Click to expand...
Click to collapse
You have to decompile the apk first. Use apktool to decompile and then open the xmls using Notepad++.
drakonizer said:
You have to decompile the apk first. Use apktool to decompile and then opne the xmls using Notepad++.
Click to expand...
Click to collapse
Oh ok, cuz i used winrar to extract the xml file/s. im gonna try to use apktool.

Categories

Resources