summaryrefslogtreecommitdiff
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-04-04 13:31:30 -0700
committerElliott Hughes <enh@google.com>2018-04-04 13:31:30 -0700
commit2cb9075b63777667ff2c75bbb2b9085e606423e2 (patch)
tree7f128413dbbd62d6899f442136065843243fbeb2 /fastboot/fastboot.cpp
parentb76188ffc1afbb6f0d814f3da2930e2b25287963 (diff)
Remove `reboot emergency`.
This isn't in the bootloader requirements doc, and the internet implies that you actually need to use `fastboot oem edl` or `fastboot oem reboot-edl` anyway. Bug: N/A Test: N/A Change-Id: I0b7cd9839fbd06fc104d029e92d5986dc3c6eda3
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r--fastboot/fastboot.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 091b117bd..ee92e99dc 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -1451,7 +1451,6 @@ int main(int argc, char **argv)
bool wants_wipe = false;
bool wants_reboot = false;
bool wants_reboot_bootloader = false;
- bool wants_reboot_emergency = false;
bool skip_reboot = false;
bool wants_set_active = false;
bool skip_secondary = false;
@@ -1693,9 +1692,6 @@ int main(int argc, char **argv)
if (what == "bootloader") {
wants_reboot = false;
wants_reboot_bootloader = true;
- } else if (what == "emergency") {
- wants_reboot = false;
- wants_reboot_emergency = true;
} else {
syntax_error("unknown reboot target %s", what.c_str());
}
@@ -1837,9 +1833,6 @@ int main(int argc, char **argv)
} else if (wants_reboot_bootloader) {
fb_queue_command("reboot-bootloader", "rebooting into bootloader");
fb_queue_wait_for_disconnect();
- } else if (wants_reboot_emergency) {
- fb_queue_command("reboot-emergency", "rebooting into emergency download (EDL) mode");
- fb_queue_wait_for_disconnect();
}
int status = fb_execute_queue(transport) ? EXIT_FAILURE : EXIT_SUCCESS;