主角登场-安装
jadx软件 form github开源库:https://github.com/skylot/jadx
我们按照开源库中指示打开Mac终端操作命令安装jadx: brew install jadx
期间可能会有如下安装问题,我们一步步来解决:
1、Mac终端出现:Error:brew command not found问题解决方法
错误提示:zsh: command not found: brew
解决方法:mac 安装homebrew,
用以下命令安装,序列号选择中科大(1)的
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
一步步按着来就成!!!
2、Mac终端出现:Error: Your CLT does not support macOS 11.0. 1.00
最近系统升级到macOS Big Sur(11.0.1)之后,系统报告如下错误:
Error: Your CLT does not support macOS 11.0. It is either outdated or was modified. Please update your CLT or delete it if no updates are available. Error: An exception occurred within a child process: SystemExit: exit
解决方案如下:
$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install
这一步时间比较长,之后重新brew install jadx所有问题如期解决!!!
运行jadx完成反编译
到这里我们的jadx反编译软件安装操作就完成了,接下来运行试试,怎么运行?
Command + space空格键,搜索jadx打开就OK了,打开后我们选择要反编译的apk文件
之后就出现了如下界面:
能看到apk的源代码,表明反编译完成!以后copy代码就方便多了,哈哈哈~
另一种安装实现方式:
- mac环境中,下载官方git项目,切到jadx下,执行gradlew脚本,安装jadx-gui。
// java-jdk-8需要做如下操作,执行jadx包下的gradlew脚本
git clone https://github.com/skylot/jadx.git
cd jadx
./gradlew dist
出现BUILD SUCCESSFUL表明安装成功,在搜索框中打开jadx或者jadx-gui即可选择apk进行反编译了~
Tips
如果你的mac系统版本是12,可能会在方式1的时候遇到下面的问题:
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.