commit | ad075f6ecffd10c29d84e2f86f662f63d6bebde1 | [log] [tgz] |
---|---|---|
author | Vianney le Clément de Saint-Marcq <code@quartic.eu> | Tue Mar 15 15:04:02 2016 +0100 |
committer | Nathan Hjelm <hjelmn@me.com> | Tue Jan 08 18:20:34 2019 -0700 |
tree | 5331b049ad170cad7484aa1056726f0cdebd547f | |
parent | 7e8edaf9cb790b0129258d2224d1b7072889f401 [diff] |
linux_usbfs: Use fallback usbfs path on Android On newer Android devices (5+), SELinux policies block normal processes from reading /dev. The consequence is that the usbfs path cannot be found. Rather than failing to initialize libusb in such case, fall back to /dev/bus/usb. This path will actually not be used, as USB devices should be opened through the Android API, passing the file descriptor to libusb_wrap_sys_device. Signed-off-by: Vianney le Clément de Saint-Marcq <code@quartic.eu> Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)