Allowing storage access to USB device and later connecting a different USB device doesn't allow access to that device and doesn't prompt for access either #53
Connect a USB device to your phone via the USB-C port.
In the app, navigate to the root folder of the USB device. File manager will prompt you for storage access rights for that directory.
Grant the access rights.
Disconnect the USB device.
Connect a different USB device and navigate to its root folder.
File manager will display an empty directory, despite the USB device containing files. This is not an issue with the USB device. Android's default file manager manages to correctly display the files. Also, I was able to reproduce this with the order of USB devices reversed. The one for which the permission was granted continues to work, while the other one is always displayed as empty.
Expected behavior
Either display the contents of the USB device correctly, or recognize that permissions are missing and request them.
Actual behavior
The USB device for which the access rights were granted will have its contents displayed, while other devices appear as empty and do not prompt for access permissions.
Screenshots/Screen recordings
No response
Additional information
I think the storage access framework recognizes the USB devices as distinct storage locations despite being mounted and accessed through the same path.
Fossify Gallery 1.1.1 is also affected by this bug.
Checklist
Affected app version
1.0.0
Affected Android/Custom ROM version
Android 13
How did you install the app?
F-Droid
Steps to reproduce the bug
Expected behavior
Either display the contents of the USB device correctly, or recognize that permissions are missing and request them.
Actual behavior
The USB device for which the access rights were granted will have its contents displayed, while other devices appear as empty and do not prompt for access permissions.
Screenshots/Screen recordings
No response
Additional information