I found a port of libusb for Android here and I managed to compile with NDK. I linked the library to an executable of mine (executed as root), but the function "libusb_init" always returns an error. I found that the problem (by now...) is in the file "linux_usbfs.c", more precisely in this function:
- Code: Select all
static const char *find_usbfs_path(void)
{
const char *path = "/dev/bus/usb";
const char *ret = NULL;
if (check_usb_vfs(path)) {
ret = path;
} else {
path = "/proc/bus/usb";
if (check_usb_vfs(path))
ret = path;
}
usbi_dbg("found usbfs at %s", ret);
return ret;
}
"/dev/bus/usb" obviously doesn't exist on my N1...can anyone help?


