FossifyOrg / File-Manager

Easy app for managing your files without ads, respecting your privacy & security
https://www.fossify.org
GNU General Public License v3.0
548 stars 30 forks source link

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

Open luewolf opened 7 months ago

luewolf commented 7 months ago

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

  1. Connect a USB device to your phone via the USB-C port.
  2. In the app, navigate to the root folder of the USB device. File manager will prompt you for storage access rights for that directory.
  3. Grant the access rights.
  4. Disconnect the USB device.
  5. Connect a different USB device and navigate to its root folder.
  6. 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

Abcd1234-dot commented 7 months ago

Exactly same issue on android 8.1, it just shows blank folder in USB.