You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a device test that migrates an encrypted 2.3.x (schema 6) vault through unlock #127
The upgrade from 2.3.x is tested only in two halves:
EarlierReleaseVaultTest (device test) writes a vault with sqlcipher-android and opens it with the current database. It never migrates: the vault is created at schema 8.
VaultMigrationTest and AppDatabaseSchemaTest migrate 1 to 8 (also 6 to 8), but on an unencrypted database.
Nothing covers an encrypted 2.3.x vault (schema 6) that is migrated 6 to 7 to 8 through the real unlock path. If the migration failed under SQLCipher, every upgraded user would see "database error" on each unlock.
Proposed solution
Add a device test: create a schema 6 database through SupportOpenHelperFactory with the raw key (as 2.3.x did) with a tagged note, a trashed note and a task with a sub-task. Then call SecureDatabaseManager.unlockDatabase(dek) and check the schema 8 data: tags in note_tags, trashedAt set, sub-task kept.
Also use sqlcipher-android 4.19.1 in the test, as 2.3.1 shipped, instead of the 4.20.0 from the current catalog.
Activity
test(database): migrate an encrypted 2.3.x vault through the real unlock
pasichDev commentedon Nov 21, 2026
Fixed in #135, released in 3.0.1.