diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-05-19 01:10:54 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-05-19 01:10:54 +0000 |
commit | 91148b0bdb94795f4434193cc4fc38f1d870a19c (patch) | |
tree | 168784584f7401cb3522307246fb7c5739a506e8 | |
parent | a6c543c64b135f521cae645c2f882d78bf7307e8 (diff) | |
parent | 56ce23ae3ac59bc21ceaa747742c2a048b0762df (diff) |
Snap for 7375516 from 56ce23ae3ac59bc21ceaa747742c2a048b0762df to sc-release
Change-Id: I8a46cf010da07c55434aadd53ea245ab4b0eb2d4
-rw-r--r-- | aosp/update_attempter_android.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/aosp/update_attempter_android.cc b/aosp/update_attempter_android.cc index 2ffa0da3..4636c430 100644 --- a/aosp/update_attempter_android.cc +++ b/aosp/update_attempter_android.cc @@ -364,6 +364,12 @@ bool UpdateAttempterAndroid::ResetStatus(brillo::ErrorPtr* error) { LOG(INFO) << "Attempting to reset state from " << UpdateStatusToString(status_) << " to UpdateStatus::IDLE"; + if (apex_handler_android_ != nullptr) { + LOG(INFO) << "Cleaning up reserved space for compressed APEX (if any)"; + std::vector<ApexInfo> apex_infos_blank; + apex_handler_android_->AllocateSpace(apex_infos_blank); + } + switch (status_) { case UpdateStatus::IDLE: { if (!boot_control_->GetDynamicPartitionControl()->ResetUpdate(prefs_)) { |