proguard

Failed to export application after upgrade to Proguard 4.8

本秂侑毒 提交于 2020-01-13 09:04:03
问题 I just upgraded my Android SDK, ADT and Proguard to the latest and greatest. My project compiles builds and runs fine in debug mode, but as soon as I try to export a signed release APK of it, I receive an error from the Export Wizard without any error log messages on the Eclipse console!* If I try to view the error log via Window->Show View->Error Log all I see is more of the same: I have no idea what to do because neither Eclipse nor Proguard would give any hint about what the problem could

Proguard is ruining my cleanliness. Gson and generics

丶灬走出姿态 提交于 2020-01-13 03:12:18
问题 I have a function that loads information from persistence, and I just tell the type it is in a really simple way. The class is called SharedPreferencesHelper.kt so it is a really life problem solver: fun <T> loadList(context: Context, fileName: String, key: String, defValue: ArrayList<T>) : ArrayList<T> { val gson = MyGsonDependency.getInstance() val json = getWithFileName(context, fileName).getString(key, gson.toJson(defValue)) return gson.fromJson(json, object : TypeToken<ArrayList<T>>() {}

How Do I Teach ProGuard to Get Rid of Something It Is Keeping That I Am Not Using?

爷,独闯天下 提交于 2020-01-12 20:20:26
问题 I have an Android project with a proguard-rules.pro file for the app module that contains only the following: # ProGuard rules -dontobfuscate -dontwarn android.arch.util.paging.CountedDataSource -dontwarn android.arch.persistence.room.paging.LimitOffsetDataSource I am not keeping anything myself. All -keep rules are coming from something else, whether that is the rules provided by getDefaultProguardFile('proguard-android-optimize.txt') or from rules packaged in libraries. However, stuff is

sbt-proguard with play 2.2.3

随声附和 提交于 2020-01-12 18:53:31
问题 We developed a web application with play 2.2.3 and want to obfuscate it. I am trying to use sbt-proguard plugin. I put the line below to PROJECT_FOLDER/project/plugins.sbt file addSbtPlugin("com.typesafe.sbt" % "sbt-proguard" % "0.2.2") and put the lines below to PROJECT_FOLDER/build.sbt file proguardSettings ProguardKeys.options in Proguard ++= Seq("-dontnote", "-dontwarn", "-ignorewarnings") ProguardKeys.options in Proguard += ProguardOptions.keepMain("Application") inConfig(Proguard)

Stack size becomes negative after instruction

帅比萌擦擦* 提交于 2020-01-12 05:25:08
问题 It has been pointed out that the reason I am having this problem is because of proguard 4.9, so I went ahead and updated to proguard-5.2.1. But I am still having the same problem. Has anyone found a solution? I confirmed the new version through java -jar /projects/tools/android-sdk-macosx/tools/proguard/lib/proguard.jar and my proguard-rule.pro is simply #---- Google Cloud Endpoint section # Needed by google-api-client to keep generic types and @Key annotations accessed via reflection

How secure is proguard against reverse engineering?

本秂侑毒 提交于 2020-01-12 05:02:09
问题 I will be working with very sensitive data in an app. Obfuscation by my definition is not added security, it will only delay the cracker with finite time. Is it possible that Proguard does this so well it may be called added security? What is most sensitive are some network calls. It will be hard to sniff the password because we will generate the password on both sides and check it's validity with timestamps. Problem is the app may be reverse engineered and the generate algorithm may be

Getting error while generating the .apk file if proguard is ON

浪子不回头ぞ 提交于 2020-01-12 04:06:09
问题 I am using proguard to obfuscate the code. I am getting the following error in console Proguard returned with error code 1. See console Warning: org.apache.cordova.CameraLauncher: can't find referenced class org.apache.commons.codec.binary.Base64 Warning: org.apache.cordova.CameraLauncher: can't find referenced class org.apache.commons.codec.binary.Base64 Warning: org.apache.cordova.CordovaWebView: can't find referenced method 'WebView(android.content.Context,android.util.AttributeSet,int

How to tell ProGuard to keep private fields without specifying each field

故事扮演 提交于 2020-01-09 10:01:47
问题 This is my class: package com.tools.app.holiday; public class Holiday { private String name; private Calendar dateFrom = Calendar.getInstance(); private Calendar dateTo = Calendar.getInstance(); ... I can keep these private fields by putting the following in my ProGuard rules file: -keepclassmembers class com.tools.app.holiday.Holiday { private java.lang.String name; private java.util.Calendar dateFrom; private java.util.Calendar dateTo; } But I'd prefer not to have to specify each field

Android反编译与防止反编译

♀尐吖头ヾ 提交于 2020-01-08 08:54:51
【eoe首届Android达人训练营】开营啦! http://www.eoeandroid.com/thread-198942-1-1.html Android中Menu的界面显示 http://www.eoeandroid.com/thread-201959-1-1.html android 365手机秘书源代码 http://www.eoeandroid.com/thread-175823-1-1.html 1、Android反编译 1)下载两个工具 dex2jar,jar2java 2)修改apk后缀为.zip,解压得classes.dex 3)用dex2jar.bat打开classes.dex得到classes.dex.dex2jar.jar 4)用jar2java打开上面得到的jar包即得Java文件 2、Android防止反编译 这里介绍的Android反编译工具是ProGuard。 ProGuard是一个SourceForge上非常知名的开源项目。官网网址是: http://proguard.sourceforge.net/ 。 Java的字节码一般是非常容易反编译的。为了很好的保护Java 源代码 ,我们往往会对编译好的class文件进行混淆处理。 ProGuard的主要作用就是混淆。当然它还能对字节码进行缩减体积、优化等。 Android

ProGuard difficulties when obfuscating with libraries

烈酒焚心 提交于 2020-01-07 05:52:27
问题 While trying to use ProGuard (4.9) to obfuscate and optimise a desktop application everything works up until I use something from an external library such as JSoup.connect("http://google.com/").get(); . I would get the following error: Exception in thread "Thread-2" java.lang.ExceptionInInitializerError at org.jsoup.b.l.<clinit>(Unknown Source) at org.jsoup.b.f.<init>(Unknown Source) at org.jsoup.b.e.<init>(Unknown Source) at org.jsoup.c.bh.b(Unknown Source) at org.jsoup.c.bh.a(Unknown Source