前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Android 反编译工具

Android 反编译工具

作者头像
iOSDevLog
发布2019-07-18 16:49:39
2.8K0
发布2019-07-18 16:49:39
举报
文章被收录于专栏:iOSDevLogiOSDevLog
  • Apktool A tool for reverse engineering Android apk files / Android apk 文件逆向工程工具
代码语言:javascript
复制
apktool d ~/path/to/apk_to_decompile.apk
  • dex2jar Tools to work with android .dex and java .class files / android .dex 和 java .class 文件的工具
代码语言:javascript
复制
sh d2j-dex2jar.sh -f ~/path/to/apk_to_decompile.apk
  • JD-GUI A standalone Java Decompiler GUI / 独立 Java 编译器 GUI
代码语言:javascript
复制
java -jar jd-gui-x.y.z.jar

Apktool

https://ibotpeaches.github.io/Apktool/install/

Quick Check

  1. Is at least Java 1.8 installed?
  2. Does executing java -version on command line / command prompt return 1.8 or greater?
  3. If not, please install Java 8+ and make it the default. (Java 7 will also work at this time)

Installation for Apktool

  • Windows:
    1. Download Windows wrapper script (Right click, Save Link As apktool.bat)
    2. Download apktool-2 (find newest here)
    3. Rename downloaded jar to apktool.jar
    4. Move both files (apktool.jar & apktool.bat) to your Windows directory (Usually C://Windows)
    5. If you do not have access to C://Windows, you may place the two files anywhere then add that directory to your Environment Variables System PATH variable.
    6. Try running apktool via command prompt
  • Linux:
    1. Download Linux wrapper script (Right click, Save Link As apktool)
    2. Download apktool-2 (find newest here)
    3. Rename downloaded jar to apktool.jar
    4. Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)
    5. Make sure both files are executable (chmod +x)
    6. Try running apktool via cli
  • Mac OS X:
    1. Download Mac wrapper script (Right click, Save Link As apktool)
    2. Download apktool-2 (find newest here)
    3. Rename downloaded jar to apktool.jar
    4. Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)
    5. Make sure both files are executable (chmod +x)
    6. Try running apktool via cli

Note - Wrapper scripts are not needed, but helpful so you don’t have to type java -jar apktool.jar over and over.

代码语言:javascript
复制
apktool ~/path/to/apk_to_decompile.apk

dex2jar

https://github.com/pxb1988/dex2jar/releases

Usage

代码语言:javascript
复制
sh d2j-dex2jar.sh -f ~/path/to/apk_to_decompile.apk

And the output file will be apk_to_decompile-dex2jar.jar.

JD-GUI

代码语言:javascript
复制
java -jar jd-gui-x.y.z.jar

image.png

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.07.16 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Apktool
    • Quick Check
      • Installation for Apktool
      • dex2jar
        • Usage
        • JD-GUI
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档