Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an option to select a device, when multiple devices are connected #1965

Closed
1 task done
Kikju opened this issue Dec 10, 2020 · 4 comments
Closed
1 task done

Comments

@Kikju
Copy link

Kikju commented Dec 10, 2020

Often I have connected multiple emulators and phones to my computer. I have to open separate terminal, list the devices via adb devices and then copy each serial number and run scrcpy with -s argument. Or often I just launch scrcpy without arguments, and I get an error adb: error: failed to get feature set: more than one device/emulator.
It would be helpful, to provide an option to choose a specific device and continue instead of error "more than one device/emulator".

It could looks like this:

Multiple devices detected. To continue, please type the order of device you want to launch:
1. emulator-5554
2. 0123456789abcdef

Then I could just type "2" to continue and open scrcpy with selected device.

@PonyPC
Copy link

PonyPC commented Dec 20, 2020

I agree with adding this feature, this also occurred while enabled wifi adb connection in one device.
But there are several applications that provide a user friendly UI such as QtScrcpy you can try: https://github.com/barry-ran/QtScrcpy
It is enough for developing android apk though some bugs in listing devices on my desktop.
I prefer this software AnLink https://anl.ink which seems use same technology from scrcpy, it is more convenient than QtScrcpy but not open source software, so choose your favorite.
Wish scrcpy could add an UI to choose devices.

@erawhctim
Copy link

Would love to see something like this implemented. Another option (that mimics adb behavior) would be to add -d and -e flags to indicate a device vs. emulator?

@rom1v
Copy link
Collaborator

rom1v commented Feb 7, 2022

Oh, I forgot about this feature request.

I implemented such a feature this week-end: please review #3005.

@rom1v
Copy link
Collaborator

rom1v commented Feb 9, 2022

Fixed by #3005.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants