Skip to content

Application can not be signed while using SQLCipher #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KinjalDroid opened this issue Jan 6, 2014 · 6 comments
Closed

Application can not be signed while using SQLCipher #116

KinjalDroid opened this issue Jan 6, 2014 · 6 comments

Comments

@KinjalDroid
Copy link

I am using SQLCipher library to encrypt database in Android.
It works perfectly fine and database is also get encrypted.
But I am using Proguard for better security..so when i am going to sign app, Proguard gives me error like "Proguard returned with error code 1.See console"

And in console, it shows too many warning..

Warning: com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
Warning: com.google.common.base.Objects$ToStringHelper: can't find referenced class javax.annotation.Nullable
Warning: com.google.common.base.Predicates$AndPredicate: can't find referenced class javax.annotation.Nullable
Warning: there were 607 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
java.io.IOException: Please correct the above warnings first.

If anyone know,please correct me.
Thanks..

@developernotes
Copy link
Member

Hello KinjalDroid,

Please try the following ProGuard file as a reference for use with SQLCipher for Android.

@fikr4n
Copy link

fikr4n commented Feb 5, 2016

It disabled obfuscation/shrinking for sqlcipher :(.
Why exactly sqlcipher cannot be obfuscated? Does it use such a dynamic class/method loading?

@developernotes
Copy link
Member

Hello @fikr4n

We provide a sample reference, however you may be able to make adjustments to the ProGuard that still allows for proper execution. Have you run into a problem removing the -dontobfuscate flag? You will likely need to include something such as native <methods>; within a keep clause.

@fikr4n
Copy link

fikr4n commented Feb 5, 2016

I mean it works, but disabling the obfuscation. So the point is my question:

Why exactly sqlcipher cannot be obfuscated? Does it use such a dynamic class/method loading?

Thank you for fast reply 👍

@developernotes
Copy link
Member

Hi @fikr4n

I mean it works, but disabling the obfuscation.

Did you try removing the -dontobfuscate flag and adding the native <methods>; within a keep clause? We do not provide ProGuard solutions for all configurations, the included configuration is just a sample.

@fikr4n
Copy link

fikr4n commented Feb 6, 2016

Of course -dontobfuscate is removed, the main code would be obfuscated, but sqlcipher would not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants