summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-20 00:22:15 +0200
committerxunchang <xunchang@google.com>2019-04-24 08:50:12 +0200
commit10f441a9dbb91be3124f455439631abcf8e96cde (patch)
tree0ec415f456c6cd2812cd59a52f1261e5f4e1ca49 /recovery_main.cpp
parentMerge "Add test for minadbd" (diff)
downloadandroid_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.tar
android_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.tar.gz
android_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.tar.bz2
android_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.tar.lz
android_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.tar.xz
android_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.tar.zst
android_bootable_recovery-10f441a9dbb91be3124f455439631abcf8e96cde.zip
Diffstat (limited to '')
-rw-r--r--recovery_main.cpp5
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.");