dbプレーン データベース ( ) から SQLCipher で暗号化された接続データベース ( ) にデータをコピーしようとすると、「そのようなテーブルはありません」という例外が発生しますsource。
StringBuilder attachDatabase = new StringBuilder();
attachDatabase.append("ATTACH DATABASE '").append(this.db.getPath()).
append("' as ").append(NEW_DB_ALIAS).
append(" KEY '").append("123").append("';");
source.execSQL(attachDatabase.toString());
StringBuilder copyTable = new StringBuilder();
String table = "t1";
copyTable.append("INSERT INTO ").append(NEW_DB_ALIAS).append(".").append(table).
append(" SELECT * FROM ").append(table).append(";");
db.execSQL(copyTable.toString());
暗号化されたデータベースが作成され、暗号化されていないデータベースと同じスキームになります。何が問題なのですか?