How do you request USB permissions for Android?

I have a Unity Android prototype app I’m developing that uses a USB accessory.
How do you request permissions for USB device access? I know how it’s done in a vanilla Android app, but how do you make a request from the Unity side?

USB Host seems to be missing from the documentation.

You might need to add an AndroidManifest.xml with the necessary permission to the correct spot in your project.

Ok. I wasn’t thinking about the AndroidManifest when it comes to Android deployment directly from Unity. I’ll have to look into that.

1 Like