summaryrefslogtreecommitdiff
path: root/opengl/libagl/TextureObjectManager.cpp
diff options
context:
space:
mode:
author Oli Lan <olilan@google.com> 2020-03-16 18:18:41 +0000
committer Oli Lan <olilan@google.com> 2020-04-06 14:16:06 +0000
commit23839621268f2d25d976047754a24c6618d513e9 (patch)
tree22634251420813ad276f626bfd69a33a5a47f90d /opengl/libagl/TextureObjectManager.cpp
parent5653ee259cc67b186b056e8a3474741d2dc35289 (diff)
Add installd method to delete CE snapshots.
This adds a new installd service method to allow CE snapshots to be deleted. - This is the rvc-dev version of ag/10752794, to resolve a merge conflict. The existing method for deleting snapshots - destroyAppDataSnapshot - does not work if the user is not unlocked. Although it takes the inode of the snapshot directory, it still cannot access the parent directory and so the delete fails. The new method is destroyCeSnapshotsNotSpecified, as it deletes all CE snapshots for the specified user, except for those with snapshot ids in a provided list. RollbackManager will call this method when the user unlocks, passing a list of all current rollbacks. This will ensure that all expired snapshots are deleted. It will also allow any "orphaned" snapshots (e.g. from tests or previous snapshots that have not been deleted) to be cleaned up. The new method is expected to be called when the user has unlocked - it will fail if the user is not unlocked. Bug: 147806409 Test: atest AppDataSnapshotTest#DestroyCeSnapshotsNotSpecified (new test) Change-Id: Iab048733ac794261f906ffb9e3b19f331dc67a76 Merged-In: Iab048733ac794261f906ffb9e3b19f331dc67a76
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions