summaryrefslogtreecommitdiffstats
path: root/update_verifier/update_verifier.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-11-15 00:07:25 +0100
committerTianjie Xu <xunchang@google.com>2019-11-15 02:43:56 +0100
commit88bf6d20ebbf8850a2389ede2e959b10d7ebe09e (patch)
tree83976e1de0958366619a94de8ad18d67dfbf98f5 /update_verifier/update_verifier.cpp
parentMerge "Consolidate the vendor space misc usage for Pixels" (diff)
downloadandroid_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.tar
android_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.tar.gz
android_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.tar.bz2
android_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.tar.lz
android_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.tar.xz
android_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.tar.zst
android_bootable_recovery-88bf6d20ebbf8850a2389ede2e959b10d7ebe09e.zip
Diffstat (limited to 'update_verifier/update_verifier.cpp')
-rw-r--r--update_verifier/update_verifier.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/update_verifier/update_verifier.cpp b/update_verifier/update_verifier.cpp
index d04c455d8..a042f9008 100644
--- a/update_verifier/update_verifier.cpp
+++ b/update_verifier/update_verifier.cpp
@@ -371,6 +371,10 @@ int update_verifier(int argc, char** argv) {
return reboot_device();
}
LOG(INFO) << "Marked slot " << current_slot << " as booted successfully.";
+ // Clears the warm reset flag for next reboot.
+ if (!android::base::SetProperty("ota.warm_reset", "0")) {
+ LOG(WARNING) << "Failed to reset the warm reset flag";
+ }
} else {
LOG(INFO) << "Deferred marking slot " << current_slot << " as booted successfully.";
}