Closed nnitesh786 closed 9 months ago
The log even says that you are missing permission to access the usb device. You have to request permission from the user first. This is described in the readme. For further reference please consult the official Android docs
Hi ,
I ma trying to initilize the usb device but i am getting below Exception .
07-14 21:05:48.228 10322 10322 E AndroidRuntime: FATAL EXCEPTION: main 07-14 21:05:48.228 10322 10322 E AndroidRuntime: Process: com.example.myusbmanager, PID: 10322 07-14 21:05:48.228 10322 10322 E AndroidRuntime: java.lang.IllegalStateException: Missing permission to access usb device: UsbDevice[mName=/dev/bus/usb/001/012,mVendorId=1921,mProductId=21863,
I am calling like this to get the file system partition .
FileSystem mCurrenntFs = device.getPartitions().get(0).getFileSystem();
Please help me how to solve this issue.