summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-04-13 07:07:11 -0700
committerSteve Kondik <steve@cyngn.com>2015-10-17 17:47:21 -0700
commit01274cc73fa9fd8da3899b0078a193ab5a2dc997 (patch)
tree1b8d4bf4fb68da88ca454f912312ad13e8fc002e /adb
parent0db9d6164e426f7413e546772fbd9f8218366fc2 (diff)
downloadsystem_core-01274cc73fa9fd8da3899b0078a193ab5a2dc997.zip
system_core-01274cc73fa9fd8da3899b0078a193ab5a2dc997.tar.gz
system_core-01274cc73fa9fd8da3899b0078a193ab5a2dc997.tar.bz2
adb: Add "wait-for-sideload" command
* Waits for connected device to enter sideload mode Change-Id: I65b4ad86456c13a3bbc48880e12ab7a034707b88
Diffstat (limited to 'adb')
-rw-r--r--adb/services.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/adb/services.cpp b/adb/services.cpp
index 7398797..4e8e5a8 100644
--- a/adb/services.cpp
+++ b/adb/services.cpp
@@ -685,6 +685,9 @@ asocket* host_service_to_socket(const char* name, const char *serial)
} else if (!strncmp(name, "any", strlen("any"))) {
sinfo->transport = kTransportAny;
sinfo->state = CS_DEVICE;
+ } else if (!strncmp(name, "sideload", strlen("sideload"))) {
+ sinfo->transport = kTransportAny;
+ sinfo->state = CS_SIDELOAD;
} else {
free(sinfo);
return NULL;