Skip to content

net.sqlcipher.database.SQLiteException: file is not a database #558

@trycatchx

Description

@trycatchx

SQLCipher version (can be identified by executing PRAGMA cipher_version;):
4.4.3
SQLCipher for Android version:
4.4.3

i update SQLCipher for Android from 4.3.0 to 4.4.3

I get bug log:

2021-07-19 15:07:53.176 27541-27541/com.cj.app W/com.cj.app: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2021-07-19 15:07:53.177 27541-27570/com.cj.app D/ViewContentFactory: initViewContentFetcherClass took 8ms
2021-07-19 15:07:53.177 27541-27570/com.cj.app I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2021-07-19 15:07:53.177 27541-27570/com.cj.app D/ViewContentFactory: createInterceptor took 8ms
2021-07-19 15:07:53.236 27541-27541/com.cj.app I/Database: JNI_OnLoad called
2021-07-19 15:07:53.236 27541-27541/com.cj.app I/Database: JNI_OnLoad register methods 
2021-07-19 15:07:53.238 27541-27541/com.cj.app V/Database: Registering sqlite logging func 
2021-07-19 15:07:53.239 27541-27541/com.cj.app V/Database: Opened '/data/user/0/com.cj.app/databases/tcl_plus_mall_test.db' - 0xea575108
2021-07-19 15:07:53.240 27541-27541/com.cj.app V/Cursor: Prepared statement 0xe694c1f8 on 0xea575108
2021-07-19 15:07:53.243 27541-27541/com.cj.app V/Cursor: <<< Releasing cursor net.sqlcipher.database.SQLiteCursor@adfd3bb
2021-07-19 15:07:53.243 27541-27541/com.cj.app V/DatabaseWindow: closing window in release()
2021-07-19 15:07:53.244 27541-27541/com.cj.app I/Database: sqlite returned: error code = 283, msg = recovered 46 frames from WAL file /data/user/0/com.cj.app/databases/tcl_plus_mall_test.db-wal
2021-07-19 15:07:53.244 27541-27541/com.cj.app I/Database: sqlite returned: error code = 26, msg = file is not a database in "select count(*) from sqlite_master;"
2021-07-19 15:07:53.246 27541-27541/com.cj.app E/Database: file is not a database: , while compiling: select count(*) from sqlite_master;
    net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master;

Can anyone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions