Mac version Anti-compilation apk get resource file and source code

Source: Internet
Author: User

preparatory work
    • Download the anti-compilation tool Apktool, Dex2jar
    • Jar View tool Jd-gui for Mac
: http://download.csdn.net/detail/linsen618/8668209
1. Decompile The resource file
    • Open the terminal CD to the directory that holds the Apktool (you can use LS to view the folders in the current directory, and then keep looking for CDs to APKTOOL)


    • Input chmod +x apktool modify Apktool to executable
    • Enter ./apktool d xx.apk to perform the anti-compilation operation



2. Decompile the source code
    • Change the apk file suffix name directly to. zip and unzip. Get the Classes.dex file, which is the Java source code is compiled and then packaged with the DX tool.
    • Copy the Classes.dex file to the same folder as the Dex2jar
    • Terminal CD to Dex2jar directory, run sh dex2jar.sh classes.dex
    • Generate Classes_dex2jar.jar
    • You can see the source code by opening it with JD GUI




    • Click JD-GUI-0.3.5.OSX.I686.DMG to open JD GUI
    • Drag Classes_dex2jar.jar to JD GUI to view source code

Mac version Anti-compilation apk get resource file and source code

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.