MaterialFiles
MaterialFiles copied to clipboard
Feature Request: Show local external storages (like flash drives) underneath the root and internal storage shortcuts
I often plug flash drives into my phone and use material files to copy files around, however it is irritating to have to manually add the flash drive, and then manually remove a broken shortcut when I remove the drive. Please add a setting to automatically mount and add a shortcut to flash drives when they are plugged in, and remove them when they are ejected or removed.
Thank you for your hard work on this amazing app!
👍🏼+1
External drive support seems to have improved! :)
A few caveats at the moment though...
- Plugging in an external drive will automatically make it available in Material Files, but only if the app wasn't running when the drive was plugged in. If it was, closing the app in the app switcher is necessary.
- Also not ideal is that ejecting the drive via the system notification leads to an error (the folder can obviously not be found) in Material Files. Again, it is necessary to close the app via the app switcher. Perhaps ejecting drives could be supported natively.
It seems as though the groundwork for automatically recognizing external drives is there, but the status should be updated while the app is running to match the stock experience.
Thank you for the otherwise very smooth app!
I do have a listener for the storage events in the app in https://github.com/zhanghai/MaterialFiles/blob/1d39db9af8411892c00951720c1508baf2e8dfe7/app/src/main/java/me/zhanghai/android/files/storage/StorageVolumeListLiveData.kt#L24-L43
Maybe somehow the system doesn't want to let me know, or I have a bug in my listener (but I can't see any).
Sorry but does this mean you can reproduce? If not I'd try getting some logs.
I don't have a phone that can plug/unplug SD card, and I'm not sure what to look into logs for this either. Maybe another developer coming across this can comment on how to debug it.
Ah, I myself am using a USB-A drive plugged into a USB-C hub. Hope someone will step up!