rom1v / autoadb

Execute a command whenever a device is adb-connected
529 stars 60 forks source link

How to open only a single control window when there are multiple adb devices #26

Closed shenghuang147 closed 2 months ago

shenghuang147 commented 2 months ago

When there are two devices in my adb devices for example:

$ : adb adb devices
List of devices attached
192.168.43.10:5555 device
192.168.43.234:5555 device

I use autoadb scrcpy -s 192.168.43.10:5555 This opens two 192.168.43.10:5555 connection windows repeatedly.

图片

Is this expected behavior or is there a problem?

rom1v commented 2 months ago

If you want to use 1 single session for a specific device, use:

scrcpy -s 192.168.43.10:5555

If you want to open 1 scrcpy instance for each connected device, use:

autoadb scrcpy -s '{}'
shenghuang147 commented 2 months ago

If you want to use 1 single session for a specific device, use:

scrcpy -s 192.168.43.10:5555

If you want to open 1 scrcpy instance for each connected device, use:

autoadb scrcpy -s '{}'

Well, thank you