I encrypted my already existing sqlite database using following method given on sqlcipher documentation
$ ./sqlite3 plaintext.db
sqlite> ATTACH DATABASE 'encrypted.db' AS encrypted KEY 'testkey';
sqlite> SELECT sqlcipher_export('encrypted');
sqlite> DETACH DATABASE encrypted;
this works and produces an encrypted database with comparable memory size like original. and then I tried to access the database on my android application using
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(myDatabasePath, "testkey", null);
querying on db instance shows that there are no existing tables in the database. I am able to create new tables as well as add rows to them and read them but I can't see my old existing tables. I carefully followed the guidelines given in the sqlcipher documentation of changing imports.