Skip to content

use cipher for existing database in other languages #37

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
yarand opened this issue Jan 8, 2012 · 2 comments
Closed

use cipher for existing database in other languages #37

yarand opened this issue Jan 8, 2012 · 2 comments

Comments

@yarand
Copy link

yarand commented Jan 8, 2012

Hi
I have a DB and add it to my project(in asset). my db has some character in Persian language. when I want create database from and open it, eclipse show followed error:(in logcat)
01-08 14:38:47.156: ERROR/Database(23739): SELECT locale FROM android_metadata failed
01-08 14:38:47.235: ERROR/Database(23739): Failed to setLocale() when constructing, closing the database
01-08 14:38:47.235: ERROR/Database(23739): info.guardianproject.database.sqlcipher.SQLiteException: file is encrypted or is not a database
01-08 14:38:47.235: ERROR/Database(23739): at info.guardianproject.database.sqlcipher.SQLiteDatabase.native_setLocale(Native Method)
.
.
.01-08 14:38:48.795: ERROR/Database(23739): CREATE TABLE android_metadata failed
01-08 14:38:48.836: ERROR/Database(23739): Failed to setLocale() when constructing, closing the database
01-08 14:38:48.836: ERROR/Database(23739): info.guardianproject.database.sqlcipher.SQLiteException: file is encrypted or is not a database
01-08 14:38:48.836: ERROR/Database(23739): at info.guardianproject.database.sqlcipher.SQLiteDatabase.native_setLocale(Native Method)
.
.
.
01-08 14:38:48.865: ERROR/SQLiteOpenHelper(23739): Couldn't open nutrition.db.mp3 for writing (will try read-only):
01-08 14:38:48.865: ERROR/SQLiteOpenHelper(23739): info.guardianproject.database.sqlcipher.SQLiteException: file is encrypted or is not a database
01-08 14:38:48.865: ERROR/SQLiteOpenHelper(23739): at info.guardianproject.database.sqlcipher.SQLiteDatabase.native_setLocale(Native Method)
.
,
.
01-08 14:38:50.716: ERROR/AndroidRuntime(23739): FATAL EXCEPTION: main
01-08 14:38:50.716: ERROR/AndroidRuntime(23739): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tebyan.diet/com.tebyan.diet.StartTabBar}: info.guardianproject.database.sqlcipher.SQLiteException: file is encrypted or is not a database
01-08 14:38:50.716: ERROR/AndroidRuntime(23739): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)

I think cipher can not make android_metadata table, but why?
I add this table manualy in DBMS but does not work!
thanks,
yarand

@n8fr8
Copy link
Collaborator

n8fr8 commented Mar 7, 2012

Any progress on this? I am doing some projects with Arabic, Persian and Chinese texts, so will let you know if I encounter the same problem.

@developernotes
Copy link
Member

Hi yarand,

Following up on your post, have you had any progress on this? Your stack trace references a file with the extension .mp3, is that in fact a database file or an audio file?

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