Add LifecycleOperationStorage and tests
This is preparatory work to fix bug b/161089758 where it's possible for an app's BackupAgent to crash and leave the app in 'restricted mode' when subsequently relaunched. The bug fix involves storing new associations between package name and operation tokens. Rather than further extend UserBackupManagerService, this change introduces a new LifecycleOperationStorage class, and interface OperationStorage, which takes the responsibility for storing Operations by token, the associated locking, and adds the new mapping from package name to operation tokens. Later changes will refactor UserBackupManagerService to use LifecycleOperationStorage, and several related classes to use OperationStorage. BUG: 161089758 Change-Id: Ib3a3d4f6f88c49bbfa82068c625a2abae720dd92 Test: atest FrameworksServicesTests:OperationStoreTest
Loading
Please register or sign in to comment