Android anti-compile debug source

Source: Internet
Author: User
Android anti-compile debug source 1. Anti-compilation Get source code

Enter commands directly under Windows command line Java-jar Apktool_2.0.0.jar d-d Millet motion _1.4.641_1058.apk-o out, where the-d parameter must be used, so that the decompile code suffix is java, Only Java files can be debugged by eclipse.

2. Add a debug flag

Create a new Android project in eclipse with the Out folder as the source and replace all the resource files under the Out folder with the current resource file. Locate the androidmanifest.xml below the Out folder, open with Sublimetext, add debuggable input to the Applicatoin node, and set to true.

3. Back to compile

Then recompile the whole project with Apktool, package the program into a jar package, enter the following command Tools>java-jar Apktool_2.0.0.jar b-d Out-o Src.jar, and after a few minutes, you can see Src.jar. Add the jar package to the new project's Libs directory, drop out all the source code, you can directly run debugging

Android anti-compile debug source

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.