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:
Josh Gao 2018-06-18 14:51:56 -07:00
parent 169aa989e3
commit 172d0d44bc

View file

@ -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]);
}