Revert "adb: turn on libusb by default."

This reverts commit f2f0b31850.

libusb seems to be causing flakiness on some machines. Disable it for
now.

Bug: http://b/62962248
Test: python test_device.py (with DeviceOfflineTest commented out)
Change-Id: Ia9de78ab772c22574cf5ca7facb78f22af6d7a71
(cherry picked from commit 969110ca4a)
This commit is contained in:
Josh Gao 2017-06-26 12:16:30 -07:00
parent 712b628d70
commit aabd9a09b5

View file

@ -192,7 +192,7 @@ bool should_use_libusb() {
#if defined(_WIN32) || !ADB_HOST
return false;
#else
static bool disable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "0") == 0;
return !disable;
static bool enable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "1") == 0;
return enable;
#endif
}