/sdcard -> /storage/sdcard0
/storage/sdcard0 -> /storage/emulated/legacy
/storage/emulated/legacy -> /storage/emulated/0
Based on the above, if all the locations point to the same virtual storage, what's the point in having separate storage locations for each different user?
If /storage/emulated/0,1,2,3,etc
. all point to /storage/sdcard0
, and saving files in any storage location make it appear in all other locations, how is it possible to have user designated storage if all information is the same for all users?
Or is it not supposed to be designed this way...that every user's storage should be the exact same, but if that were the case, then why does having multiple folders with different numbers for multiple users exist? Am I missing something here? Am I missing some key piece of information? Why allocate folders for a specific user if they all point to the same location and contain the same exact information?
/storage/emulated/*
pointing to/storage/sdcard0
, but just the opposite – so sdcard always points to the current user's storage./storage/emulated/legacy
point to? #3 above. So what is accessed finally, and where are data written to and read from when accessing/sdcard
? The storage area of the logged-in user (in the example above that's the device owner, as the0
inemulated/0
indicates, because the device owner is logged in – if you follow the chain of Narcotixs' questions, OP never tried with a "secondary user").mount
, I can now see that /dev/fuse is mounted on /mnt/shell/emulated. Pretty hacky way to handle things, especially if you consider that the internal storage visible to a non-rooted user is just a subset of the /data partition (i.e. /data/media).