1.apktool Download Installation
To a 2.0 version of CSDN address: http://download.csdn.net/download/txj8612/7408775
Download no installation, direct decompression, get three files: Aapt.exe, Apktool.bat, Apktool.jar. In the directory where the three files are located open cmd, you can start compiling and deserializing.
2. Enter the Apktool command to view Help
Apktool v2.0.0-beta9-a tool for reengineering Android apk files
With Smali v2.0.3 and Baksmali v2.0.3
Copyright Ryszard Wi?niewski <[email protected]>
Updated by Connor Tumbleson <[email protected]>
Usage:apktool
-advance,--Advanced Prints advance information.
-version,--Version Prints the version then exits
Usage:apktool if|install-framework [Options] <framework.apk>
-P,--frame-path <dir> Stores framework files into <dir>.
-T,--tag <tag> tag frameworks using <tag>.
Usage:apktool D[ecode] [options] <file_apk>
-F,--Force force Delete destination directory.
-O,--output <dir> The name of folder that gets written. Default is Apk.ou
T
-P,--frame-path <dir> Uses framework files located in <dir>.
-R,--No-res do not decode resources.
-S,--no-src do not decode sources.
-T,--frame-tag <tag> Uses framework files tagged by <tag>.
Usage:apktool b[uild] [options] <app_path>
-F,--force-all Skip changes detection and build all files.
-O,--output <dir> The name of the apk that gets written. Default is Dist/name
. apk
-P,--frame-path <dir> Uses framework files located in <dir>.
For additional info, see:http://code.google.com/p/android-apktool/
For Smali/baksmali info, see:http://code.google.com/p/smali/
3. Anti-compile command D[ecode]
$apktool d abc.apk-o ABC
Decompile and output the abc.apk to folder ABC. Where the abc.apk and ABC folders are in the Apktool directory
4. Compile command B[uild]
Compile and decompile the APK using the Apktool tool