aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaju Mathew <shaju@google.com>2024-02-29 15:53:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-02-29 15:53:06 +0000
commit7f5b26856095feb3836f923e47684f41b2a9855f (patch)
tree1b3d590c67e0ef8568162e84c96d6cfbba6e9691
parentb683bd657cb5edfa334ecdac550c515872bb4bdb (diff)
parentc78b41ce1823ea42ecc8c1ced01f4ade787fb5c0 (diff)
downloadadb-7f5b26856095feb3836f923e47684f41b2a9855f.tar.gz
Merge "Revert "Defaulting to libusb for all hosts, including Windows"" into main
-rw-r--r--client/transport_usb.cpp3
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);