重新编译ApkTool

ApkTool是android反编译利器,有时候一些错误,不知道哪里出问题了,最好有一份源码随时修改。下面是重新编译步骤,都是英文的,很简单,就不用我那蹩脚的英语献丑了。

注意是2.0版本。

Android-apktool 2.00 promises a lot of cool things: Smali/Backsmali 2.0, Smali debugging (last time we saw this great feature in android-apktool 1.4.1, it broke in 1.4.2 and later releases, and now it’s back!), numerous bugfixes etc. The only problem is the version 2.00 is not released at the moment. It’s still in beta, no compiled JARs are available on the download page:

no-download

So this post is for reverse engineers who want to build android-apktool of version 2.00 (beta) from sources and play with all that cool stuff right now :) Here is a detailed 1-2-3 steps instruction for Windows (it’s based on the wiki page, I just added some screenshots and notes).

Step 1. Check prerequisites:

  • Java 1.7 installed
  • aapt.exe in PATH

Step 2. Download ZIP archive with the latest sources and unzip it to any local folder, e.g. tod:\~temp\android-apktool\.

By the way, if you have no aapt.exe on your PC, you can find it in d:\~temp\android-apktool\brut.apktool\apktool-lib\src\main\resources\prebuilt\aapt\windows\ and add it to your PATH after the second step.

Step 3. Open CMD console, go to d:\~temp\android-apktool\, and run

gradlew.bat build fatJar

Building is started now:

After 3-5 minutes, you should see:

Well, now just go to d:\~temp\android-apktool\brut.apktool\apktool-cli\build\libs\ and find the.jar file there. Check if it is the JAR you need:

Yes, it was so easy :)

源码地址是: https://github.com/iBotPeaches/Apktool

转:http://codedigging.com/2014/01/how-to-build-android-apktool-2-00-beta-from-sources/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值