summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index cdf1de3..e36e7d9 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1521,8 +1521,13 @@ main(int argc, char **argv) {
break;
case Device::REBOOT_BOOTLOADER:
+#ifdef DOWNLOAD_MODE
+ ui->Print("Rebooting to download mode...\n");
+ property_set(ANDROID_RB_PROPERTY, "reboot,download");
+#else
ui->Print("Rebooting to bootloader...\n");
property_set(ANDROID_RB_PROPERTY, "reboot,bootloader");
+#endif
break;
default: