Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java proguard使apk完整,并进行转储、映射、种子但不混淆_Java_Android_Eclipse_Apk_Proguard - Fatal编程技术网

Java proguard使apk完整,并进行转储、映射、种子但不混淆

Java proguard使apk完整,并进行转储、映射、种子但不混淆,java,android,eclipse,apk,proguard,Java,Android,Eclipse,Apk,Proguard,Eclipse版本 我使用proguard so output dump.txt mapping.txt seeds.txt 制作APK项目名称->导出->Android->导出单个Android 应用 输出apk->反编译但不混淆 为什么不混淆呢?让我知道 来源 项目属性 proguard.config=proguard.cfg proguard.cfg # This is a configuration file for ProGuard. # http://proguard.sour

Eclipse版本

  • 我使用proguard so output dump.txt mapping.txt seeds.txt

  • 制作APK项目名称->导出->Android->导出单个Android 应用

  • 输出apk->反编译但不混淆

  • 为什么不混淆呢?让我知道

    来源

    项目属性

    proguard.config=proguard.cfg

    proguard.cfg

    # This is a configuration file for ProGuard.
    # http://proguard.sourceforge.net/index.html#manual/usage.html
    
    
    -dontusemixedcaseclassnames
    -dontskipnonpubliclibraryclasses
    -verbose
    
    # Optimization is turned off by default. Dex does not like code run
    # through the ProGuard optimize and preverify steps (and performs some
    # of these optimizations on its own).
    -dontoptimize
    -dontpreverify
    # Note that if you want to enable optimization, you cannot just
    # include optimization flags in your own project configuration file;
    # instead you will need to point to the
    # "proguard-android-optimize.txt" file instead of this one from your
    # project.properties file.
    
    -keepattributes *Annotation*
    -keep public class com.google.vending.licensing.ILicensingService
    -keep public class com.android.vending.licensing.ILicensingService
    
    # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
    -keepclasseswithmembernames class * {
        native <methods>;
    }
    
    # keep setters in Views so that animations can still work.
    # see http://proguard.sourceforge.net/manual/examples.html#beans
    -keepclassmembers public class * extends android.view.View {
       void set*(***);
       *** get*();
    }
    
    # We want to keep methods in Activity that could be used in the XML attribute onClick
    -keepclassmembers class * extends android.app.Activity {
       public void *(android.view.View);
    }
    
    # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
    -keepclassmembers enum * {
        public static **[] values();
        public static ** valueOf(java.lang.String);
    }
    
    -keepclassmembers class * implements android.os.Parcelable {
      public static final android.os.Parcelable$Creator CREATOR;
    }
    
    -keepclassmembers class **.R$* {
        public static <fields>;
    }
    
    # The support library contains references to newer platform versions.
    # Don't warn about those in case this app is linking against an older
    # platform version.  We know about them, and they are safe.
    -dontwarn android.support.**
    
    # Understand the @Keep support annotation.
    -keep class android.support.annotation.Keep
    
    -keep @android.support.annotation.Keep class * {*;}
    
    -keepclasseswithmembers class * {
        @android.support.annotation.Keep <methods>;
    }
    
    -keepclasseswithmembers class * {
        @android.support.annotation.Keep <fields>;
    }
    
    -keepclasseswithmembers class * {
        @android.support.annotation.Keep <init>(...);
    }
    
    
    
    -allowaccessmodification 
    -repackageclasses ""
    
    
    
    -dontshrink
    
    # Retain declared checked exceptions for use by a Proxy instance.
    -dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
    
     
    
    #################################################################################################
    # My Code
    -dontwarn android.support.v4.**
    -dontwarn okio.**
    -dontwarn com.squareup.okhttp.**
    -dontwarn org.apache.**
    
     
    
    
     
     
    
    #这是ProGuard的配置文件。
    # http://proguard.sourceforge.net/index.html#manual/usage.html
    -dontusemixedcaseclassnames
    -DontskipnonPublicLibraryClass
    -冗长的
    #默认情况下,优化处于关闭状态。Dex不喜欢代码运行
    #通过ProGuard优化和预验证步骤(并执行一些
    #这些优化的一部分)。
    -dontoptimize
    -不要翻转
    #请注意,如果要启用优化,则不能
    #在您自己的项目配置文件中包含优化标志;
    #相反,您需要指向
    #“proguard android optimize.txt”文件,而不是您的
    #project.properties文件。
    -keepattributes*注释*
    -保持公共类com.google.vending.licensing.ILicensingService
    -保持公共类com.android.vending.licensing.ILicensingService
    #有关本机方法,请参见http://proguard.sourceforge.net/manual/examples.html#native
    -KeepClassSwithMemberNames类*{
    本地人;
    }
    #在视图中保留setter,以便动画仍然可以工作。
    #看http://proguard.sourceforge.net/manual/examples.html#beans
    -keepclassmembers公共类*扩展了android.view.view{
    无效集*(***);
    ***得到*();
    }
    #我们希望在活动中保留可以在XML属性onClick中使用的方法
    -keepclassmembers类*扩展了android.app.Activity{
    public void*(android.view.view);
    }
    #有关枚举类,请参见http://proguard.sourceforge.net/manual/examples.html#enumerations
    -keepclassmembers枚举*{
    公共静态**[]值();
    公共静态**valueOf(java.lang.String);
    }
    -keepclassmembers类*实现android.os.Parcelable{
    公开静态最终android.os.Parcelable$Creator;
    }
    -keepclassmembers类**.R$*{
    公共静态;
    }
    #支持库包含对较新平台版本的引用。
    #如果此应用程序链接的是较旧的应用程序,请不要警告这些问题
    #平台版本。我们知道他们,他们是安全的。
    -dontwarn android.support**
    #理解@Keep support注释。
    -keep类android.support.annotation.keep
    -keep@android.support.annotation.keep class*{*;}
    -keepclassswithmembers类*{
    @android.support.annotation.Keep;
    }
    -keepclassswithmembers类*{
    @android.support.annotation.Keep;
    }
    -keepclassswithmembers类*{
    @android.support.annotation.Keep(…);
    }
    -允许访问修改
    -重新打包类“”
    -dontshrink
    #保留声明的已检查异常以供代理实例使用。
    -dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
    #################################################################################################
    #我的代码
    -dontwarn android.support.v4**
    -唐特沃恩·奥基奥**
    -dontwarn com.squareup.okhttp**
    -dontwarn org.apache**
    
    Eclipse仍然使用ADT而不是Gradle来导出Android应用程序。您可以在Eclipse中使用Gradle,正如我在这里所描述的: