Android APK Anti-compilation

Source: Internet
Author: User

The preface has to say that recent contact with the technology are unfamiliar to me in the field, I myself also in the process of the accumulation of groping side.
The tool uses two anti-compilation tools: Dex2jar and Jd-gui, as follows:
Dex2jar:https://code.google.com/p/dex2jar/downloads/list
jd-gui:http://jd.benow.ca/(download Linux version)

APK anti-compilation gets Java source code 1. Unzip the apk you need to decompile
Unzip test.apk-d/tmp/test/

2. Restore the Dex file to a. jar file
Dex2jar-0.0.9.15/d2j-dex2jar.sh/tmp/test/classes.dex

3. Jd-gui reading. jar files
The main is decompression Jd-gui, because this file decompression does not automatically create folders, so you need to pre-prepare the Decompression folder


Then, you can view the previously generated jar file by Jd-gui
./jd-gui/tmp/issue/classes-dex2jar.jar

Effect


With privacy issues, some package names and class names are covered, but you can see that the APK was successfully deserialized by us.
Apktool Anti-compilation apkDex2jar and Jd-gui can only view the APK source code, but unable to view the resource profile, want to see the APK resource profile need to use the Apktool tool.。
Apktool is as follows, because I am in the Linux environment, so only need to download two Linux-related ZIP files.
Https://code.google.com/p/android-apktool/downloads/list

Unzip apktool1.5.2.tar.bz2 and apktool-install-linux-r05-ibot.tar.bz2 separately, and copy Apktool.jar from the directory apktool1.5.2 to Apktool-install-linux-r0 The 5-ibot directory.
To decompile the execution command:
./apktool d/tmp/test.apk


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.