I already read that /sdcard/
is a symlink to the actual path of /storage/emulated/0/
.
I'm an Android app developer using Apache Cordova, wherein cordova.file.externalRootDirectory
is indeed file:///storage/emulated/0/
.
Is it always fully reliable to save some app internal files at /storage/emulated/0/path/to/app
, considering that the user might not have an external physical memory card on their phone?
/storage
by its label, e.g./storage/DF8C-A1B1
. Besides,emulated/0/
is what shows up at/sdcard
if the device owner is "logged in". If there are other accounts, their "internal SD card" shows up asemulated/1/
and so on. – Izzy♦ Dec 20 '20 at 3:35sdcardfs
the way/data/media
is. Additionally/sdcard
(/storage/emulated/0
) may point to a physically external SD card at least in two situations: 1) User formatted the SD card as Adoptable storage and migrated complete data to it. 2) On a device with physical primary only storage configuration (which isn't very common). – Irfan Latif Dec 20 '20 at 4:39