For the complete list of changes in each library version, see the
androidx.test.backup release notes.
1.0.0-alpha04
November 4, 2026
- Added
StorageDomaintypes forrunBackupRestoreFlow:DataStorePreferencefor Preferences DataStore,CustomDatafor custom device actions, andExcludedDatato check that excluded data isn't restored. For more information, see Built-in storage types. - Added
isDeviceProtectedStorageto built-inStorageDomaintypes to test device-protected storage. AddedSet<String>value support toStorageDomain.Preference. - Added
restoreOntorunBackupRestoreFlowfor transfers between devices,uninstallApptoBackupRestoreController, andminApiandmaxApibounds to@Device. For more information, see Choose devices. - Added
BackupActionResult.dataandBackupActionResult.getOrThrowto read data returned by device actions and fail when an action fails. - Updated
BackupRestoreExtensionto save logcat from each device when a test fails and list the file paths in the failure output. To turn off log saving, pass-Dandroidx.test.backup.device.logs.enabled=false. For more information, see Inspect test reports. - Registered
BackupRestoreTestRunnerwithInstrumentationRegistryso device actions can callgetInstrumentation. Added an optionaltestApplicationIdvalue to@BackupRestoreConfigand madeapplicationIdoptional. - Removed
BackupDeviceAction.phase,PHASE_POPULATE,PHASE_VERIFY, and theBackupRestoreExtension(AdbSession)constructor. Removeoverride val phasefrom custom device actions.
To use this version, set backupTestLibraryVersion to "1.0.0-alpha04" in your
test suite.
1.0.0-alpha03
October 21, 2026
- Tests in a backup test suite run against the app variant that the suite
targets, so they no longer need
@BackupRestoreConfig. - You can bind a
@Devicerole to a device with theandroidx.test.backup.device.serial.{role}system property. For more information, see Choose devices. - When Google Play services skips your app or needs an update to restore it, the restore fails with an error message that says why. For more information, see Troubleshoot failed restores.
- Bug fixes and reliability improvements.
To use this version, set backupTestLibraryVersion to "1.0.0-alpha03" in
your test suite.
1.0.0-alpha02
October 7, 2026
Bug fixes and improved integration with AGP test suites.
1.0.0-alpha01
September 23, 2026
Initial release for the automated backup and restore testing libraries,
androidx.test.backup:backup and androidx.test.backup:backup-host.