Open staneychan opened 4 months ago
Hello, on Android to open the USB device you would need a root
permission. Instead, you should use uac_context::wrap()
function to wrap an already opened usb connection.
Also, see for more details: https://developer.android.com/develop/connectivity/usb/host
Hello, on Android to open the USB device you would need a
root
permission. Instead, you should useuac_context::wrap()
function to wrap an already opened usb connection. Also, see for more details: https://developer.android.com/develop/connectivity/usb/host
thanks a lot buddy~~ I use the libusb version of 1.0.19 and the demo app can access the audio device without 'root' permission. But the usb permission must be required via UsbManager.
Platform: android 11 Arch: arm64-v8a libUSB version: 1.0.27 libuac version: Branches main
Hi , i had write a test app reference example code for my audio device which has both MIC and speaker. But it return fail (error: libusb_open() LIBUSB_ERROR_ACCESS) when i try to open the device. I had checked the libUSB error code and find out the result of insufficient permissions:
/** Access denied (insufficient permissions) */ LIBUSB_ERROR_ACCESS = -3
However, I have already added the corresponding authorization.But it woks fine when i use the android open source demo oboe Here is my audio device properties:
This is the test source code: