sqlcipher-android

SQLCipher and CWAC-SafeRoom doubling the size of my APK

烈酒焚心 提交于 2020-01-06 07:31:53
问题 The size of these libraries really increase the APK size. It’s almost 50% my App size, taking it to 16.3 MBs and when I analyze the APK, sqlcipher-lib alone is 48.9% of my apk size i.e 7.3MBs!!! Is there any workaround? Edit: Since this is a DB related issue and I believe it's good if the specified tags remain referenced for specificity during search by other developers. I think the answer below addresses it better in order to keep the conversation along specific topics 回答1: This section of

Unable to Zip Android SQLite Database After Encrypting With SQLCipher

淺唱寂寞╮ 提交于 2019-12-07 16:34:38
问题 I ship a read only database with my app including it in Assets/Database directory. All data is pre-populated beforehand. After integrating with SQLCipher and encrypting the database I noticed that the APK size ballooned from 25MB to 150MB . Reason being is that the SQLite db file no longer gets compressed. Android Studio normally will compress resources but after DB file is encrypted it seems zipping the file has no effect. I tried testing this outside with regular Zip & 7Zip and it makes no

Upgrading plain content provider data(backed by SQLite) to encrypted using SQLCipher -Android

假装没事ソ 提交于 2019-12-06 10:37:18
问题 I am trying to encrypt data stored in my content provider with App upgrade. I followed below link for this, How to implement SQLCipher when using SQLiteOpenHelper While this works perfectly fine if a new installation is done, If I go for an upgrade, app crashes with below error net.sqlcipher.database.SQLiteException: file is encrypted or is not a database at android.app.ActivityThread.handleReceiver(ActivityThread.java:3009) at android.app.ActivityThread.access$1800(ActivityThread.java:177)

Unable to Zip Android SQLite Database After Encrypting With SQLCipher

假如想象 提交于 2019-12-05 19:41:18
I ship a read only database with my app including it in Assets/Database directory. All data is pre-populated beforehand. After integrating with SQLCipher and encrypting the database I noticed that the APK size ballooned from 25MB to 150MB . Reason being is that the SQLite db file no longer gets compressed. Android Studio normally will compress resources but after DB file is encrypted it seems zipping the file has no effect. I tried testing this outside with regular Zip & 7Zip and it makes no difference, zipped file is the same size as the original. Un-encrypted database is around 130MB and

Integrating SQLCIPHER in Android Studio Project

江枫思渺然 提交于 2019-11-28 10:29:01
I tried integrating SQLCipher in my Android Application, using this link and also some stack-overflow links(but they are out-dated and differs from official document). All the steps are correctly followed, and there is no error in the coding part. But at last, when I build the project, the error message I get is : Error:(11, 0) Gradle DSL method not found: 'defaultConfig()' Possible causes: The project 'android-database-sqlcipher-master1' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file The build file may be missing a Gradle plugin. Apply Gradle