|
From: Xiaofan C. <xia...@gm...> - 2016-03-15 09:26:25
|
On Tue, Mar 15, 2016 at 12:39 AM, Antão Almada <ant...@gm...> wrote: > Hi all, > > I've been researching for a while but I'm misssing some essential parts. > > I already know that I need to request the user permission to access the > device and then pass the respective file descriptor to libusb. > > I successfuly built the latest libusb source but then how do I pass in the > file descriptor? Take note the latest libusb source has not integrated any of the patches for Android with regard to file descriptor enhancement. https://github.com/libusb/libusb/tree/master/android > I also tried to use some of the many forks that add an fd parameter to > libusb_open() but then what do I pass in for the first parameter? Do I have > to get it from libusb_get_device_list()? If so, how do I map the Android > UsbDevice or UsbAccessory to a libusb_device? > I do not know about the answer. But anyway, personally I think without the official integration, libusb under Android is basically a no-go for most users since it requires root. -- Xiaofan |