apktoolgit
- 下載保存文件名爲 apktool
- 重命名apktool-xxx.jar 爲apktool.jar
- 拷貝 (apktool.jar & apktool) 倒 /usr/local/bin
cd /usr/local/bin
sudo chmod +x apktool
sudo chmod +x apktool.jar
dex2jargithub
將dex2jar-2.0.zip 解壓而後拷貝其中的全部sh文件和lib倒/usr/local/bin
sudo chmod +x apktool
macos
jd-guiapp
tar xf jd-gui-osx-1.4.0.tar
將JD-GUI.app文件拷到應用程序中
***工具
apktool d -s XXX.apk
ui
能夠獲得
.net
res文件夾就是咱們Android中的res文件夾code
d2j-dex2jar.sh classes.dex
orm
獲得classes-dex2jar.jar 文件
其中apktool 有以下選項咱們在decode的時候不添加-s選項能夠直接解壓出smail文件,咱們也能夠直接用d2j的工具將smail文件轉化爲java文件,這也是一個反編譯的思路
usage: apktool
-advance,--advanced prints advance information.
-version,--version prints the version then exits
usage: apktool if|install-framework [options] <framework.apk>
-p,--frame-pathStores framework files into .
-t,--tagTag frameworks using .
usage: apktool d[ecode] [options]
-f,--force Force delete destination directory.
-o,--outputThe name of folder that gets written. Default is apk.out
-p,--frame-pathUses framework files located in .
-r,--no-res Do not decode resources.
-s,--no-src Do not decode sources.
-t,--frame-tagUses framework files tagged by .
usage: apktool b[uild] [options]
-f,--force-all Skip changes detection and build all files.
-o,--outputThe name of apk that gets written. Default is dist/name.apk
-p,--frame-pathUses framework files located in .