Android is Java-based, and the Java Anti-compilation tool is very powerful, so the normal APK application can basically do 100% anti-compilation restore.
So developers who are not ready to open up their own projects need to know how to prevent anti-compilation and decompile other people's projects to learn.
Above version 2.3 Add a "proguard.config=proguard.cfg" to the Eclipse Auto-generated default.properties file You can confuse the code, which is hard to read after you decompile it.
2.3 before the SDK version is OK, copy the above proguard.cfg file into the project, and then do the same thing.
Some applications after the Java code with JD-UI can not open, even confusing code can not see, I try to do many times, I want to know how to deal with the notice.
Note: The above features just confuse the Java code, XML and resource files, pictures are not confused, some game application image is important to convert to DAT files, plus their own encryption and decryption algorithm to restore.
In addition to the obfuscation function also has the function of compression, after the confusion of the apk than the original small (the proportion of your code to see the repetition of the amount)
So, when you're done with anti-compilation, how do you decompile it?
Let's talk about the process and principle of anti-compilation:
1. Apktool the apk--> resource Bundle (Java code to Smali file), you can modify the file in the resource bundle.
2.apk suffix renamed to zip or rar decompression, get Classes.dex file, with Dex2jar converted to jar package (note: Directly extracted resources file is not directly open, to use the first step of the Anti-compilation tool).
3. View the Java code directly with the Java Decompile tool such as Jd-ui.
4. Put the Java code and the first version of the resource bundle together to re-compose a new application.
5. Recompile with Apktool.
6. Re-sign with the signature tool.
7. Republish the app with the new signature.
Note: If you don't need to change Java code, just change style and Han 2.3.4 Steps is not necessary.
Open source projects on Google Code
Apktool http://code.google.com/p/android-apktool/
Dex2jar http://code.google.com/p/dex2jar/
In addition, someone made a tool set, integrated Apktool Dex2jar Jd-ui, but I downloaded the operation can not know whether the corresponding environment is not the result of pairing
hackapk http://code.google.com/p/hackapk/
In addition, some people have apktool made a package to make EXE file graphical interface convenient to use, cut a figure out to everyone to see it
Note: The above software can not be signed, to use another software (apksign) to sign, as follows:
Also give the above two tools download connection Jifeng forum above, estimated direct click on the connection can not download
Xwindows, with graphical interface: apktool.rar (3.33 MB)--This can be downloaded to http://code.google.com/p/ android-apktool/Download the latest version of Apktool.jar to replace the original.
Signature tool:auto-sign.rar(312.45 KB)
There are also some command line tools, I give the APK editor different version of the above description does not correspond to waste a lot of time
1. Normal apk file (which is the third-party software downloaded from various websites)
(1) Put him in the Place-apk-here-for-modding folder. (Do not have spaces and Chinese, Chinese to English) (2) Open Script.exe, enter in CMD window22 or 23 (set up the current project), select the number of the APK file you want to edit, enter confirm
As above: Some version of the current project options to change to 23, but the document did not change, press 221 straight can not select the APK, the reason is not good to find.
It is recommended that you use the graphical interface.
Talk about the Android anti-compilation and anti-compilation method (GO)