diff options
author | Tianjie Xu <xunchang@google.com> | 2020-03-14 23:33:29 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-03-14 23:33:29 +0100 |
commit | a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7 (patch) | |
tree | 8651cb90295a8fa07e968c8e584e72f1b9d2a104 /recovery.cpp | |
parent | Merge "recovery: Remove HOST_OS guard for f2fs tools" (diff) | |
parent | Consolidate the wait in recovery's reboot (diff) | |
download | android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.tar android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.tar.gz android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.tar.bz2 android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.tar.lz android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.tar.xz android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.tar.zst android_bootable_recovery-a69c69b26f3dce9bac5b32f3c8f7c6c7115a0de7.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/recovery.cpp b/recovery.cpp index 9ea616e13..b1f106b1c 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -783,13 +783,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 |