This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to fix the wrong permission of /mnt/shell/emulated/*

Other Parts Discussed in Thread: AM3358

Hi,

I am working with am3358,  android 4.2.

when downloading files through browser, it fails, and I check the permission of the folder emulated, it is like this,

root@android:/mnt/shell/emulated # ls -l
d--------- root root 2014-09-10 10:37 0
d--------- root root 2014-09-09 15:02 legacy
d--------- root root 2014-09-10 10:40 obb

No read/write permission is granted.

I chmod 777 * manually, then it is like this

root@android:/mnt/shell/emulated # ls -l
drwxrwxrwx root root 2014-09-10 10:37 0
drwxrwxrwx root root 2014-09-09 15:02 legacy
drwxrwxrwx root root 2014-09-10 10:40 obb

Now, download works, but the permission will restore to "d---------" again later. 

How to make the default permission of folder /mnt/shell/emulated/0, /mnt/shell/emulated/legacy, /mnt/shell/emulated/obb to readable and writeable?

Thanks.

  • I met the same problem, and I think the right permission should be as follows,

    root@android:/ #ls -l /mnt/shell/emulated/
    drwxrwxr-x root sdcard_rw 1970-01-02 00:00 0
    drwxrwxr-x root sdcard_rw 1970-01-02 00:00 legacy
    drwxrwxr-x root sdcard_rw 1970-01-01 00:00 obb

    but why they are like this,

    d--------- root root 2014-09-10 10:37 0
    d--------- root root 2014-09-09 15:02 legacy
    d--------- root root 2014-09-10 10:40 obb

    Any suggestions is appreciated.

    Thanks.