April 2nd, 2012, 02:25 PM
|
#8 (permalink)
|
|
New Member
Join Date: Apr 2012
Posts: 1
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
Originally Posted by ndnfan
Here is how I got libusb working in Android without rooting the phone.
1) In Java, enumerate the USB and find the device you want. Reference this URL:
2) Once you find the device, get the file descriptor to it. Reference this method:
3) Pass the file descriptor to the ported libusb code. I had to change the libusb code slightly to accept a file descriptor instead of trying to open its own descriptor.
Once that's complete, I was able to make use of libusb w/o issue. As far as I know, this is the only way to get isochronous USB support on Android.
|
Can you explain a bit better what changes were made to libusb to make this work? Or better yet, source? Thanks!
|
|
|