From: chen_tso <che...@gm...> - 2014-03-15 00:39:09
|
Hi, I'm relatively new to this too, but unfortunately you can't give the permission unless you have a rooted phone. For a non-rooted phone the method to get around this is to modify the libusb library (libusb_open()) function to accept a file descriptor of the usb device.. which you have to first open and obtain from the java side over to the jni side. Take a look at https://github.com/martinmarinov/rtl_tcp_andro- <https://github.com/martinmarinov/rtl_tcp_andro-> for the modifications in the libusb library. Look for libusb_open2(...). For rooted phone, just use chmod command. -- View this message in context: http://libusb.6.n5.nabble.com/libusb-How-to-use-android-hardware-usb-UsbManager-to-request-permission-to-use-the-UsbDevice-with-li-tp5712996p5712998.html Sent from the LibUSB Dev mailing list archive at Nabble.com. |