Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3611b9e7 authored by Steve Kondik's avatar Steve Kondik
Browse files

adb: Add "wait-for-sideload" command

 * Waits for connected device to enter sideload mode

Change-Id: I65b4ad86456c13a3bbc48880e12ab7a034707b88
parent 6a34a5f5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -569,6 +569,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;