Timeline for Are files created in "/storage/emulated/0" supposed to appear in "/storage/sdcard0"?
Current License: CC BY-SA 3.0
24 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 1, 2020 at 7:49 | comment | added | Irfan Latif | Related: What is /storage/emulated/0/? | |
Jan 24, 2018 at 4:07 | answer | added | miksha | timeline score: 0 | |
S May 3, 2017 at 0:11 | history | suggested | Paul-Beyond | CC BY-SA 3.0 |
Added code segment blocks.
|
May 2, 2017 at 17:04 | review | Suggested edits | |||
S May 3, 2017 at 0:11 | |||||
Apr 29, 2017 at 18:47 | vote | accept | Narcotixs | ||
Apr 28, 2017 at 12:24 | history | tweeted | twitter.com/StackAndroid/status/857933483385266176 | ||
Apr 27, 2017 at 22:21 | answer | added | Izzy | timeline score: 7 | |
Apr 27, 2017 at 21:40 | comment | added | Izzy | @DanBrown no need for root, you can use a terminal without :) And yeah, my guess seems correct: Why does Android use fuse for internal SD card mount? says The FUSE filesystem also manages permissions for the files stored in the /data/media folder. Let's see if I can find some more evidence that justifies an answer :) | |
Apr 27, 2017 at 21:29 | comment | added | Dan Brown | @Izzy Hmmm, that would make sense. I don't have a rooted device to mess with ATM (I actually don't have a rooted device at all, I've just realised) so I can't really mess with terminal. | |
Apr 27, 2017 at 21:06 | comment | added | Izzy |
OK, @DanBrown – and after that (or even before), check with the mount command. Surprise, I expect: there's a FUSE file system overlayed (that's how the internal SD card is separated from the other internal storage while sitting on the very same partition). What I suspect now is that this FUSE system might take care for separating user data, mapping the "SD card" to the appropriate place.
|
|
Apr 27, 2017 at 20:19 | comment | added | Dan Brown | @Izzy From what I quickly nabbed, when you create a second user, they claim /storage/sdcard10 rather than, say 1 or 2 | |
Apr 27, 2017 at 19:14 | comment | added | Grimoire | @DanBrown I myself, one hour ago. Didn't like the experience. | |
Apr 27, 2017 at 18:42 | comment | added | Izzy | Exact that's what's puzzling me – and what I, too, only recognized after writing my initial comment. Hence the question if one with multiple users on a device could cross-check, please. | |
Apr 27, 2017 at 18:32 | comment | added | Dan Brown | @DeathMaskSalesman If that's the case, then no idea. Never really meddled with multi-user (but who has?) | |
Apr 27, 2017 at 18:06 | comment | added | Grimoire | @DanBrown If I got this right, the OP is asking: "If /storage/sdcard0 is freely readable and writable, what's the point of having a /storage/emulated/X directory for each user?", which is a good question. | |
Apr 27, 2017 at 17:43 | comment | added | Dan Brown | @Narcotixs The directories are linked to the same physical location, which is normal. | |
Apr 27, 2017 at 17:41 | comment | added | Dan Brown | @Izzy it's just system default these days for the 0 to be included. That, or yet more government conspiracy. | |
Apr 27, 2017 at 16:45 | comment | added | Narcotixs | @Izzy I read both of those questions before coming here. I don't think we need to create multiple users as I am just mentioning "0", just the singular owner. I'm asking if user created files are supposed to show up in "/storage/sdcard0". My question could indicate a fundamental lack of understanding about how the Android file structure is designed, so I don't know if what I'm asking even makes sense. From what I gather, I believe that's the whole point of "/storage/emulated" in the first place, to provide a specific space for each user to confine folders and files away from other users. | |
Apr 27, 2017 at 16:31 | comment | added | Izzy |
Ah, sorry – mixed that up again (0 vs. /0 is too easy to confuse). Please check with: Why did /sdcard/ turn into /sdcard/0/ with 4.2? and Confused by the many locations of the virtual /sdcard/. I never played with multi-user myself, so I didn't dig deeper here. If you have multiple users on your device, can you check? I'd be curious, but my guess is that /storage/sdcard0 always points to the corresponding user's dir, as /storage/emulated/legacy/ does.
|
|
Apr 27, 2017 at 16:22 | comment | added | Narcotixs | @Izzy Because the numbering (i.e., in this case '0') indicates a storage space allocated for a specific user. Didn't Android become a multi-user platform as of Android 4.2? | |
Apr 27, 2017 at 16:16 | comment | added | Izzy |
What makes you think /storage/emulated/0 is specific to a given user – and not just the "first emulated storage device", as /storage/sdcard0 is the first (internal) SD card?
|
|
Apr 27, 2017 at 16:06 | history | edited | Narcotixs | CC BY-SA 3.0 |
added 4 characters in body
|
Apr 27, 2017 at 16:02 | review | First posts | |||
Apr 27, 2017 at 16:27 | |||||
Apr 27, 2017 at 15:59 | history | asked | Narcotixs | CC BY-SA 3.0 |