Jyosna
Jyosna

Reputation: 4446

android how to get xml files from an apk

I am trying read all xml files from apk but i unable to do that. I am using apktool for that but it still unreadable.

How can i read that, please any one give me all the step by step process.

Upvotes: 2

Views: 6149

Answers (4)

arslan haktic
arslan haktic

Reputation: 4538

Getting xml files from apk

Download apktool and apktool install from the link and extract both files and place it in the same folder (for example "demoxmlfolder"). Place the .apk file in same folder (i.e demoxmlfolder) Now open command prompt and goto the directory where apktool is stored (here "demoxmlfolder") and type the command "apktool if framework-res.apk" Above command should result in "Framework installed ..." Now in command prompt type the command "apktool d filename.apk" (where filename is name of apk file) This will generate a folder of name filename in current directory (here demoxmlfolder) where all xml files would be stored in res\layout folder. Links : https://code.google.com/p/android-apktool/downloads/detail?name=apktool-install-windows-r04-brut1.tar.bz2 and https://code.google.com/p/android-apktool/downloads/detail?name=apktool1.4.1.tar.bz2&can=2&q=

Upvotes: 0

Force
Force

Reputation: 6382

You can do this with apktool.

Usage: java -jar apktool.jar d yourapk.apk

Also have a look at this script: http://forum.xda-developers.com/showthread.php?t=695701 It's able of batch decompiling, which makes it really easy to have a closer look at apk files.

Upvotes: 5

MKJParekh
MKJParekh

Reputation: 34301

I think this tool can be useful to you, android-apktool,but as I have never used this You will have to try it yourself.

And to know the Java class files use this dex2jar

If you find any difficluty in using these,please try search on Internet.

Upvotes: 0

Gu1234
Gu1234

Reputation: 3506

Not sure I understood your question but an APK is basically a zipped file, you can use any unzip tool to open it and read the contents.

Upvotes: 0

Related Questions