本文主要是介绍重新编译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:
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/
这篇关于重新编译ApkTool的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!