adb: add reboot-fastboot command
Alias reboot-fastboot to reboot fastboot Test: manual Bug: 117604012 Change-Id: I5f7842e420fbc0b1d9ae8e1231887fb8644b29e9
This commit is contained in:
parent
ce2a8e5b9e
commit
d8e94bd3f2
1 changed files with 5 additions and 0 deletions
|
@ -1580,15 +1580,20 @@ int adb_commandline(int argc, const char** argv) {
|
|||
}
|
||||
return adb_connect_command(android::base::StringPrintf("tcpip:%d", port));
|
||||
}
|
||||
// clang-format off
|
||||
else if (!strcmp(argv[0], "remount") ||
|
||||
!strcmp(argv[0], "reboot") ||
|
||||
!strcmp(argv[0], "reboot-bootloader") ||
|
||||
!strcmp(argv[0], "reboot-fastboot") ||
|
||||
!strcmp(argv[0], "usb") ||
|
||||
!strcmp(argv[0], "disable-verity") ||
|
||||
!strcmp(argv[0], "enable-verity")) {
|
||||
// clang-format on
|
||||
std::string command;
|
||||
if (!strcmp(argv[0], "reboot-bootloader")) {
|
||||
command = "reboot:bootloader";
|
||||
} else if (!strcmp(argv[0], "reboot-fastboot")) {
|
||||
command = "reboot:fastboot";
|
||||
} else if (argc > 1) {
|
||||
command = android::base::StringPrintf("%s:%s", argv[0], argv[1]);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue