importDatabase
suspend fun importDatabase(bundle: DatabaseBundle, name: String = bundle.name, overwrite: Boolean = false, timeout: Duration? = null)(source)
Import the bundle, optionally under another name. Stage all bytes before replacement; discard old sidecars including SHM. Refuse existing files unless overwrite. Multi-file replacement is not an OS transaction: after interrupted commit, do not launch or repeat blindly. Inspect/repair the retained private backup or explicitly clear data first.