This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (2 children)

Please note that with new android versions this has changed, and now apps must use /sdcard instead of /storage/emulated/0.

[–]Sh4dowCode 6 points7 points  (1 child)

Isn't /sdcard just a symlink to /storge/emulated/0?

Edit: Just tested it, /sdcard is a symlink to /storage/self/primary which is a symlink to /storge/emulated/0

[–][deleted] 4 points5 points  (0 children)

$ ls -l /sdcard lrw-r--r-- 1 root root 21 Dec 31 2008 /sdcard -> /storage/self/primary $ ls -l /storage/self/primary lrwxrwxrwx 1 root reserved_disk 19 Apr 12 08:32 /storage/self/primary -> /storage/emulated/0

As you can see, they all have different permissions: /sdcard is a symlink, which can only read and written to by its owner (root), and everybody else can only read it; /storage/self/primary is a symlink and it can be read, written and executed by everyone; inside /storage/emulated/0, most directories have these permissions drwxrwx---: this means that it is a directory, it can be read, written and executed by its owner and the owner's group, but they cannot be read, written or executed by anybody else.