summaryrefslogtreecommitdiff
path: root/aosp/update_attempter_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'aosp/update_attempter_android.cc')
-rw-r--r--aosp/update_attempter_android.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/aosp/update_attempter_android.cc b/aosp/update_attempter_android.cc
index 7bef9db1..b02e6007 100644
--- a/aosp/update_attempter_android.cc
+++ b/aosp/update_attempter_android.cc
@@ -265,6 +265,7 @@ bool UpdateAttempterAndroid::ApplyPayload(
install_plan_.is_resume = !payload_id.empty() &&
DeltaPerformer::CanResumeUpdate(prefs_, payload_id);
if (!install_plan_.is_resume) {
+ boot_control_->GetDynamicPartitionControl()->Cleanup();
// No need to reset dynamic_partititon_metadata_updated. If previous calls
// to AllocateSpaceForPayload uses the same payload_id, reuse preallocated
// space. Otherwise, DeltaPerformer re-allocates space when the payload is