diff options
author | Shaju Mathew <shaju@google.com> | 2024-02-28 22:53:37 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-02-28 22:53:37 +0000 |
commit | c78b41ce1823ea42ecc8c1ced01f4ade787fb5c0 (patch) | |
tree | 7de874d8e627c7375b52fb21ef1ef1846e193aa1 | |
parent | ac561557369689f250bebe8982b77d55957ec2f0 (diff) | |
download | adb-c78b41ce1823ea42ecc8c1ced01f4ade787fb5c0.tar.gz |
Revert "Defaulting to libusb for all hosts, including Windows"
This reverts commit ac561557369689f250bebe8982b77d55957ec2f0.
Reason for revert: breaks on Windows: pending hotplug support, either built into the hidden window mechanism like https://googleplex-android-review.git.corp.google.com/c/platform/packages/modules/adb/+/26045562/1/client/usb_windows.cpp or preferably libusb 1.0.28 release which is proposed atm
Change-Id: I27ba297f05de66720047023b12913968ee996d41
-rw-r--r-- | client/transport_usb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/transport_usb.cpp b/client/transport_usb.cpp index 5c0799ee..998f73c9 100644 --- a/client/transport_usb.cpp +++ b/client/transport_usb.cpp @@ -179,6 +179,9 @@ bool is_adb_interface(int usb_class, int usb_subclass, int usb_protocol) { bool should_use_libusb() { bool enable = true; +#if defined(_WIN32) + enable = false; +#endif char* env = getenv("ADB_LIBUSB"); if (env) { enable = (strcmp(env, "1") == 0); |