Comments (14)
I forgot to call SQLiteDatabase.loadLibs(this);
in my MainActivity, which gave me this error.
Once I added it, the code seemed to work fine for me.
from android-database-sqlcipher.
Hi pstegegn,
Could you verify that all of the native libraries were deployed? If you could run your application on an emulator and then issue the following in a terminal, please share the results:
adb shell
cd /data/data/[YourPackageName] #possibly com.viber.voip
ls lib
from android-database-sqlcipher.
Hi Parker,
I have checked that the three of .so native libraries do exist. but icudt46l.zip is not deployed. There is only lib and databeses(which is empty) folder on appplication /data/data/com.viber.voip file directiry. I am using sqlcipher for android 1.1.0 and testing on android 2.3.7 platform.
Its been week trying to fix this error. thanks in advance
ls lib
libVoipEngineNative.so libsqlcipher_android.so
libdatabase_sqlcipher.so libstlport_shared.so
from android-database-sqlcipher.
Hi pstegegn,
The icudt46l.zip
file belongs to the 2.0 release of SQLCipher for Android, it is not compatible with 1.1.0. If you are just integrating SQLCipher for the first time, it would be best to use the latest release, 2.0.5 which can be found here. The icu46dtl.zip
file should be placed in your assets
directory, but will be expanded into a folder called icu
in the files
directory on a 2.3.7 device. Could you try that and report back? Thanks!
from android-database-sqlcipher.
Hi pstegegn,
I received a message from you, but it isn't displaying here. You closed the issue and then reopened it. You mentioned some customizations to the sqlcipher.jar. Would it be possible for you to drop in the new 2.0.5 binaries to verify whether or not you see the same issue? Thanks!
from android-database-sqlcipher.
Can you post how you solved this problem...
Thanks in advance..
Regards,
Pavani
from android-database-sqlcipher.
Hi Pavani,
You can find a detailed article covering the setup of a project that uses SQLCipher for Android here. The issue above was a missing icudt46l.zip
file in the assets folder of the application that is required.
from android-database-sqlcipher.
hi,
I get this message occasionally in my developer console. Shortly I was lucky to see it on one of my devices.
java.lang.UnsatisfiedLinkError: Native method not found: net.sqlcipher.database.SQLiteDatabase.dbopen:(Ljava/lang/String;I)V
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.(SourceFile:1950)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SourceFile:900)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SourceFile:943)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:112)
This happens only by chance and not very often. Still it is annoying. Do you know what is causing the problem? Seems more like a platform thing.
from android-database-sqlcipher.
Hi HansSchlegel,
The dbopen
call is a native method, a likely cause is that the native .so files were not included in the apk package. Can you verify the contents of your apktool?
from android-database-sqlcipher.
hello developernotes,
I have ensured that the .so files are part of my apk. If they were missing I would assume to have this error every time. The thing is that I had this error only once on my device and few customer reported this error.
from android-database-sqlcipher.
Hi HansSchlegel,
The only other reason this might be occurring is if the client code is not calling SQLiteDatabase.loadLibs(...)
as this call loads the native libraries into the running image to support calls such as dbopen
. Please let us know if you are able to consistently reproduce the issue.
from android-database-sqlcipher.
It happened only because of the version of sqlcipher I was using which
contains older .zip file in assets folder. Please go through the link
provided by nick and replace ur files and check whether it re occurs or not.
On 9 May 2013 18:55, "Nick Parker" [email protected] wrote:
Hi HansSchlegel,
The only other reason this might be occurring is if the client code is not
calling SQLiteDatabase.loadLibs(...) as this call loads the native
libraries into the running image to support calls such as dbopen. Please
let us know if you are able to consistently reproduce the issue.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-17663936
.
from android-database-sqlcipher.
i m having the same problem, i can only see three .so files in data/data/com.technoguff.sciencequiz/libs
but i m not sure where does the zip file get extracted. there is not files directory.
is this issue solved?
hi @pstegegn , have you solved the issue.
I need help.
from android-database-sqlcipher.
Hi @pstegegn,
Can you attempt to run the SQLCipher for Android test suite - do those run properly for you? If so, can you compare your project configuration with that, looking for any differences?
from android-database-sqlcipher.
Related Issues (20)
- Can not create writeable HOT 1
- Exception on API level 28 HOT 4
- Thread synchronisation issue in SQLiteCompiledSQL.releaseReference() which causes a double free in SQLiteCompiledSQL native_finalize HOT 3
- java.util.concurrent.TimeoutException: net.sqlcipher.database.SQLiteCursor.finalize() timed out after 10 seconds HOT 1
- android.database.sqlite.SQLiteException: unable to close due to unfinalized statements or unfinished backups: sqlite3_close() failed HOT 2
- Getting java.lang.UnsatisfiedLinkError HOT 11
- Fatal Exception: android.database.sqlite.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master; HOT 4
- new version not support armeabi HOT 3
- Vulnerability in openssl-1.1.1q CVE-2023-5678 HOT 1
- Vulnerability in SQLite3.39.2 BDSA-2023-3555 HOT 1
- AndroidRuntime: net.sqlcipher.database.SQLiteException: no such table: room_table_modification_log: , while compiling: SELECT * FROM room_table_modification_log WHERE invalidated = 1; HOT 2
- Vulnerability in SQLite3.39.2 CVE-2024-0232 HOT 5
- Vulnerability in SQLite3.39.2 BDSA-2023-3627 HOT 1
- Updation from android-database-sqlcipher to sqlcipher-android HOT 23
- no "J" field "mNativeHandle" in class HOT 2
- UnsatisfiedLinkError couldn't find "libsqlcipher.so" HOT 1
- sqlcipher_export() behaviour with existing output file HOT 1
- Our scan tool reports vulnerabilies CVE-2024-4741 in openssl 1. 1.1q used by SQLCipher 4.5.2.Does these vulnerabilities affect the library net.zetetic:androidx-database-sqlcipher? Thaniks HOT 1
- Difficulty Migrating Database from SQLCipher 3.5.9 to 4.5.4 - android.database.sqlite.SQLiteException: file is not a database (code 26): , HOT 1
- Our scan tool reports vulnerabilies [CVE-2024-5535] in openssl 1. 1.1q used by SQLCipher 4.5.2.Does these vulnerabilities affect the library net.zetetic:androidx-database-sqlcipher? Thaniks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-database-sqlcipher.