I have an external usb device (smartglass) that has a camera and a gyroscope. When I try to access the gyroscope Android show me this message: Allow 'appname' to access stm32 custom human interface & virtual ComPort? How can I suppress this and any other message?
I tried to put the vendor-id in the manifest
<resources>
<usb-device vendor-id="1234" />
but then each time I connect the usb Android asks if I want to launch the app. Basically I don't want any message or auto-start the app.
I read this: bypass android usb host permission confirmation dialog and this: bypass android usb host permission confirmation dialog but I can't root the device or create a dummy activity because I can't interefere with the user if he is using another application with the smartglass.
Thanks!