summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-30 00:19:32 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-04-30 00:19:32 +0200
commit3486372d69782073b5cebe07dee14ff580a2531f (patch)
treed97b289dc37b820fa70a79b7a1907cbbebbb4bf3 /recovery.cpp
parentMerge "Add install/wipe_device.cpp." (diff)
parentMerge "Consolidate the codes that handle reboot/shutdown." (diff)
downloadandroid_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.tar
android_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.tar.gz
android_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.tar.bz2
android_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.tar.lz
android_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.tar.xz
android_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.tar.zst
android_bootable_recovery-3486372d69782073b5cebe07dee14ff580a2531f.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp4
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) {