diff options
author | Tao Bao <tbao@google.com> | 2019-04-24 22:33:18 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-04-24 22:33:18 +0200 |
commit | cf1f715d624ce677868b44d9102bff39ea82e0e8 (patch) | |
tree | 0ec415f456c6cd2812cd59a52f1261e5f4e1ca49 /recovery_main.cpp | |
parent | Merge "Add test for minadbd" (diff) | |
parent | minadbd: Support `adb reboot` under sideload/rescue modes. (diff) | |
download | android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.tar android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.tar.gz android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.tar.bz2 android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.tar.lz android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.tar.xz android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.tar.zst android_bootable_recovery-cf1f715d624ce677868b44d9102bff39ea82e0e8.zip |
Diffstat (limited to '')
-rw-r--r-- | recovery_main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp index 37d9da0d7..0eb2962e1 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -477,6 +477,11 @@ int main(int argc, char** argv) { android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,bootloader"); break; + case Device::REBOOT_RESCUE: + ui->Print("Rebooting to rescue...\n"); + android::base::SetProperty(ANDROID_RB_PROPERTY, "reboot,rescue"); + break; + case Device::ENTER_FASTBOOT: if (logical_partitions_mapped()) { ui->Print("Partitions may be mounted - rebooting to enter fastboot."); |