Android Anti-compilation apk file

Source: Internet
Author: User

I want to see the APK source code how to do? Then you need to use the APK Anti-compilation tool.

First, the idea of anti-compilation:

1) apk file is actually a compressed package. Change the file suffix. apk to. zip to open with the unzip software. You can see several files by opening a compressed package:

To see the source code, only need to pay attention to classes.dex on the line, this file is the source code APK.

2) Classes.dex is a source file that is packaged by the Android SDK and cannot be opened directly. Then you need a tool to open classes.dex.

3) After opening the source code is some. class files, learned Java all know, these are bytecode files, but also cannot be opened directly to see. Java source code. This also requires a tool to decompile the. class file into a. java file.

The idea was followed by the introduction of tools and functions.

1) apktool--Open apk

2) dex2jar--converts the classes.dex into a. jar file, which is a bunch of. class files

3) jd-gui--Convert. class files to. java files that we can read

Serving:

Apktool

: http://ibotpeaches.github.io/Apktool/

Dex2jar

: Https://github.com/pxb1988/dex2jar

Jd-gui

: http://jd.benow.ca/

How to use it?

Look at the official documents, I don't say, don't be so lazy, just a few words.

Well, there's also a Chinese link here, but it's a bit outdated, because the tool has been updated

http://blog.csdn.net/vipzjyno1/article/details/21039349

Android Anti-compilation apk file

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.