I am making an application on an android tablet that is supposed to act as a file backup application, the tablet is going to be locked down and all applications other than the app I am making are to be disabled, the tablet is then to be shipped to users who will be recording video footage onto a USB flash drive using head-mounted cameras, at the end of each day the users are to plug the flash drives into the tablet, during this time, the application will wake up and allow the users to click the "backup" button, the files are then to be copied from the usb drives and saved on the tablet.
The users are assumed to be technology illiterate so we are not asking them to do anything more than plug the flash drive into the device and click the transfer button.
For testing purposes I have a flash drive, a USB 3.0 to Type-C adapter and a tablet, when I plug it all in the flash drive appears on my Android device, my question is, how do I communicate with the flash drive through code?
I'm using Android Studio, the flash drive is attached to my tablet via USB, my tablet is connected to Android Studio via wireless debugging, Android Studio detects and displays my tablet, however it does not display the USB device inserted into my tablet, which is what I need to communicate with. I would like for the flash drive to appear on Android Studio so I can know the correct file path to put in my code.
(I am aware that communication with external USB devices disallows my app from being published on the app store, this is an internal only app)