Is there an universal way to find the location of an external SD card?
Please, do not be confused with External Storage.
Environment.getExternalStorage
It is possible to find where any additional SD cards are mounted by reading /proc/mounts
(standard Linux file) and cross-checking against vold data (/system/etc/vold.conf
). And note, that the location returned by Environment.getExternalStorageDirectory()
may not appear in vold configuration (in some devices it's internal storage that cannot be unmounted), but still has to be included in the list. However we didn't find a good way to describe them to the user.