Linux/Ubuntu系统下反编译apk

Linux/Ubuntu系统下反编译apk

enjarify 反编译apk,jadx 查看jar源码,apktool查看资源文件

一、enjarify 反编译apk

$ git clone https://github.com/google/enjarify.git
$ cd enjarify
$ ./enjarify.sh yourapp.apk

二、jadx 查看jar源码

1.build jadx
$ git clone https://github.com/skylot/jadx.git
$ cd jadx
$ ./gradlew dist

出现 What went wrong:
Execution failed for task ‘:jadx-plugins:jadx-plugins-api:compileJava’.

Could not find tools.jar. Please check that /usr/lib/jvm/java-8-openjdk-amd64 contains a valid JDK installation. 出现是JDK错误
直接命令安装即可

    sudo apt-get install openjdk-8-jdk 
2.run jadx
$ cd build/jadx/
$ bin/jadx-gui lib/yourlib.jar

在这里插入图片描述

三、apktool查看资源文件

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

1 下载Apktool
2 安装Apktool
3 查看apk资源文件

$ apktool d weixin.apk 
I: Using Apktool 2.3.0 on weixin.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (/home/username/.local/share/apktool/framework), using /tmp instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: /tmp/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Baksmaling classes5.dex...
I: Baksmaling classes6.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值