Is There Any Difference Between Adb Wait-for-device And Adb Wait-for-devices?
There are two commands that I used wait for a device to come up: adb wait-for-device and adb wait-for-devices. Both seem to wait for a device to boot up, I din't find any differenc
Solution 1:
This is how adb
handles the command:
/* handle wait-for-* prefix */
if (!strncmp(argv[0], "wait-for-", strlen("wait-for-"))) {
const char* service = argv[0];
if (!strncmp(service, "wait-for-device", strlen("wait-for-device"))) {
if (ttype == kTransportUsb) {
service = "wait-for-usb";
} else if (ttype == kTransportLocal) {
service = "wait-for-local";
} else {
service = "wait-for-any";
}
}
So any string starting with wait-for-device
would have the same effect
Post a Comment for "Is There Any Difference Between Adb Wait-for-device And Adb Wait-for-devices?"