无法从APK中提取XML文件

时间:2015-02-01 12:20:55

标签: java android xml apk

我正在尝试从APK文件中检索源代码。当我绑定从APK文件中提取XML文件时(我按照此答案[https://stackoverflow.com/a/16544681/3212998][1]中的步骤1-3获得),执行此命令后我得到一个空目录

$apktool d "appName".apk

以下追溯:

.2/bin/apktool -> ../libexec/apktool
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: AndroidManifest.xml
        at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:133)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:218)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
        at brut.apktool.Main.cmdDecode(Main.java:146)
        at brut.apktool.Main.main(Main.java:77)
Caused by: brut.directory.PathNotExist: AndroidManifest.xml
        at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
        at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:129)
        ... 5 more

0 个答案:

没有答案