前几天研究如何反编译程序,今天开始得研究如何防止反编译了,真是感觉有点...
好了,不废话了
工具版本:android4.2 + eclipse
1. cp ${sdk.dir}/tools/proguard/proguard-android.txt $(your-project.dir)/proguard-project.txt
2. change the $(your-project.dir)/project.properties
add:
# Project target.
target=android-17
#proguard.config=proguard.cfg
proguard.config=proguard-project.txt
3. 在eclipse中,右键选中工程,android-tools/export-signed(or unsigned)-apk
这样就达到了混淆的作用。
如果需要深入定制混淆的内容,可以参考http://developer.android.com/google/play/billing/billing_best_practices.html
http://developer.android.com/tools/help/proguard.html#enabling
签名: http://developer.android.com/tools/publishing/app-signing.html