summaryrefslogtreecommitdiff
path: root/common/dynamic_partition_control_interface.h
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-03-24 17:47:32 -0700
committerYifan Hong <elsk@google.com>2020-03-27 16:12:48 -0700
commit6950e02536ca247d35ff14cfb2214ab9463a9e87 (patch)
treec9222d87fd7fcb12c4806560160e011f2af451d4 /common/dynamic_partition_control_interface.h
parent3a3d0c121fd904ce8440260ee2f5d12ea09d12e2 (diff)
Allow forward merge on powerwash.
If package schedules powerwash, snapshots on a Virtual A/B device will be deleted. Tell SnapshotManager to handle this case. Test: apply downgrade package Test: apply package with wipe Test: apply package then manually wipe Bug: 152094219 Change-Id: I8601b661924abcc82956788e2f33cdb70d71f778 (cherry picked from commit 7b3910a58bd0b8d9f0bd316fad5776ef0a8494ba) Merged-In: I8601b661924abcc82956788e2f33cdb70d71f778
Diffstat (limited to 'common/dynamic_partition_control_interface.h')
-rw-r--r--common/dynamic_partition_control_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/dynamic_partition_control_interface.h b/common/dynamic_partition_control_interface.h
index d5db9bcd..58ebfe46 100644
--- a/common/dynamic_partition_control_interface.h
+++ b/common/dynamic_partition_control_interface.h
@@ -87,7 +87,7 @@ class DynamicPartitionControlInterface {
// After writing to new partitions, before rebooting into the new slot, call
// this function to indicate writes to new partitions are done.
- virtual bool FinishUpdate() = 0;
+ virtual bool FinishUpdate(bool powerwash_required) = 0;
// Get an action to clean up previous update.
// Return NoOpAction on non-Virtual A/B devices.