Android APK anti-compilation and code obfuscation

Source: Internet
Author: User

Two tools are required to decompile and view the source code: Dex2jar and Jdgui

Dex2jar (Google Code)

Jdgui (Google code), the latest version please see the official

The operation is simple and the steps are as follows:

1. Copy the APK (e.g. guessstock.apk) to the Dex2jar directory and execute it under cmd:

C:\users\raozf\desktop\dex2jar-0.0.9.15>d2j-dex2jar.bat guessstock.apk
Dex2jar guessstock.apk-Guessstock-dex2jar.jar

Will get Guessstock-dex2jar.jar


2. Jdgui open the file to view the source code.

See more: http://blog.csdn.net/ithomer/article/details/6727581

I use this method to decompile a number of popular apps, in addition to Sogou input method anti-compilation failure, Baidu map, QQ browser, mobile phone QQ, Youku, cool and so on have been successful.

Look at their code, some of the code to do obfuscation (Baidu map, mobile phone QQ), some seem to deal with the less clean (Youku, cool)-class name, method name, variable name and even token can be seen, of course, is not very important code. It's a bit strange anyway.

Android APK anti-compilation and code obfuscation

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.