Android code obfuscation and decompilation, android obfuscation and Decompilation

Source: Internet
Author: User

Android code obfuscation and decompilation, android obfuscation and Decompilation
Overview:

If you are still a student or have not uploaded applications in the App Store, I am afraid you will not feel deeply about this. Java code obfuscation in enterprises is a step-by-step. From a security perspective, code obfuscation is very important to prevent malicious code tampering by malicious people with bad intentions. The following describes the code obfuscation and encryption signature processes for the Android project.


Steps:

1. Add the file proguard. cfg to the project directory.

2. Add proguard. cfg to the project. properties file of the project.


3. In the proguard. cfg file, add

-Ignorewarnings
-Libraryjars libs/android-support-v4.jar

As follows:


4. Right-click the project and choose Export> Android> Export Android Application> Next.


5. After step 1 is passed, the Keystore selection session box is displayed, and the following information is entered:


6. Fill in the following format in the next Key Creation session box:


7. Configure the name of your Apk file and Finish it.


If nothing happens, it will end happily and get the obfuscated Apk signature file you want.


Decompilation Verification:

For The Decompilation steps, refer:

Http://blog.csdn.net/lemon_tree12138/article/details/41889363

If it succeeds, the result is similar to the following:



Proguard returned with error code 1. See console:


This problem is caused by code obfuscation and reference packages cannot be found. You only need to add the following two lines in your proguard. cfg.
-Ignorewarnings
-Libraryjars libs/android-support-v4.jar
You can add the required jar as prompted by your project.

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.