Merge "adb: turn on libusb by default." am: 817b2f3b2c

am: ef501512fa

Change-Id: If47ca0f1e6d09ff3dc9481f9cd68e6ff315f7781
This commit is contained in:
Josh Gao 2017-03-04 00:33:21 +00:00 committed by android-build-merger
commit c92f1c2ba7

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
}