Skip to content
Commit 856391f5 authored by Oli Lan's avatar Oli Lan
Browse files

Move enable/snapshot/restore/delete methods to the Rollback class.

This moves functionality around snapshotting, restoring, and deleting app data,
and enabling rollbacks, into the Rollback class.

Note that the new methods still rely on the AppDataRollbackHelper class - that
functionality may be combined into Rollback in future but those changes are not
in scope for this CL.

This is part of a series of changes to move rollback-specific functionality
into the Rollback class. Once these are completed, synchronisation can be
moved to be internal to Rollback, and the internal state of the Rollback class
can be cleaned up.

Bug: 136241838
Test: atest RollbackTest
Test: atest StagedRollbackTest
Test: atest CtsRollbackManagerHostTestCases
Test: atest RollbackUnitTest (new unit tests added)
Change-Id: I0d3996f1718893046d82e7a0644ea757cc76a01e
parent 7363a621
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