mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 16:50:29 -04:00
Changes: https://android.googlesource.com/platform/system/core/+log/android-7.1.2_r17..android-8.0.0_r4/adb Changes: https://android.googlesource.com/platform/system/core/+log/android-7.1.2_r17..android-8.0.0_r4/fastboot
11 lines
425 B
C++
11 lines
425 B
C++
--- adb/transport_usb.cpp.orig 2017-06-20 10:50:27 UTC
|
|
+++ adb/transport_usb.cpp
|
|
@@ -191,6 +191,8 @@ int is_adb_interface(int usb_class, int usb_subclass,
|
|
bool should_use_libusb() {
|
|
#if defined(_WIN32) || !ADB_HOST
|
|
return false;
|
|
+#elif !defined(__linux__) && !defined(__APPLE__)
|
|
+ return true;
|
|
#else
|
|
static bool disable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "0") == 0;
|
|
return !disable;
|