adb: turn on libusb by default.

Bug: http://b/31321337
Test: python test_device.py
Change-Id: Idb2ff1108331bf505feeeb943b6be7bb78124618
This commit is contained in:
Josh Gao 2017-03-02 13:23:56 -08:00
parent 497cb085c7
commit f2f0b31850
1 changed files with 2 additions and 2 deletions

View File

@ -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
}