I'm building an Android embedded system which requires direct use of USB devices. The app will start when the device boot up. However, when accessing USB device normally, I have to request permission first. I don't want that permission popup comes up. I know there is a way to use intent-filter to directly get permission after user authorize it the first time but I don't know if this is the most ideal way. My device is a rooted android development board so basically I can change anything in the system. I know all the permission data is stored in /data/system/packages.xml but the USB permission is not real user-permission. I want to know if there is a place like /data/system/packages.xml that stores all the usb permissions like this:
For app: com.aaa.app, vendorId="1111" and productId="1111", permission="true".
I think there should be such a place to store this info cus the intent filter needs this. Anyone knows which file I should look at in the system? Thanks