how do you read xml files in the apk files, help??? - Hero CDMA Q&A, Help & Troubleshooting

Hi Everyone
I feel like an idiot asking this question but how can what can I use to read the xml files that are in the apk files? Every time I double click on them and IE opens I get an error. I then downloaded an xml editor and when I tried to open it in there I also got an error.

Right click on the file, click open with and choose notepad to view its raw formating. if you want a cleaner look use word to view the XML file. Be careful not to save it in word though it can garble the file. you will just have to play with it to see what works for you.
IE definitely is not a good way to view and edit XML files.

Sent from my HERO200 using XDA App

&RoidRage said:
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Great advice!
lol j/k

Hi Everyone
I feel like an idiot asking this question but how can what can I use to read the xml files that are in the apk files? Every time I double click on them and IE opens I get an error. I then downloaded an xml editor and when I tried to open it in there I also got an error.
Click to expand...
Click to collapse
Do a search in the forums. There are threads I have started and others as well that explain and gives u apps to help

Powers16 said:
Right click on the file, click open with and choose notepad to view its raw formating. if you want a cleaner look use word to view the XML file. Be careful not to save it in word though it can garble the file. you will just have to play with it to see what works for you.
IE definitely is not a good way to view and edit XML files.
Click to expand...
Click to collapse
I have tried viewing in both notepad and word pad and both of them could not read the files that is why I tried to find an xml file editor online lol :-(

dsMA said:
I have tried viewing in both notepad and word pad and both of them could not read the files that is why I tried to find an xml file editor online lol :-(
Click to expand...
Click to collapse
Use smali and backsmali. If you download this little toolkit from here you should be able to edit them in notepad++. I forgot how to use them but its pretty easy.
Maybe I'm wrong--been so long since I've messed with this stuff

dsMA said:
Hi Everyone
I feel like an idiot asking this question but how can what can I use to read the xml files that are in the apk files? Every time I double click on them and IE opens I get an error. I then downloaded an xml editor and when I tried to open it in there I also got an error.
Click to expand...
Click to collapse
The best way is to use brut.all's apktool(http://code.google.com/p/android-apktool/) it does all the difficult work for you.
^ Greatest tool ever.

Decad3nce said:
The best way is to use brut.all's apktool(http://code.google.com/p/android-apktool/) it does all the difficult work for you.
^ Greatest tool ever.
Click to expand...
Click to collapse
Hey did u add the axmlprinter.bat file I posted on ur resource page

Papa Smurf151 said:
Hey did u add the axmlprinter.bat file I posted on ur resource page
Click to expand...
Click to collapse
Yep, with your description

Decad3nce said:
Yep, with your description
Click to expand...
Click to collapse
Woohoo I should tag the link and put it in my sig. That is if I still have room. Lol

XML files are compiled to binary form when app is built. This is why you can't open them.
AFAIK my apktool is only one tool, which decompiles XMLs fully and gives you possibility to compile them back. There is also AXMLPrinter tool, but it doesn't decompile all data and it's used mainly to help with hex editing, cause it can't compile file back.
smali/baksmali doesn't have anything to do with XML files.

Brut.all said:
XML files are compiled to binary form when app is built. This is why you can't open them.
AFAIK my apktool is only one tool, which decompiles XMLs fully and gives you possibility to compile them back. There is also AXMLPrinter tool, but it doesn't decompile all data and it's used mainly to help with hex editing, cause it can't compile file back.
smali/baksmali doesn't have anything to do with XML files.
Click to expand...
Click to collapse
I effing love your apktool. Use it daily!

Papa Smurf151 said:
Woohoo I should tag the link and put it in my sig. That is if I still have room. Lol
Click to expand...
Click to collapse
Go ahead man...

Brut.all said:
XML files are compiled to binary form when app is built. This is why you can't open them.
AFAIK my apktool is only one tool, which decompiles XMLs fully and gives you possibility to compile them back. There is also AXMLPrinter tool, but it doesn't decompile all data and it's used mainly to help with hex editing, cause it can't compile file back.
smali/baksmali doesn't have anything to do with XML files.
Click to expand...
Click to collapse
Dude I love ur apktool. Did u see the axmlprinter.bat file that dec put in his resources page. It works great with axmlprinter2 file. It takes away all the typing in the cmd and does it for u and shows u the readable file in its own small window. A suggestion...maybe adding that to ur apktool would be a great addon

Papa Smurf151 said:
Dude I love ur apktool. Did u see the axmlprinter.bat file that dec put in his resources page. It works great with axmlprinter2 file. It takes away all the typing in the cmd and does it for u and shows u the readable file in its own small window. A suggestion...maybe adding that to ur apktool would be a great addon
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/issues/detail?id=70

Brut.all said:
http://code.google.com/p/android-apktool/issues/detail?id=70
Click to expand...
Click to collapse
I understand ur view. I didn't make the bat file just thought it was useful and u might like it. BTW words on post instead of just a link really helps in communicating around here. Just sayin

Papa Smurf151 said:
BTW words on post instead of just a link really helps in communicating around here. Just sayin
Click to expand...
Click to collapse
Yeah, I know, sorry for that.
I just like to explain my point of view very precisely to avoid misunderstanding. And I ain't English speaker, so it takes me some time to describe it. I could do just two things to not waste time on repeating myself: give a link or give a link and place a quotation beneath it ;-) Maybe second option is better

Brut.all said:
Yeah, I know, sorry for that.
I just like to explain my point of view very precisely to avoid misunderstanding. And I ain't English speaker, so it takes me some time to describe it. I could do just two things to not waste time on repeating myself: give a link or give a link and place a quotation beneath it ;-) Maybe second option is better
Click to expand...
Click to collapse
Yeah second option would be better but I wasn't bashin bro u do great work

You can also view and edit binary xml's in root explorer, as long as they haven't been hex edited. Skews up the formatting some how.
Sent from my HERO200 using XDA App

Related

[SOLVED #1]sign update. [Q #2] What keys do I need to sign an update in ubuntu??

I am just wondering how I would go about resigning an update.zip to flash.SOLVED
Q 2 Where do I find the correct test keys to sign a update.zip/apk in ubuntu?
i always use Stericson method in this thread http://forum.xda-developers.com/showthread.php?t=473580
Check this thread out on how to sign apks and zip file ^_^
http://forum.xda-developers.com/showpost.php?p=3175518&postcount=2
Tools are provided in the link as well I believe.
anddep said:
i always use Stericson method in this thread http://forum.xda-developers.com/showthread.php?t=473580
Click to expand...
Click to collapse
NeoBlade Check this thread out on how to sign apks and zip file ^_^
http://forum.xda-developers.com/show...18&postcount=2
Tools are provided in the link as well I believe.
Click to expand...
Click to collapse
Thank you.
NeoBlade said:
Check this thread out on how to sign apks and zip file ^_^
http://forum.xda-developers.com/showpost.php?p=3175518&postcount=2
Tools are provided in the link as well I believe.
Click to expand...
Click to collapse
lol thats the real deal post! i was searching for that one earlier, but xda was slow
One more [Q]:
If I have an update.zip that's ready to flash, and I'm open it with winrar and override the original system/fonts files with the fonts I need - do I need to resign it before I'm flashing it? or I can flash the same update.zip after I'm saving it?
thanks!
@avimak
You must resign Must resign after ANY changes.
alritewhadeva said:
@avimak
You must resign Must resign after ANY changes.
Click to expand...
Click to collapse
thanks dude
avimak said:
thanks dude
Click to expand...
Click to collapse
Sure thing buddy
Must resign everytime you edit a zip file to flash
Bringin my new question to the front page.

[Q] Editting SetupWizard.apk

I seem to be addicting to wiping and flashing daily....
I was wondering if there was a way to edit the setup wizard to already have my gmail login information? Sort of like modifying build.prop to have 140 dpi before flashing....Any help would be much appreciated. Thanks.
Sure...just give me your gmail address and your password >:]
kyouko said:
Sure...just give me your gmail address and your password >:]
Click to expand...
Click to collapse
haha looks like I'll be going through xml's. Thanks anyway!
dburg84 said:
haha looks like I'll be going through xml's. Thanks anyway!
Click to expand...
Click to collapse
I would imagine that the info is stored somewhere in /data/data/ so you could include the folder in a flashable zip - which isn't too hard to make
Otherwise for making it completely included in the apk, as if its a cookie on a website where your info will automatically show up:
Decompile the apk and check out the folder /res/values/ and look at those .xml's Specifically the strings.xml file.... I think.
If nothing's in any of the .xmls or /data/data you should check out the smali data from the apk. Which most likely will probably be a big pain in the ass because there's usually quite a few smali files in apks and they generally have a fairly large number of strings in each one.
Hope this helps
kyouko said:
I would imagine that the info is stored somewhere in /data/data/ so you could include the folder in a flashable zip - which isn't too hard to make
Otherwise for making it completely included in the apk, as if its a cookie on a website where your info will automatically show up:
Decompile the apk and check out the folder /res/values/ and look at those .xml's Specifically the strings.xml file.... I think.
If nothing's in any of the .xmls or /data/data you should check out the smali data from the apk. Which most likely will probably be a big pain in the ass because there's usually quite a few smali files in apks and they generally have a fairly large number of strings in each one.
Hope this helps
Click to expand...
Click to collapse
Thank you very much. I will look into it. Pretty sure I found it in strings.xml Will let you know.
accidental post
dburg84 said:
Thank you very much. I will look into it. Pretty sure I found it in strings.xml Will let you know.
Click to expand...
Click to collapse
did you ever get that working?

[Q] Winrar question

When i didnt have winrar i typically unziped the .zip, delete the certificates, edit whatever i needed too, and then i had to send it too a compressed(zip) folder, then use a zip and or apk signer to get it signed and flashable.
My question is can i just open up a zip with winrar, edit whatever and just exit and flash.
or do i have to resign anything or delete the certificates. like i did before.
davidevan said:
When i didnt have winrar i typically unziped the .zip, delete the certificates, edit whatever i needed too, and then i had to send it too a compressed(zip) folder, then use a zip and or apk signer to get it signed and flashable.
My question is can i just open up a zip with winrar, edit whatever and just exit and flash.
or do i have to resign anything or delete the certificates. like i did before.
Click to expand...
Click to collapse
With Winrar, you can edit the files before exiting.
You do not have to delete the files' certificates.
waffle_ said:
With Winrar, you can edit the files before exiting.
You do not have to delete the files' certificates.
Click to expand...
Click to collapse
And i dont have to resign it eiter or do i still have to resign after im editing?
davidevan said:
And i dont have to resign it eiter or do i still have to resign after im editing?
Click to expand...
Click to collapse
Nope, just edit and exit.
guitardoc64 said:
Nope, just edit and exit.
Click to expand...
Click to collapse
Thanks too both! and God bless, waffle, with the baby!
davidevan said:
Thanks too both! and God bless, waffle, with the baby!
Click to expand...
Click to collapse
Haha thank you sir.
waffle_ said:
Haha thank you sir.
Click to expand...
Click to collapse
do yu support him/her only through deving, or what other side job do you doo
davidevan said:
do yu support him/her only through deving, or what other side job do you doo
Click to expand...
Click to collapse
I don't development any Android roms (...yet.)
I am currently unemployed(sadly, it's hard to get a job, I've been looking for over five months..).
For side money though, I do web design and application programming. I'm looking into the Android Software to start developing some stuff though. Maybe it'll go somewhere.
waffle_ said:
I don't development any Android roms (...yet.)
I am currently unemployed(sadly, it's hard to get a job, I've been looking for over five months..).
For side money though, I do web design and application programming. I'm looking into the Android Software to start developing some stuff though. Maybe it'll go somewhere.
Click to expand...
Click to collapse
Best of luck n god bless
davidevan said:
Best of luck n god bless
Click to expand...
Click to collapse
Thank you kindly. If you have any questions with your phone, PM me .
Sent from my HTC Hero CDMA using XDA App

[Req] How to change app name?

I recently downloaded asphalt overdrive and found the name too long and odd looking in my app drawer. I wish it would be better if it was down to oneword such as "Asphalt" or "Overdrive" only. Can someone tell me how to change the app name itself. It will be much helpful if someone modifies it for me
saif1012 said:
I recently downloaded asphalt overdrive and found the name too long and odd looking in my app drawer. I wish it would be better if it was down to oneword such as "Asphalt" or "Overdrive" only. Can someone tell me how to change the app name itself. It will be much helpful if someone modifies it for me
Click to expand...
Click to collapse
I can try, send me a picture and the name that appears the apk by PM! :laugh:
link and pic
The link to the app 's apk. www.mediafire.com/?1928mxjfvjcs6ph Please make the app's name as Overdrive instead of Asphalt overdrive
saif1012 said:
The link to the app 's apk. www.mediafire.com/?1928mxjfvjcs6ph Please make the app's name as Overdrive instead of Asphalt overdrive
Click to expand...
Click to collapse
I do not quite understand what you mean, I asked one fotot to better understand me ... even more so I tried to download the file from the link below and it will have two apks that modifquei differently, see one after the other. I hope the right.
Link > https://www.sendspace.com/file/b6h1e9
In Nova launcher you just need to hold on an icon, slide it to Edit and just delete or rewrite name. that simple.
thanks a ton!
MarĂ­lia de Oliveira said:
I do not quite understand what you mean, I asked one fotot to better understand me ... even more so I tried to download the file from the link below and it will have two apks that modifquei differently, see one after the other. I hope the right.
Link > https://www.sendspace.com/file/b6h1e9
Click to expand...
Click to collapse
Just what I wanted! can u tell me how u did it?
Thanks so much!
saif1012 said:
Just what I wanted! can u tell me how u did it?
Thanks so much!
Click to expand...
Click to collapse
if u know to decompile or recompile apk files ....
u need to decompile the files
once done navigate to res/values/strings.xml and find this line
Code:
<string name="app_name">[COLOR="Red"]just type what ever name u want here[/COLOR]</string>
save it and recompile
sandy7 said:
if u know to decompile or recompile apk files ....
u need to decompile the files
once done navigate to res/values/strings.xml and find this line
Code:
<string name="app_name">[COLOR="Red"]just type what ever name u want here[/COLOR]</string>
save it and recompile
Click to expand...
Click to collapse
Great @sandy7 right and finally sign the apk
Please post questions in the Q&A section
Thread moved

Please Help Me Change The Product I.D.

Hey! All cool dev over there i have been able to create a working xap to deploy for WHATSAPP
but i am working on to install multiple WhatsApp on one device.
so my request to the great developers to kindly help me out in changing the product id of the attached AppxManifest and WMAppManifest file. I have enclosed the same in the zip.
i will me thankfull to u
and ya off course its a part of development and hacking i suppose.
Dont know nothing about this. Sorry pal.
It's ok. I am still waiting for it! May be someone can help ?
edit it with notepad or something idk
(not so sure if it will work)
Super_Vegito said:
edit it with notepad or something idk
(not so sure if it will work)
Click to expand...
Click to collapse
Editing with Notepad or any other text editor won't work for its original file is regenerated in the rebuild process and btw I have already tried all sort of text editors
Danish18 said:
Editing with Notepad or any other text editor won't work for its original file is regenerated in the rebuild process and btw I have already tried all sort of text editors
Click to expand...
Click to collapse
Try this file and say .
irshad2809 said:
Try this file and say .
Click to expand...
Click to collapse
Irshad bhai I can't get the file that u uploaded. You can change the product I.D. on vissual studio and I promise to provide 2 WhatsApp xaps for sideloading

Categories

Resources