Successfully modified file: /home/Messier82/projects/service-book/app/src/androidTest/java/com/yorvana/testsupport/VaultFixture.kt (1 replacements). Here is the updated code: ... fun writeBytes( relativePath: String, bytes: ByteArray, ) { val file = fileFor(relativePath, create = true) ?: error("Unable to create $relativePath") android.util.Log.d("VaultFixture", "Writing $relativePath to ${file.uri}") context.contentResolver.openOutputStream(file.uri, "rwt")?.use { it.write(bytes) } ?: error("Unable to write $relativePath") } fun exists(relativePath: String): Boolean = fileFor(relativePath, create = false)?.exists() == true ...