dex2jar

如何把APK文件反编译.jar包

白昼怎懂夜的黑 提交于 2019-12-02 02:27:26
APK文件反编译.jar包步骤: 一.使用工具: 1.反编译工具: dex2jar-2.0 2.查看工具: jd-gui 下载地址:https://sourceforge.net/projects/dex2jar/ 二.反编译过程: 1.使用解压工具打开apk文件,如图: 2.将上图的标识文件classes.dex复制到dex2jar-2.0文件中,如图2 3.在dex2jar-2.0文件中打开终端输入: d2j-dex2jar.bat classes.dex 等待反编译介绍后会生成文件classes-dex2jar.jar, 4,然后用工具jd-gui查看classes-dex2jar.jar即是反编译后的java代码 来源: CSDN 作者: ccczhi 链接: https://blog.csdn.net/ccczhi/article/details/99969537

ubuntu下反编译android apk 获取xml文件资源文件和java文件

允我心安 提交于 2019-11-30 03:29:46
在开发学习的过程中,反编译成熟的apk能从中学到不少东西,在ubuntu反编译apk。 获取相应的配置文件和资源文件 已经java源代码文件,从中可以吸取有用的设计。 反编译apk 主要有三个工具 apktool :反编译获取xml文件 资源文件 dex2jar :把dex文件转换成jar文件 jd-gui : 把.class.jar文件转化为java文件 一. apktool 反编译获取xml文件 资源文件 apktool 需要下载的文件: apktool1.5.2.tar.bz2: https://android-apktool.googlecode.com/files/apktool1.5.2.tar.bz2 apktool-install-linux-r05-ibot.tar.bz2: https://android-apktool.googlecode.com/files/apktool-install-linux-r05-ibot.tar.bz2 解压下载的文件 tar -jxvf apktool1.5.2.tar.bz2 tar -jxvf apktool-install-linux-r05-ibot.tar.bz2 将文件拷贝到/bin目录下 sudo cp apktool1.5.2/apktool.jar apktool-install-linux-r05

Cannot use dex2jar on my mac: permission denied

核能气质少年 提交于 2019-11-30 02:37:20
I downloaded dex2jar and now trying to use it, but if I type 'sh d2j-dex2jar.sh' it shows the following message. d2j-dex2jar.sh: line 36: ./d2j_invoke.sh: Permission denied At first I thought that the permission was denied because the programme required the root permission, so I also tried adding 'sudo' to the command, and it did not work either. How should I solve this problem? You need to provide execute permissions to your sh script. To do that : sudo chmod +x d2j_invoke.sh Still If you find no luck use, chmod a+x *.sh 来源: https://stackoverflow.com/questions/30875382/cannot-use-dex2jar-on

Android 的 dex2jar 和 jd-gui 反编译 apk 源代码

旧巷老猫 提交于 2019-11-29 02:33:30
要得到 apk 中的源文件,可以这样: 1、把dex文件反编译为jar文件的工具。(dex2jar) http://code.google.com/p/dex2jar/downloads/list 2、把jar反编译为java的工具。(JD-GUI) http://java.decompiler.free.fr/?q=jdgui 反编译步骤 1、把 class.dex 拷贝到 dex2jar.bat 所在目录,直接拖动 class.dex 到 dex2jar.bat,生成 classes.dex.dex2jar.jar。 2、用 rar 解压出 jar 文件中的 class 文件,然后 用jad 或 DJ Java Decompiler 反编译工具将 .class 文件反编译成 .java 文件 3、运行 JD-GUI工具(绿色软件),打开上面的 jar 文件,在File下有个 Save JAR Source,它可以生成 src 源代码。 如何安装这两个工具: https://blog.csdn.net/katrinawj/article/details/80016315 来源: oschina 链接: https://my.oschina.net/u/2963604/blog/2875023

Cannot use dex2jar on my mac: permission denied

安稳与你 提交于 2019-11-28 23:33:52
问题 I downloaded dex2jar and now trying to use it, but if I type 'sh d2j-dex2jar.sh' it shows the following message. d2j-dex2jar.sh: line 36: ./d2j_invoke.sh: Permission denied At first I thought that the permission was denied because the programme required the root permission, so I also tried adding 'sudo' to the command, and it did not work either. How should I solve this problem? 回答1: You need to provide execute permissions to your sh script. To do that : sudo chmod +x d2j_invoke.sh 回答2: Still

using java decompiler jd-gui and getting // INTERNAL ERROR //

社会主义新天地 提交于 2019-11-28 20:52:24
问题 I decompiled an apk file using dex2jar and opened the resulting jar file in jd-gui. I can view almost all of the code nicely but one section - the constants - displays only // INTERNAL ERROR // and nothing else. Is there a way to retrieve the constants? 回答1: Anyone passing by this question should look at this instead: https://github.com/deathmarine/Luyten Using this instead of jd-gui, I was able to successully view all code which showed as INTERNAL ERROR on jd-gui. You can also try Jadx: