To prevent decompiling Android APKProgram, You needCodeFor obfuscation, if you have installed Android SDK 2.3, obfuscation of program code will become very simple. let's take a look at the specific steps. After installing sdk2.3, create an android project and you will find an additional proguard. cfg file, for example:
This file is the configuration file for obfuscation code. To make the configuration file take effect, add the following at the bottom of the default. properties file:
Proguard. Config = proguard. cfg
The content of the default. properties file is as follows:
Then, use the eclipse Android packaging tool to pack the program signature. For more information about how to generate a signature file, see Simplified Chinese Implementation of Android APK. After the signature is packaged, The proguard folder is generated under the root directory of the program,
The folder contains four TXT files:
Separator indicates the class to be stripped (not quite clear ). The code obfuscation has been completed. You can use the decompilation tool to test the code.
For detailed configuration information in the proguard. cfg file, see the official website http://proguard.sourceforge.net/index.html