This is useful for Linux and Android. It is also discussed in https://github.com/pyusb/pyusb/issues/285. https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#ga98f783e115ceff4eaf88a60e6439563c `int libusb_wrap_sys_device (libusb_context *ctx, intptr_t sys_dev, libusb_device_handle **dev_handle)` Must call libusb_set_option(NULL, LIBUSB_OPTION_WEAK_AUTHORITY) or before libusb_init if don't have authority to access the usb device directly.
Activity
mcuee commentedon Sep 13, 2021
Discussion in python-libusb1: vpelletier/python-libusb1#37 (comment)
mcuee commentedon Sep 13, 2021
BTW, there is the New NO_DEVICE_DISCOVERY option to replace WEAK_AUTHORITY option.
libusb/libusb@5c89594