ws-scrcpy icon indicating copy to clipboard operation
ws-scrcpy copied to clipboard

Devices of the same model cannot read the second one

Open zhubinsheng opened this issue 2 years ago • 6 comments

zhubinsheng avatar Mar 08 '22 02:03 zhubinsheng

Screenshot from 2022-03-08 10-21-02 805ad2e0 is same;

zhubinsheng avatar Mar 08 '22 02:03 zhubinsheng

Can you post the output of the adb devices command?

UPD: Or better adb devices -l.

drauggres avatar Mar 08 '22 08:03 drauggres

At the moment I use serial number to distinguish between devices (e.g. same as in adb -s SERIAL shell). Meaning that devices with identical serial number can't be accessed at the same time this way.

drauggres avatar Mar 08 '22 08:03 drauggres

In fact, can't select a device with the ADB - s command

zhubinsheng avatar Mar 09 '22 16:03 zhubinsheng

In this project I use https://github.com/DeviceFarmer/adbkit, it only supports serial numbers to access specific devices. With adb you can use -t TRANSPORT_ID.

I think adding support for addressing devices by transport-id in adbkit is possible, but I can't do it right now.

P.S. AFAIK serial number should be unique, so this is not a common problem.

drauggres avatar Mar 09 '22 16:03 drauggres

i am using same models and don't see this issue on my end

krishtoautomate avatar Mar 09 '22 21:03 krishtoautomate