2012-07-21 108 views

回答

33

是的,你可以提取全部采用apktool

步骤的资源文件 -

1.) Download files from above links and extract them in a folder. 
2.) Open cmd -> run 
3.) Run command as 
    apktool.bat d source.apk destination_path 

OR

1.) Put apktool.jar and test.apk in same folder 
2.) Go to the jar and .apk path by command line 
3.) And fire the command java -jar apktool.jar d test.apk 
4.) It will generate a folder with the name "test" in the same folder. 
+3

也是可读的清单。 :) – 2012-07-21 10:04:19

+0

好的工作bro..Cheers..One更多的问题..:))...是否有可能提取我们的Android项目的src文件夹..是否有任何工具可以做到这一点。?? – 2012-07-21 10:13:38

+0

哦!是的,你也可以[提取src文件夹](http://stackoverflow.com/a/6081365/726863),但它不会完全可读,但你几乎可以知道代码是关于什么的:) – 2012-07-21 10:17:43

6

下载(如果需要的话还可以下载的依赖)android-apktool定义库或类/代码文件只是字符串,提取所有在同一个目录,然后运行apktool d application.apk

2

在你已经下载了它的目录下载apktool

  1. 认沽apk文件(假设test.apk)。
  2. 现在键入命令 'apktool d test.apk'
  3. 现在浏览到 “测试\水库\值”

你会得到你的strings.xml文件存在。

2

apktool之外的另一选项是aapt,但它不会以原始XML格式重现字符串。

$ aapt dump --values resources app.apk | 
    grep '^ *resource.*:string/' --after-context=1 

    resource 0x7f04011a com.example:string/hello: t=0x03 d=0x0000039e (s=0x0008 r=0x00) 
    (string8) "Hello" 
    ...