Android APK Anti-compilation

Source: Internet
Author: User

Front-facing environment

Requires a Java environment, and if no Java environment is configured, the following links are configured by the tutorial:

Java Development Environment Construction: http://www.cnblogs.com/magisk/p/8496396.html

The tools you need

1, Apktool, function: decompile the APK required resource files and layout settings files, etc.

: https://ibotpeaches.github.io/Apktool/install/

2, Dex2jar, function: decompile the jar file, that is, the APK source program file byte code,

: http://code.google.com/p/dex2jar/downloads/list

3, Jdgui, function: View the Dex2jar anti-compiled jar file, use this tool to see the Java source code corresponding to the bytecode

: http://jd.benow.ca/

How to use

Use at the command line

Anti-compile command: Apktool d <apk path > < decompile file path >

Using this command, you can decompile the apk file under the <apk path > and generate an anti-compilation file under < decompile file path >.

If you do not specify an anti-compilation file path, the default is the current path.

Back to compile command: Apktool B < compile file >

Use this command to re-package the < compiled files > files to the apk file, compile the compilation file will be two more folders <build> and <dist>,apk files in the Dist.

Hope to have some help ~ ~

Android APK Anti-compilation

Related Article

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.