proguard

Proguard obfuscation is breaking simplexml

谁说胖子不能爱 提交于 2019-11-28 21:18:40
I am using simplexml in my android project, and everything works fine until I obfuscate the code. Then, errors start pouring in. Part of the XML is as follows: <categories success="true"> <category id="102" caption="Magazin" parent="0" num_mags="114" > <category id="15" caption="Kunst" parent="102" num_mags="13" > <category id="17" caption="Design" parent="15" num_mags="10" ></category> <category id="18" caption="Haute+Couture" parent="15" num_mags="2" > ... I have two classes: CategoryItemList: @Root(name = "categories") public class CategoryItemList { private final List<CategoryItem>

How does DexGuard encrypt classes?

江枫思渺然 提交于 2019-11-28 21:11:56
问题 I want to check how DexGuard works but it seems that it doesn't have a free trial version. Can DexGuard encrypt an Android application? Or does it simply obfuscate the code? How does DexGuard encryption work? If you could provide code from a sample application run with DexGuard before and after decompilation, it would be great. 回答1: ProGuard provides name obfuscation: it can replace the original names of classes, methods, and fields by short, meaningless names. DexGuard additionally provides

Proguard keep class names?

☆樱花仙子☆ 提交于 2019-11-28 21:11:35
Hello I am writing an Android app and I have set up Proguard to obfuscate my application. I however use a classloader to dynamically load different extensions to my application. The problem is that these don't load correctly if their names are changed. How do I keep Proguard from obfuscating specific class names? Zaid Daghestani Use the -keepnames option in your proguard.cfg Refer to the manual https://www.guardsquare.com/en/proguard/manual/usage#keepoptions : -keepnames class_specification Short for -keep,allowshrinking class_specification Specifies classes and class members whose names are

Using Proguard with Android without obfuscation

让人想犯罪 __ 提交于 2019-11-28 19:10:27
I am getting an error "Conversion to Dalvik format failed with error 1" when using the -dontobfuscate flag. Otherwise my app exports fine. I don't want to obfuscate because I am using BugSense for error tracking and they charge $99 a month if you need to de-obfuscate your stack traces. I still want to get the file size and optimization benefits of proguard. If I comment out -dontobfuscate every thing works great. Except for the unreadable stack traces. my progaurd.cfg file: -dontobfuscate -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose

Android Proguard with external jar

风格不统一 提交于 2019-11-28 18:51:13
I'm have added external jar file to the libs folder of mt project and configure it in the build path. When i try to "Export Android Package" i receive a Proguard error message for a lot of reference classes that aren't found, For example: Warning: com.itextpdf.text.BaseColor: can't find referenced class java.awt.Color When i tried to debug the BaseColor class worked fine, so i can't figure out why does it warns me. Any help will be appreciated, Thanks I tried for days to get external jars properly working. There were suggestions to do things like download the referenced JARS or properly define

Maven, Proguard and assembly issues

↘锁芯ラ 提交于 2019-11-28 18:48:54
I'm trying to get Maven working with ProGuard. What I want to achieve is the following: Run ProGuard over my source files and produce obfuscated classes Create a manifest file that references the main class so that I can execute it as a jar Unpack all of the associated library jars and create one huge jar containing them all. This file should only contact .class and .xml files only. Assemble them into .zip and tar.gz files that include various README.txt files and so on. So far I've got something like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin<

ProGuard: duplicate definition of library class?

回眸只為那壹抹淺笑 提交于 2019-11-28 18:30:46
I run my ProGuard for my Android project and get the following warnings: Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver] Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory] Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException] Note: duplicate definition of library class [org.apache.http.params.HttpParams] Note: duplicate definition of library class [android.net.http.SslCertificate$DName] Note: duplicate definition of library class [android.net.http.SslError] Note: duplicate

How can I check/upgrade Proguard version whn using it in Eclipse for Android development?

旧巷老猫 提交于 2019-11-28 18:14:48
The documentation on this is extremely poor. I understand that ProGuard can be enabled by manually editing "default.properties" in the project's rot directory. And all the settings go into the "proguard.cfg" file in the same place, but I'd like to know which version of ProGuard is being used (I'm using Eclise Indigo). I would also like to be able to upgrade it to the latest versions whenever the are released. But I can't find any reference on how to do it. Eric Lafortune The ProGuard jar is located inside the Android SDK: android-sdk/tools/proguard/lib/proguard.jar You can print out its

Proguard returned with error code 1. See console

☆樱花仙子☆ 提交于 2019-11-28 17:50:26
I am receiving this exception while creation of signed apk of my application. I have 5 library projects added to my project as well. Any hint how to resolve this issue? Here is my config file: -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public

Android ProGuard - only obfuscation

浪子不回头ぞ 提交于 2019-11-28 17:48:57
Is it possible to use ProGuard for only obfuscation. I don't want ProGuard to remove any classes from my projects. My intention to use ProGuard is only for obfuscation so as to prevent reverse engineering. Yes, by specifying -dontshrink -dontoptimize You can find details on all configuration options in the ProGuard manual . Note that shrinking and optimization may help preventing reverse engineering a bit. 来源: https://stackoverflow.com/questions/6633411/android-proguard-only-obfuscation