Scrcpy: Connecting Multiple Devices

Created on 17 Jan 2019  路  11Comments  路  Source: Genymobile/scrcpy

I just starting using this app and tried connecting multiple phones to pc via USB. I get this error when trying to run.
adb: error: failed to get feature set: more than one device/emulator
ERROR: "adb push" returned with value 1

Sorry if its a noob question but I am not the best at running command lines and stuff

Most helpful comment

adb devices

gives you a list of connected devices, with their serial number.

Use:

scrcpy -s your_device_serial_number

to start scrcpy for a specific device.

All 11 comments

adb devices

gives you a list of connected devices, with their serial number.

Use:

scrcpy -s your_device_serial_number

to start scrcpy for a specific device.

Maybe we can provide an interactive interface or a hint for multiple devices case.

For example:

There are more than one device connected.
    1. b23b92cc
    2. XXXXXX
    ...
Please select a specific device for continuing start scrcpy [1]:

Or:

There are more than one device connected.
    1. b23b92cc
    2. XXXXXX
    ...
Please start scrcpy with -s and specify the device serial number.

How do you feel?

I actually got it now, thanks so much. Another question is when I mimimize I can not locate the phone anymore, only the cmd window.,

How do you feel?

I don't know. It may help, but it's inherently racy (and we have to parse adb output to get more details).

Another question is when I mimimize I can not locate the phone anymore

It should still be on your desktop, at the other end of your USB cable :trollface:

More seriously, could you send a screenshot?

I don't know. It may help, but it's inherently racy (and we have to parse adb output to get more details).

Or just give a sexy response, for example:

There are more than one device connected.
Please get the correct device serial number by adb devices.
After it, start the scrcpy with --serial.

There are more than one device connected.

OK, but it still requires to parse the output of adb (to detect the cause).
And this error is "expected" over wifi (even if there is only 1 device).

There are more than one device connected.

OK, but it still requires to parse the output of adb (to detect the cause).
And this error is "expected" over wifi.

So sad.

sudo did the job for me:

  1. scrcpy -s 234324fsdfasdf4r
  2. sudo scrcpy -s 6058ediba07c4f8c4 -p 114

@tieorange sudo is not necessary for ports >= 1024.

https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html

@tieorange Where I write that? pls

Was this page helpful?
0 / 5 - 0 ratings

Related issues

npes87184 picture npes87184  路  3Comments

sennight picture sennight  路  3Comments

qymspace picture qymspace  路  3Comments

YurieCo picture YurieCo  路  4Comments

jonnybrooks picture jonnybrooks  路  3Comments