summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Paul Hadfield <hadfieldp@google.com> 2021-11-22 13:48:28 +0000
committer Paul Hadfield <hadfieldp@google.com> 2021-12-07 13:53:46 +0000
commit246c4c1a8661f64072b36985e14c2fa3bb32d57c (patch)
tree47d95f336565bb61e3e026c411028f53ea1443df /libs/androidfw/StringPool.cpp
parentefdc32ca04965640d5308ae165f4a5935bc7f888 (diff)
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 Test: atest FrameworksServicesTests:OperationStoreTest Change-Id: I689d36cdf84504d7710f05f5abcd12fe4bb1b6d8
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions