File-Manager
File-Manager copied to clipboard
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
Checklist
- [X] I can reproduce the bug with the latest version given here.
- [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one bug.
- [X] I have read and understood the contribution guidelines.
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
- 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.
- Could be related to #9.
Exactly same issue on android 8.1, it just shows blank folder in USB.
#151 is similar but concerns multiple storage devices connected at the same time.