commit | 1d3b40ca6f39cd6eba817a96419fc8ec7a2a68dd | [log] [tgz] |
---|---|---|
author | Daniel Zheng <zhengdaniel@google.com> | Sat Sep 24 02:38:14 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Sep 24 02:38:14 2022 +0000 |
tree | 83f0a7a6197776a71abb3a1932f2c6ac38588e59 | |
parent | c3d9de7ba9ad0a7692a4a7ad4c3623deec4b742c [diff] | |
parent | 9e6bfc1a018052e6033e678fe97848852fcdeb37 [diff] |
Mark inactive slot as invalid after OTA completion am: 9e6bfc1a01 Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/2221688 Change-Id: I24cffec4037006cae6f57c8476d1244f2343d71f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/aosp/cleanup_previous_update_action.cc b/aosp/cleanup_previous_update_action.cc index 2aba9bf..fb7bac1 100644 --- a/aosp/cleanup_previous_update_action.cc +++ b/aosp/cleanup_previous_update_action.cc
@@ -328,6 +328,7 @@ case UpdateState::MergeCompleted: { LOG(INFO) << "Merge finished with state MergeCompleted."; + boot_control_->MarkSlotUnbootable(1 - boot_control_->GetCurrentSlot()); processor_->ActionComplete(this, ErrorCode::kSuccess); return; }