I’m using a prepopulated room db in my android project with .createFromAsset(DB_FILE_PATH)
. Users cant change the content of the db. When app starts it creates 3 files in data/data/package_name...
(.db ; .db-shm ; .db-wal) and all the db reads are done from there.
When existing user updates app from play store, with an updated DB in assets/database/database.db
(tables stay the same, only a few data tweaks) what happens with those 3 db files (.db ; .db-shm ; .db-wal), or better question, will the user see updated data from assets or will old data still be used from 3 .db file from data/data...
?
1