Permanently allow the app to access an USB device
Hi,
We have some issues with a connected kiosk printer: if the Raspberry 3 gets restarted, the app always asks the "Allow the app {APPNAME} to access the USB device?" question. If I allow it and check the "Use by default for this USB device" it works and doesn't ask again if I restart the app - however, as soon as the RB3 gets restarted, this message pops up again. One of the sites where we installed our device experience power loss a few times per week and this already causing issues for us.
As the machine is running as an unattended terminal, this is a pretty serious issue for our project - are there any solutions or workaround for this?
Thank you.
Comments
Additional info which I forgot to add: we set up the device_filter.xml based on the values supplied us by the manufacturer AND with the values displayed by the Emteria dashboard (as these - strangely - was different). Neither helped with the prompt appearing.
Hi @SirButcher ,
It's a combination of device_filter.xml and directBootAware setting that can make this possible. It's well described in https://stackoverflow.com/questions/40075128/android-usb-device-attached-persistent-permission
There is also an example app linked that I remember to be very useful: https://github.com/dazza5000/USBPermissionTest
Additionally, we have also created an sample app, which gives you the vendor and product ID of all connected devices in the log: https://github.com/emteria/samples_apps_UsbPermissions
I think our dashboard shows the IDs in hex and your manufacturer might have given them in decimal. Please check if that's the case.