Expose simple API to select a single adb device
Select an adb device from the output of `adb device -l`. PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005>
This commit is contained in:
@@ -183,6 +183,7 @@ sc_usb_select_device(struct sc_usb *usb, const char *serial,
|
||||
} else {
|
||||
LOGE("Multiple (%" SC_PRIsizet ") USB devices:", sel_count);
|
||||
}
|
||||
sc_usb_devices_log(SC_LOG_LEVEL_ERROR, usb_devices, count);
|
||||
LOGE("Select a device via -s (--serial)");
|
||||
sc_usb_devices_destroy_all(usb_devices, count);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user