本文博客地址:http://blog.csdn.net/qq1084283172/article/details/71250622
一、Apktool的下载和安装
Apktool是Android逆向分析的基础工具,在进行Android APK的smali动态调试的时候会使用到它。有关Apktool工具的下载、安装、使用以及源码的编译可以参考Apktool工具的官网:https://ibotpeaches.github.io/Apktool/,Apktool工具的官网将Apktool工具的使用和版本更新的说明都讲的很清楚了,后面很多的操作都根据Apktool工具官网的帮助说明来进行实践。
Apktool工具源码下载地址:https://github.com/iBotPeaches/Apktool。
Apktool工具的下载和安装,可以参考Apktool工具官网的安装说明,具体的网址为:https://ibotpeaches.github.io/Apktool/install/,Apktool工具在 Windows、Linux、MAC OS X平台的安装步骤如下:
Install Instructions
Quick Check
Is at least Java 1.7 installed?Does executing java -version on command line / command prompt return 1.7 or greater?If not, please install Java 7+ and make it the default.
Windows:
Download Windows wrapper script (Right click, Save Link As apktool.bat)Download apktool-2 (find newest here)Rename downloaded jar to apktool.jarMove both files (apktool.jar & apktool.bat) to your Windows directory (Usually C://Windows)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.Try running apktool via command prompt Linux:
Download Linux wrapper script (Right click, Save Link As apktool)Download apktool-2 (find newest here)Make sure you have the 32bit libraries (ia32-libs) downloaded and installed by your linux package manager, if you are on a 64bit unix system.(This helps provide support for the 32bit native binary aapt, which is required by apktool)Rename downloaded jar to apktool.jarMove both files (apktool.jar & apktool) to /usr/local/bin (root needed)Make sure both files are executable (chmod +x)Try running apktool via cli Mac OS X:
Download Mac wrapper script (Right click, Save Link As apktool)Download apktool-2 (find newest here)Rename downloaded jar to apktool.jarMove both files (apktool.jar & apktool) to /usr/local/bin (root needed)Make sure both files are executable (chmod +x)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.
Windows平台下Apktool工具安装步骤的整理:
1.从网址:https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/windows/apktool.bat 获取文件内容创建脚本文件 apktool.bat ,脚本文件apktool.bat 的内容如下:
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=