summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-15 00:04:41 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-03-15 00:04:41 +0100
commit2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41 (patch)
treeceb1f2b9782fe6be040a97bcb9cc92b25667b590 /recovery.cpp
parentMerge "recovery: Remove HOST_OS guard for f2fs tools" am: 95101e7fca am: a233cb1261 (diff)
parentMerge "Consolidate the wait in recovery's reboot" am: a69c69b26f (diff)
downloadandroid_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.tar
android_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.tar.gz
android_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.tar.bz2
android_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.tar.lz
android_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.tar.xz
android_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.tar.zst
android_bootable_recovery-2bc65f82f6a4a9c10502fac4c86498ff3f0cbd41.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 0382697ab..7675121d4 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -781,13 +781,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
ui->Print("Retry attempt %d\n", retry_count);
// Reboot back into recovery to retry the update.
- if (!Reboot("recovery")) {
- ui->Print("Reboot failed\n");
- } else {
- while (true) {
- pause();
- }
- }
+ Reboot("recovery");
}
// If this is an eng or userdebug build, then automatically
// turn the text display on if the script fails so the error