diff options
-rw-r--r-- | devel/android-tools-adb/Makefile | 1 | ||||
-rw-r--r-- | devel/android-tools-adb/files/patch-usb_libusb.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/devel/android-tools-adb/Makefile b/devel/android-tools-adb/Makefile index 2b318fa8e1f3..e07710d1f486 100644 --- a/devel/android-tools-adb/Makefile +++ b/devel/android-tools-adb/Makefile @@ -3,6 +3,7 @@ PORTNAME= android-tools-adb DISTVERSIONPREFIX= android- DISTVERSION= 5.0.0_r7 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= kevlo@FreeBSD.org diff --git a/devel/android-tools-adb/files/patch-usb_libusb.c b/devel/android-tools-adb/files/patch-usb_libusb.c index 8af304b4f29c..0c39a437a9d8 100644 --- a/devel/android-tools-adb/files/patch-usb_libusb.c +++ b/devel/android-tools-adb/files/patch-usb_libusb.c @@ -9,3 +9,16 @@ static libusb_context *ctx = NULL; struct usb_handle +@@ -347,7 +347,11 @@ register_device(struct usb_handle *uh, c + + adb_mutex_unlock(&usb_lock); + +- register_usb_transport(usb, serial, NULL, 1); ++ char devpath[64]; ++ snprintf(devpath, sizeof(devpath), "ugen%d.%d", ++ uh->dev_bus, uh->dev_addr); ++ ++ register_usb_transport(usb, serial, devpath, 1); + + return (1); + } |