FreeBSD Bugzilla – Attachment 155214 Details for
Bug 199185
[devel/android-tools-adb][patch] Accept devices w/o serial number
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Teach usb_libusb.c to use devices without serial number
patch-adb (text/plain), 1.35 KB, created by
Marcin Cieślak
on 2015-04-05 20:17:16 UTC
(
hide
)
Description:
Teach usb_libusb.c to use devices without serial number
Filename:
MIME Type:
Creator:
Marcin Cieślak
Created:
2015-04-05 20:17:16 UTC
Size:
1.35 KB
patch
obsolete
>diff -ru android-tools-adb/files/patch-usb_libusb.c android-tools-adb.new/files/patch-usb_libusb.c >--- android-tools-adb/files/patch-usb_libusb.c 2014-01-22 18:40:44.000000000 +0100 >+++ android-tools-adb.new/files/patch-usb_libusb.c 2015-04-05 21:49:15.000000000 +0200 >@@ -1,5 +1,5 @@ >---- usb_libusb.c.orig 2013-08-01 17:14:17.000000000 +0800 >-+++ usb_libusb.c 2013-08-01 17:14:46.000000000 +0800 >+--- usb_libusb.c.orig 2014-10-22 02:46:49.000000000 +0200 >++++ usb_libusb.c 2015-04-05 21:48:16.000000000 +0200 > @@ -37,7 +37,7 @@ > #define TRACE_TAG TRACE_USB > #include "adb.h" >@@ -9,3 +9,26 @@ > static libusb_context *ctx = NULL; > > struct usb_handle >+@@ -522,14 +522,16 @@ >+ break; /* languagesCount cycle */ >+ } >+ } >++ } else { >++ strncpy(serial, "????????", sizeof(serial)); >++ } >+ >+- if (register_device(&uh, serial) == 0) { >+- D("check_device(): Failed to register device\n"); >+- goto fail_interface; >+- } >+- >+- libusb_ref_device(dev); >++ if (register_device(&uh, serial) == 0) { >++ D("check_device(): Failed to register device\n"); >++ goto fail_interface; >+ } >++ >++ libusb_ref_device(dev); >+ } >+ >+ return; >Only in android-tools-adb.new/: work
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199185
: 155214 |
157953