Android APK Anti-compilation

Source: Internet
Author: User

One. Anti-compilation apk get Java source code

tool Download : Need to Dex2jar and Jd-gui these 2 tools

Dex2jar:http://code.google.com/p/dex2jar/downloads/list
Jd-gui:
Windows Edition Jd-gui:http://java.decompiler.free.fr/?q=jdgui
Linux version jd-gui:http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz

Steps:

1. First locate the Classes.dex in the Android software installation package
Rename the. apk file to. zip, then unzip it to get the Classes.dex file, which is the Java file compiled and then packaged by the DX tool, so now we use the above mentioned 2 tools to export Java source files in reverse direction

2. Copy the Classes.dex to the directory where the Dex2jar.bat resides.
Navigate to the directory where Dex2jar.bat is located in command-line mode, run Dex2jar.bat classes.dex, generate Classes.dex.dex2jar.jar

3. Run the Jd-gui tool (it is green without installation)
Open the jar file above to see the source code

---------------------------------------------------------------------------------

---------------------------------------------------------------------------------

Two. decompile the APK generator source code and pictures, XML configuration, language resources and other files.

Reprinted from: http://blog.sina.com.cn/s/blog_5752764e0100kv34.html

Tool Download:

Downloaded in http://code.google.com/p/android-apktool/, apktool-1.0.0.tar.bz2 and apktool-install-windows-2.1_ R01-1.zip two packs are down.

Steps:

1. Unzip the downloaded two packages, apktool-install-windows-2.1_r01-1.zip the resulting package has Aapt.exe and Apktool.bat. (Note to copy a. jar file after apktool-1.0.0.tar.bz2 decompression)

2. Open the Command Window (Start > Run, input cmd, enter. ) into the Apktool.bat folder.

Input:

Apktool d c:\***.apk c:\*** folder

(Command-line explanation: Apktool D file output folder to decompile)

Special Note: The files you want to decompile must be placed in the root directory of the C drive,

3. Open the c:\*** folder to get all the resources of our college.

Three. RePack the anti-compilation files into apk

Very simple, just enter:

Apktood B c:*** folder (you compiled the folder)


Other great article articles

 Android Learning Note (38) using ProgressDialog to create a skin feed dialog box
Large Web site architecture design-SOLR
Android Learning Note (39) Message tip Use TOAST to hint information lightly
Android Learning Note (32) grid view (GridView) and graphics switcher (Imageswi ...
Android Learning Note (31) Expandable List Component (Expandablelistview)
more about Android development articles

Android APK Anti-compilation

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.