Skip to content

Unable to access database using raw key data after forcing app to stop #62

Closed
@nadl84

Description

@nadl84

Hi,

I'm trying to use a row key data in order to avoid key derivation (According to the documentation http://sqlcipher.net/sqlcipher-api/#key):

this.myDb = SQLiteDatabase.openOrCreateDatabase(databaseFile, "", null);
this.myDb.rawExecSQL("PRAGMA key = \"x'2DD29CA851E7B56E4697B0E1F08507293D761A05CE4D1B628663F411A8086D99'\"");
Cursor myCursor = this.myDb.rawQuery(query, params);

When I force the application to stop, accessing the data becomes impossible.

This behaviour does not happen without using SQLCipher. The database is readable even after forcing application to stop.

I'm I doing something wrong ?

Thanks in advance,

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