From f2f0b318508fec66fc07044b34f602960f399e5b Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 2 Mar 2017 13:23:56 -0800 Subject: [PATCH] adb: turn on libusb by default. Bug: http://b/31321337 Test: python test_device.py Change-Id: Idb2ff1108331bf505feeeb943b6be7bb78124618 --- adb/transport_usb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adb/transport_usb.cpp b/adb/transport_usb.cpp index e16cf12e3..516b4f20d 100644 --- a/adb/transport_usb.cpp +++ b/adb/transport_usb.cpp @@ -102,7 +102,7 @@ bool should_use_libusb() { #if defined(_WIN32) || !ADB_HOST return false; #else - static bool enable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "1") == 0; - return enable; + static bool disable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "0") == 0; + return !disable; #endif }