简体   繁体   中英

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.

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.

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 (ie 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=

不确定我是否理解您的问题,但APK本质上是一个压缩文件,您可以使用任何解压缩工具来打开它并阅读内容。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM