diff options
author | Tao Bao <tbao@google.com> | 2019-04-29 23:53:41 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-04-29 23:53:41 +0200 |
commit | 189c8f9aebd99c2793f99ed8289cb86efda08261 (patch) | |
tree | c3b9c8facbf2b5cad17e39f8df138c2f8f837e94 /recovery.cpp | |
parent | Merge "Add install/wipe_device.cpp." (diff) | |
parent | Consolidate the codes that handle reboot/shutdown. (diff) | |
download | android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.tar android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.tar.gz android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.tar.bz2 android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.tar.lz android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.tar.xz android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.tar.zst android_bootable_recovery-189c8f9aebd99c2793f99ed8289cb86efda08261.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recovery.cpp b/recovery.cpp index 3cb6d6de5..36813904a 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -734,8 +734,8 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri // Print retry count on screen. ui->Print("Retry attempt %d\n", retry_count); - // Reboot and retry the update - if (!reboot("reboot,recovery")) { + // Reboot back into recovery to retry the update. + if (!Reboot("recovery")) { ui->Print("Reboot failed\n"); } else { while (true) { |