proguard

From Eclipse to Android Studio: Why is proguard.cfg used when NOT building Release?

独自空忆成欢 提交于 2019-12-02 02:01:51
So, I have been trying to migrate the development of a multi-project (eclipse projects that is) app to Android Studio (v1.1). Importing via File > Import Project was really easy and went without incident. However, when I tried Make/Rebuild project I encountered numerous surprises. The first, not Proguard-related, had to do with source file encoding (originally in Windows-1252), but I quickly found a solution using this Windows-1252 > Reload > UTF-8 > Convert answer. Then, "error: cannot find symbol class" for a com.comp.mod.X class of mine. I then solved it by going to the module (Android

Saving constant values securely

雨燕双飞 提交于 2019-12-02 01:45:18
问题 I am working on a Android application related to secure data communication. I am using a few constant values in my application, and am saving them in constant.java class. I don't want these values to be reverse engineered, but even though I am using ProGuard for Android, for experts it's easy to reverse the code. These constants are very secure. I can use properties file or any file in res folder but this approach is not at all secure. Can anybody can tell me how to proceed? Is there any file

Prograurding android project using Javacv gives exception

本秂侑毒 提交于 2019-12-02 00:58:18
Hi i am developing an app with Javacv. The app works fine until i proguard the build. After proguarding, the app crashes at the place of jni function call. -dontshrink -dontoptimize -dontpreverify -dontwarn android.support.** -keep class com.googlecode.javacv.** -dontwarn com.googlecode.javacv.** -keep class com.googlecode.javacpp.** -dontwarn com.googlecode.javacpp.** -keepclasseswithmembernames class * { native <methods>; } -keepattributes *Annotation* I can't find any answer that solves my problem. I am getting NoSuchMethodError. Anybody help me. I am using the latest version of Javacv

Weird behaviour while obfuscating a JAR with proguard

 ̄綄美尐妖づ 提交于 2019-12-01 23:20:33
I'm trying to obfuscate an Android JAR using Proguard (4.7, but 4.6 problematic too). I could break down the problem into a simple sample project. The problem: For some functions (unclear for what reasons) the argument names of exposed functions are lost, sometimes "scrambled" (really). I would like to focus on the "lost" part first, because the scrambled thing is much more weird... 1) I created a library project in Eclipse. Android SDK is 2.1-update 1 for some reasons The project is marked as "Library Project" and has just one class MyJarEntry.java and one exported function foo package com

Enable Proguard for only two packages in large Android application

荒凉一梦 提交于 2019-12-01 22:18:44
Background I am developing an Android application that relies on multiple external libraries (8 added as library project dependencies, 14 added as jar dependencies). Some of these jar libraries are closed source an have already been obfuscated and some of them rely pretty heavily on reflection. The application uses ZXing for QR code scanning/recognition and, without Proguard optimization, ZXing is quite slow (at least on Android). At first, I only needed to optimize the com.google.zxing.** package using Proguard. In order to do that I've added the following Proguard options in my config file

Ksoap2 with proguard

懵懂的女人 提交于 2019-12-01 18:51:15
I have an application that is using ksoap2 library, everything working fine but when exporting application from Eclipse, it shows this Proguard returned with error code 1. See console Note: there were 4 duplicate class definitions. Warning: library class android.content.res.XmlResourceParser extends or implements program class org.xmlpull.v1.XmlPullParser Warning: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.content.IntentFilter depends on program class org.xmlpull.v1.XmlSerializer Warning: library class android

Android + Proguard + Apache POI

让人想犯罪 __ 提交于 2019-12-01 18:16:25
Someone was able to get the Apache POI library to work after obfuscation. I read a lot of information, tried different methods, but still get the error: a.a.b.a: Provider com.bea.xml.stream.EventFactory not found org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.init(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.Package.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.ZipPackage.<init>(Unknown Source) at org.apache.poi

Android Studio exclude class or file from jar

廉价感情. 提交于 2019-12-01 18:07:15
How to exclude class or any another file from jar library in Android Studio Gradle ? I tried to use this: packagingOptions { exclude 'com/imagpay/bU.class' } And this: sourceSets { main { java { exclude 'com/imagpay/bU.class' } } } But nothing helped. After adding new library to project get such error during release: Error:Execution failed for task ':app:proguardRelease'. java.io.IOException: Can't read [/home/denys/Epos/app/libs/PMCore.jar(;;;;;;!META-INF/MANIFEST.MF)] (Can't process class [com/imagpay/bU.class] (Unknown verification type [19] in stack map frame)) I had same problem with my

Android proguard issues for release

*爱你&永不变心* 提交于 2019-12-01 18:03:12
I'm able to create builds for my android app, but when I turn on proguard i'm getting numerouos warnings, and then the build fails. The warnings are like the ones below: Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpEntity Warning: library class android.net.http.AndroidHttpClient depends on program class org.apache.http.params.HttpParams Warning: library class android.net.http.AndroidHttpClient depends on program class org

Ksoap2 with proguard

随声附和 提交于 2019-12-01 17:54:27
问题 I have an application that is using ksoap2 library, everything working fine but when exporting application from Eclipse, it shows this Proguard returned with error code 1. See console Note: there were 4 duplicate class definitions. Warning: library class android.content.res.XmlResourceParser extends or implements program class org.xmlpull.v1.XmlPullParser Warning: library class android.content.Intent depends on program class org.xmlpull.v1.XmlPullParser Warning: library class android.content