Android APK anti-compilation reverse

Source: Internet
Author: User

The reverse of the Android APK program is much simpler than the reverse of the windowsPE file.

1. Android APK program is actually a zip, can be opened with WinRAR, extract will see a very familiar directory, there are androidmanifest.xml files, various resources and pictures

2.xml Open With Notepad, you will see garbled, so you need to use the Axmlprinter2.jar tool for processing, the command is as follows:

Java-jar Axmlprinter2.jar androidmanifest.xml > AndroidManifest.txt

At this time open AndroidManifest.txt, you will see and the source is almost, also no garbled.

3.APK all. Java code is compiled into the Classes.dex file, so to know the procedure and specific functions of the program, you have to decompile the file, using the Baksmali.jar tool

Java-jar Baksmali.jar-o Classout/classes.dex

After the execution, generate a classout directory, go to the Android directory,. Smali, it corresponds to the. Java code, let's see. Small code is OK, although not standard Java code, but after looking at the habit is very simple, At least it's much simpler than the Windows assembler ...

4. Finally, after the anti-compilation, we can change the code to change the resources, after the change, we have to compile back, using the Smali.jar tool

Java-jar Smali.jar classout/-o classes.dex

After this is done, and then stuffed into the apk, so that the program can still run, hehe!

12 points more, sleepy Ah, sleep.

Android APK anti-compilation reverse

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.