-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Add --no-kill-adb-before-hid
option
#4035
Conversation
Add an option not to kill the adb daemon on Windows if --otg is specified. Refs #4028 <#4028> PR #4035 <#4035> Signed-off-by: Romain Vimont <[email protected]>
Thank you. I made some changes/fixes, and renamed hid to otg: branch However, after thinking about it, I think this option is useless. In #4032, you say:
If you start the adb daemon first, and don't kill it, your device will not be detected in otg mode, so |
You mean the scrcpy still uses adb to detect the Android device even with the |
Maybe Scrcpy can call |
No, but if the USB device is open by adb, then scrcpy will not be able to open it separately for OTG. On other OS, it is perfectly ok to open a USB device already open by another program, but not on Windows. @yume-chan maybe, to be tested. 😃 |
How about the adb over TCP? I know it's impossible to use mirroring and otg on the same phone via USB, but I can use mirroring over TCP and otg over USB at the same time. Do you mean the device becomes undetectable if it is connected by adb, even via TCP? |
By default, IIRC, if you plug the device and USB debugging is enabled, the adb daemon will detect it and open it, even if you don't use it. |
If so, this option is useless indeed. Thank you for checking this. |
Tried the
Launch adb with libusb backend:
it crashes immediately (due to unknow error, not the error it logged). |
Thank you for the test 👍 |
Hi. This is for #4028 (comment)
I'm not sure if the option name is good or not.