question

Dan avatar image
Dan asked Jeffrey Blattman commented

USB Host connection, UsbManager.openDevice security exception

Hi folks, we are currently trying to connect a USB device to a sandboxed Clover mini. I get the following exception when calling UsbManager.openDevice on the device:

08-04 17:17:09.529 1769-1781/? I/UsbPermissionProvider: call(UsbPermissionProvider.java:25): +call method: hasPermission
08-04 17:17:09.537 1769-1781/? I/UsbPermissionProvider: isAllowed(UsbPermissionProvider.java:56): +isAllowed method: <OUR PACKAGE> UsbDevice[mName=/dev/bus/usb/001/028,mVendorId=1899,mProductId=21543,mClass=0,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.os.Parcelable;@41aee168]
08-04 17:17:09.545 1769-1781/? I/UsbPermissionProvider: isAllowed(UsbPermissionProvider.java:84): checking AppUsbDeviceTable
08-04 17:17:09.546 1769-1781/? I/UsbPermissionProvider: isAllowed(UsbPermissionProvider.java:86): allowed = false
08-04 17:17:09.548 1769-1781/? I/UsbPermissionProvider: call(UsbPermissionProvider.java:38): device: UsbDevice[mName=/dev/bus/usb/001/028,mVendorId=1899,mProductId=21543,mClass=0,mSubclass=0,mProtocol=0,mInterfaces=[Landroid.os.Parcelable;@41aee168], package: <OUR PACKAGE> (10072), allowed? false

We have asked for the device to be whitelisted (submitting it's product ID and vendor ID), and were told this was done. Any chance you can confirm that this is the kind of error we might get if it was not correctly white-listed? Or could this error be the result of something else?

Thanks a lot :)

8 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

What's your package (you can PM me if you want)? And the VID,PID is mVendorId=1899,mProductId=21543.

0 Likes 0 ·
Dan avatar image Dan commented ·

Hi Jeff thanks for the quick response, I've responded to devask@clover.com if that's cool

0 Likes 0 ·
rizwan avatar image rizwan Dan commented ·

@Dan what is your model can u please explain.

Dan we want to communicate android device with Clover Mini. do u have any idea about that kind of communication ??

i have asked clover team but they are saying they did not work on that kind of stuff. so i have to find actual implementation myself. I though you did a research on usb so u might have any idea that might help me to achieve communication

below is the link where i have asked from stackoverflow but sadly no response.

https://stackoverflow.com/questions/45420374/usb-communication-with-clover-mini

any help would be very highly appreciated.

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

You need to PM me directly. Sadly I don't know who owns devask@clover.com.

0 Likes 0 ·
Dan avatar image Dan commented ·

Thanks Jeff I actually spent ages figuring out I had to click on my own profile to pm you :) Should be in your inbox now.

0 Likes 0 ·
jackylee avatar image jackylee commented ·

I think I am running into a similar issue, @jeff. Do you think you can help with the whitelist process too? I will privately message you.

0 Likes 0 ·
Show more comments

0 Answers

Welcome to the
Clover Developer Community