将.apk转换为dex版本时无法访问的代码

时间:2012-02-22 06:19:39

标签: android decompiling

在使用dex2jar convertor反编译apk时,它放在我的" C:"驱动器,然后将apk放在文件夹中并运行命令" dex2jar.bat abcd.apk",我无法获取某些apks的jar文件,而有可能获取某些jar文件我可以知道这个缺点。

C:\dex2jar-0.0.7.11-SNAPSHOT>dex2jar.bat abcd.apk
0 [main] INFO com.googlecode.dex2jar.v3.Main - version:0.0.7.11-SNAPSHOT
0 [main] INFO com.googlecode.dex2jar.v3.Main - dex2jar abcd -> abcd.jar
16 [main] ERROR com.googlecode.dex2jar.v3.Main - . while process file: [abcd]
16 [main] ERROR com.googlecode.dex2jar.v3.Main - .. ROOT cause:
java.io.FileNotFoundException: File 'abcd' does not exist
        at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:196)
        at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1359)
        at com.googlecode.dex2jar.v3.Main.readClasses(Main.java:143)
        at com.googlecode.dex2jar.v3.Main.doFile(Main.java:85)
        at com.googlecode.dex2jar.v3.Main.main(Main.java:113)
16 [main] INFO com.googlecode.dex2jar.v3.Main - dex2jar abcd -> abcd_dex2jar.jar
16 [main] ERROR com.googlecode.dex2jar.v3.Main - . while process file: [abcd]
16 [main] ERROR com.googlecode.dex2jar.v3.Main - .. ROOT cause:
java.io.FileNotFoundException: File 'abcd' does not exist
        at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:196)
        at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1359)
        at com.googlecode.dex2jar.v3.Main.readClasses(Main.java:143)
        at com.googlecode.dex2jar.v3.Main.doFile(Main.java:85)
        at com.googlecode.dex2jar.v3.Main.main(Main.java:113)
16 [main] INFO com.googlecode.dex2jar.v3.Main - dex2jar abcd.apk ->abcd-69_dex2jar.jar
16 [main] ERROR com.googlecode.dex2jar.v3.Main - . while process file: [Droid-69.apk]
16 [main] ERROR com.googlecode.dex2jar.v3.Main - .. ROOT cause:
java.io.FileNotFoundException: File 'Droid-69.apk' does not exist
        at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:196)
        at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1359)
        at com.googlecode.dex2jar.v3.Main.readClasses(Main.java:143)
        at com.googlecode.dex2jar.v3.Main.doFile(Main.java:85)
        at com.googlecode.dex2jar.v3.Main.main(Main.java:113)
16 [main] INFO com.googlecode.dex2jar.v3.Main - Done.

这是我在运行命令时在cmd中看到的

提前致谢

0 个答案:

没有答案