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

adb server claims usb device: results in USBErrorBusy #213

Open
barkside opened this issue Feb 13, 2023 · 0 comments
Open

adb server claims usb device: results in USBErrorBusy #213

barkside opened this issue Feb 13, 2023 · 0 comments

Comments

@barkside
Copy link

Description

connect() fails with USBErrorBusy. Only way to get past this is to run "adb kill-server" and then quickly retry.
Looks like self._transport.claimInterface(self._interface_number) fails.

transport.kernelDriverActive(iface_number) returns false before this too.

This is using a Xiaomi phone plugged in to Ubuntu 20.

Looking in /sys/bus/usb/drivers/usb/1-1.2/1-1.2:1.0/ (my device) I see driver is:
driver -> ../../../../../../../bus/usb/drivers/usbfs/

Looks like the adb command line - used for "adb devices" for example, claims the device indefinitely.

Anyway around this anyone?

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

No branches or pull requests

1 participant