Android应用(apk)代码混淆笔记

来源:互联网 发布:网页淘宝分享到微信 编辑:程序博客网 时间:2024/06/02 06:27

project.properties

# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system edit# "ant.properties", and override values to adapt the script to your# project structure.## To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):sdk.dir=F:\\Android2\\adt-bundle-windows-x86_64-20131030\\sdkproguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt# Project target.target=android-19# android.library.reference.1=..\\*ContactsLib


proguard-project.txt

# To enable ProGuard in your project, edit project.properties# to define the proguard.config property as described in that file.## Add project specific ProGuard rules here.# By default, the flags in this file are appended to flags specified# in ${sdk.dir}/tools/proguard/proguard-android.txt# You can edit the include path and order by changing the ProGuard# include property in project.properties.## For more details, see#   http://developer.android.com/guide/developing/tools/proguard.html# Add any project specific keep options here:# If your project uses WebView with JS, uncomment the following# and specify the fully qualified class name to the JavaScript interface# class:#-keepclassmembers class fqcn.of.javascript.interface.for.webview {#   public *;#}-keep public class * implements java.io.Serializable {*;}-keep class com.*.contacts.list.entity.** { *; }-dontwarn com.google.**-keep class com.google.** {*;}-dontwarn com.baidu.**-keep class com.baidu.** {*;}-dontwarn net.sqlcipher.**-keep class net.sqlcipher.** {*;}-keepclassmembers class * implements java.io.Serializable {    static final long serialVersionUID;    private static final java.io.ObjectStreamField[] serialPersistentFields;    private void writeObject(java.io.ObjectOutputStream);    private void readObject(java.io.ObjectInputStream);    java.lang.Object writeReplace();    java.lang.Object readResolve();}-keep public class * implements java.io.Serializable {*;}-keepattributes Signature-keepattributes *Annotation*-keep class sun.misc.Unsafe { *; }-keep class com.google.gson.examples.android.model.** { *; }-keepclassmembers enum * {    public static **[] values();    public static ** valueOf(java.lang.String);}-keepclassmembers class * {   public <init>(org.json.JSONObject);}-keep public class com.*.cust.contacts.R$*{public static final int *;}




1 0
原创粉丝点击