Compile and decompile the APK using the Apktool tool

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.