MacOS X APK 最新版本 反編譯

MacOS X APK 最新版本 反編譯

文件準備

  • dex2jar官網(最新版本2.0Download)
  • apktool官網(最新版本Download)
  • jd-gui官網(最新版本下載)
    ***java

    環境準備

  • apktoolgit

    1. 下載保存文件名爲 apktool
    2. 重命名apktool-xxx.jar 爲apktool.jar
    3. 拷貝 (apktool.jar & apktool) 倒 /usr/local/bin
    4. cd /usr/local/bin
    5. sudo chmod +x apktool
    6. sudo chmod +x apktool.jar
  • dex2jargithub

    將dex2jar-2.0.zip 解壓而後拷貝其中的全部sh文件和lib倒/usr/local/bin
    sudo chmod +x apktoolmacos

  • jd-guiapp

    tar xf jd-gui-osx-1.4.0.tar
    將JD-GUI.app文件拷到應用程序中
    ***工具

    開始反編譯

    apktool d -s XXX.apkui

能夠獲得
以下目錄.png.net

  • res文件夾就是咱們Android中的res文件夾code

    d2j-dex2jar.sh classes.dexorm

獲得classes-dex2jar.jar 文件

  • 打開JD-GUI 將classes-dex2jar.jar 文件 丟到 gui中
    ***
    整個流程就完成了

其中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-path

Stores framework files into .
-t,--tag Tag frameworks using .
usage: apktool d[ecode] [options]
-f,--force Force delete destination directory.
-o,--output The name of folder that gets written. Default is apk.out
-p,--frame-path Uses framework files located in .
-r,--no-res Do not decode resources.
-s,--no-src Do not decode sources.
-t,--frame-tag Uses framework files tagged by .
usage: apktool b[uild] [options]
-f,--force-all Skip changes detection and build all files.
-o,--output The name of apk that gets written. Default is dist/name.apk
-p,--frame-path Uses framework files located in .
相關文章
相關標籤/搜索