建设银行大丰支行网站系统之家官网
文章目录
- 第一种方式: brew install
 - apktool 使用说明
 - dex2jar 使用说明
 
- 第二种方式: 下载安装包
 - apktool 使用说明 (根据官方介绍没有操作成功,后续成功再更新这里)
 - dex2jar 使用说明
 
- 安装 JD-GUI 查看jar包中的class文件
 - JD-GUI 使用说明
 
第一种方式: brew install
安装过程可能很慢,耐心等待即可,如果失败的话多次重试, 实在下载不了就考虑第二种方式
brew install apktool
brew install dex2jar
 
apktool 使用说明
cd Desktop
apktool d /Users/gerry.liang/Desktop/SpotifyAAM.apk
 

dex2jar 使用说明
- 直接把.apk后缀改为.zip 并解压得到 classes.dex

 cd Desktopd2j-dex2jar /Users/gerry.liang/Desktop/SpotifyAAM/classes.dex

第二种方式: 下载安装包
https://apktool.org/docs/install/ 官方介绍&下载地址
 
apktool 使用说明 (根据官方介绍没有操作成功,后续成功再更新这里)
- Download the Mac wrapper script. (Right click, Save Link As apktool)
 - Download the latest version of Apktool.
 - Rename the downloaded jar to apktool.jar.
 - Move both apktool.jar and apktool to /usr/local/bin. (root needed)
 - Make sure both files are executable. (chmod +x)
 - Try running apktool via CLI.
 
https://github.com/pxb1988/dex2jar/releases/ 官方Github介绍&下载地址
 ![[图片]](https://img-blog.csdnimg.cn/direct/c5a909fb22534e2eae25cf5cf2cc7b1a.png)
dex2jar 使用说明
-  
直接把.apk后缀改为.zip 并解压得到 classes.dex 和 classes2.dex

 -  
复制classes.dex 和 classes2.dex 到 dex2jar的目录下

 -  
执行 dex2jar.sh 脚本生成 jar 文件
 -  
cd /Users/gerry.liang/Downloads/dex-tools-v2.4 -  
sh d2j-dex2jar.sh classes.dex

 
安装 JD-GUI 查看jar包中的class文件
这一步可选,你也可以直接用Android Studio打开jar包查看
https://github.com/java-decompiler/jd-gui/releases 官方Github介绍&下载地址
 ![[图片]](https://img-blog.csdnimg.cn/direct/5a609dc7767144fe9bd51a7c2a51aff0.png)
JD-GUI 使用说明

 
 这样就可以查看代码了。
