主角登場(chǎng)-安裝
jadx軟件 form github開源庫:https://github.com/skylot/jadx
我們按照開源庫中指示打開Mac終端操作命令安裝jadx: brew install jadx
期間可能會(huì)有如下安裝問題,我們一步步來解決:
1、Mac終端出現(xiàn):Error:brew command not found問題解決方法
錯(cuò)誤提示:zsh: command not found: brew
解決方法:mac 安裝homebrew,
用以下命令安裝熊户,序列號(hào)選擇中科大(1)的
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
一步步按著來就成!<谩刽脖!
2腕窥、Mac終端出現(xiàn):Error: Your CLT does not support macOS 11.0. 1.00
最近系統(tǒng)升級(jí)到macOS Big Sur(11.0.1)之后怒坯,系統(tǒng)報(bào)告如下錯(cuò)誤:
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
這一步時(shí)間比較長(zhǎng)炫狱,之后重新brew install jadx所有問題如期解決!L拊场视译!
運(yùn)行jadx完成反編譯
到這里我們的jadx反編譯軟件安裝操作就完成了,接下來運(yùn)行試試归敬,怎么運(yùn)行酷含?
Command + space空格鍵,搜索jadx打開就OK了弄慰,打開后我們選擇要反編譯的apk文件
之后就出現(xiàn)了如下界面:
能看到apk的源代碼,表明反編譯完成蝶锋!以后copy代碼就方便多了陆爽,哈哈哈~
另一種安裝實(shí)現(xiàn)方式:
- mac環(huán)境中,下載官方git項(xiàng)目扳缕,切到j(luò)adx下慌闭,執(zhí)行g(shù)radlew腳本别威,安裝jadx-gui。
// java-jdk-8需要做如下操作驴剔,執(zhí)行jadx包下的gradlew腳本
git clone https://github.com/skylot/jadx.git
cd jadx
./gradlew dist
出現(xiàn)BUILD SUCCESSFUL表明安裝成功省古,在搜索框中打開jadx或者jadx-gui即可選擇apk進(jìn)行反編譯了~
Tips
如果你的mac系統(tǒng)版本是12,可能會(huì)在方式1的時(shí)候遇到下面的問題:
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.