summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2020-03-13 22:25:02 +0100
committerTianjie <xunchang@google.com>2020-03-18 21:46:49 +0100
commite8ca1b86347992d3c92db8e7a25ee77a6280787b (patch)
tree00ee997b3bfb0ea0243b38de336eec8593ac3f2c /recovery.cpp
parentMerge "Add more mounting options to updater mount function." into rvc-dev (diff)
downloadandroid_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.tar
android_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.tar.gz
android_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.tar.bz2
android_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.tar.lz
android_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.tar.xz
android_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.tar.zst
android_bootable_recovery-e8ca1b86347992d3c92db8e7a25ee77a6280787b.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