Skip to content
Commit a67d744a authored by Paul Hadfield's avatar Paul Hadfield
Browse files

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
parent efdc32ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment