summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-20 00:22:15 +0200
committerTao Bao <tbao@google.com>2019-04-26 21:25:02 +0200
commit7b9b7db877f082a9adaa8b8a8572940cb5720a11 (patch)
treec2ae03dbad729d44022c379bcc6ce429b2c93b27 /recovery_main.cpp
parentAdd test for minadbd (diff)
downloadandroid_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.gz
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.bz2
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.lz
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.xz
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.zst
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.zip
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 38e1db73b..18abff765 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -478,6 +478,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.");