encrypt/decrypt Android Sqlite DataBase
Questions tagged [sqlcipher-android]
98 questions
3
votes
2 answers
Android 7.0 Native crashes due to sqlcipher library and NDK restrictions
I'm receiving following crash on Android 7.0 Samsung S8 and many other such native crashes:
backtrace:
#00 pc 000000000005da7c /system/lib64/libbinder.so (_ZN7android6Parcel14freeDataNoInitEv+16)
#01 pc 00000000000f8538 …

Neelesh Atale
- 526
- 4
- 12
3
votes
1 answer
Issue with Robolectric with cipher in android application
Hi I am using Robolectric for test cases. I am facing some issue while simulating for encryption relateed test cases. I tried to use cipher with AES for encryption. And it is giving me some error. I tried it in following manner :
@Test
public…

nilkash
- 7,408
- 32
- 99
- 176
3
votes
2 answers
SQLCipher causing crash on Android in Signed Release APK
I am using SQLCipher in an android project. All works well in testing, but whenever I built a signed release APK and installed it I am receiving the following error and crash whenever I call
SQLCipher.loadLibs(context);
Here is the crash
03-09…

nserror
- 727
- 8
- 19
3
votes
2 answers
Android SQLite file encryption
I'm building an SDK to be used in a hosting app. This SDK includes working with DB using SQLite.
One of the requirements, is that the DB will be encrypted in order to prevent
pulling the SQLite database from the device and using the user private…

Ofir A.
- 3,112
- 11
- 57
- 83
3
votes
1 answer
Java.lang.UnsatisfiedLinkError: couldn't find "libstlport_shared.so
I am very new to SQL Cipher. I read many stuff and implemented SQLCipher into my project.
I have put below JAR files into app/src/libs
commons-codec.jar
guava-r09.jar
sqlcipher.jar
sqlcipher-javadoc
I have put below file into…

Ram Mansawala
- 652
- 7
- 22
2
votes
1 answer
TimeoutException: net.sqlcipher.database.SQLiteCompiledSql.finalize() timed out after 10 seconds (Android)
In my android app I am using Room with sqlcipher library for encrypt/decrypt. Often I see in Crashlytic the following crash:
java.util.concurrent.TimeoutException:
net.sqlcipher.database.SQLiteCompiledSql.finalize() timed out after 10
seconds at…

alla
- 529
- 5
- 20
2
votes
0 answers
SQLCipher 4.2 is 300% solwer even if encryption is not active, Android
We are seeing a drastic performance loss after using SQLCipher 4.2 in our android app.
Even in case we don't provide an encryption key and just use SQLCipher without encryption
our app performances about 300 percent slower as if we use the…

Michael Bründel
- 21
- 3
2
votes
0 answers
Concurrent Timeout Exception using SQLCipher in android
I am using SqlCipher in my android application to encrypt the database.
My app works in both online and offline and has many DB transactions.
I am using SQLCipher 3.5.7 version.
I rarely get the below exception and it occur mostly in Samsung…

Yamuna
- 119
- 1
- 8
2
votes
2 answers
Cannot resolve symbol 'database' in net.sqlcipher import in Android Studio
Any idea why I am having this cannot resolve symbol 'database' in net.sqlcipher. I simply cloned SQLCipher Android Test from GitHub and wanted to test.
have also attached the screenshot for reference.
Thank you...

Min Soe
- 1,214
- 1
- 14
- 25
2
votes
0 answers
SQLCipher encrypted error in android release version.
I am trying to encrypt database using SQLCipher. I followed http://lomza.totem-soft.com/tutorial-add-sqlcipher-to-your-android-app/ and it was working fine it the app is in debug mode. But whenever i try to build a release version, it crashes. I…

BST Kaal
- 2,993
- 6
- 34
- 52
2
votes
1 answer
Dexguard release build missing .so file
I use Dexguard for my release build, but I got this exception:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/myapp.app-1/base.apk"],nativeLibraryDirectories=[/data/app/myapp.app-1/lib/arm64,…

just
- 1,900
- 4
- 25
- 46
2
votes
0 answers
MvvmCross.Platform.Exceptions.MvxException :: Xamarin.Social.Accounts (Permission Denied) - SQLCipher
I have run into an error around the use of SqlCipher with MvvmCross on an Android application.
The issue I am currently facing seems to be permissions regarding the creation of a database locally on the simulated device I am running.
After having…

Liam Lamb
- 21
- 1
2
votes
1 answer
Android App stops responding for SQLCipher
I have just changed my database from SQLite to SQLCipher. And my app became unbelievably slow. It takes ages to take click actions.
I studied and found out these two possible reasons:
Do not repeatedly open and close connections, as key derivation…

The Bat
- 1,085
- 1
- 13
- 31
2
votes
0 answers
JNI FindClass called with pending exception java.lang.ClassNotFoundException: Didn't find class "net.sqlcipher.database.SQLiteDatabase"
On Android with the latest version of SQLCipher (3.5.7), clone sqlcipher from here and build so files, now while using libsqlcipher.so in sample project getting java.lang.ClassNotFoundException
This is the full stacktrace:
05-11 10:53:30.384…

Nikhil
- 1,023
- 17
- 35
2
votes
0 answers
increase query performance in SqlCipher database
I encrypted my SQliteDatabase with sqlcipher in android.
when I select 11000 record, it takes 9 seconds while this query in normal sqlite database takes just 3 seconds.
How can I solve this?

Maryam
- 883
- 10
- 24