adb: add adb raw
to connect to an arbitrary service.
Add a command to connect to an arbitrary service, for debugging purposes. Test: `adb raw shell:ls` Change-Id: I69d4d585e5ecfa7cb8c7a543a2a27df7033b26c7
This commit is contained in:
parent
169aa989e3
commit
172d0d44bc
1 changed files with 5 additions and 0 deletions
|
@ -1795,6 +1795,11 @@ int adb_commandline(int argc, const char** argv) {
|
|||
}
|
||||
else if (!strcmp(argv[0], "track-devices")) {
|
||||
return adb_connect_command("host:track-devices");
|
||||
} else if (!strcmp(argv[0], "raw")) {
|
||||
if (argc != 2) {
|
||||
return syntax_error("adb raw SERVICE");
|
||||
}
|
||||
return adb_connect_command(argv[1]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue