Problem with Android Pie and emulated external storage

137 views
Skip to first unread message

Michael Goffioul

unread,
May 30, 2019, 6:13:33 PM5/30/19
to andro...@googlegroups.com
I've compiled the current pie-x86 branch (sync'ed yesterday) and I can
boot my device in LIVE mode. However, I'm having a weird problem with
creating subdirs in the emulated external storage.

After resolving all symlinks, /sdcard is actually /storage/emulated/0.
But I'm unable to create a directory in at that location, or even
create a file (as root, in ADB shell):

130|ls1853:/ # touch /storage/emulated/0/test
touch: '/storage/emulated/0/test': No such file or directory

Looking at the mount table, /storage/emulated is actually mounted from
/data/media:

/data/media on /storage/emulated type sdcardfs
(rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid,default_normal)

If I create the file using /data/media instead, I can see the file
from /storage/emulated, and I can even delete it. But I cannot create
it. As illustrated with this shell session:

ls1853:/ # touch /data/media/0/test
ls1853:/ # ls -l /storage/emulated/0
total 0
-rw-rw---- 1 root sdcard_rw 0 2019-05-30 18:10 test
ls1853:/ # rm /storage/emulated/0/test
ls1853:/ # ls -l /storage/emulated/0
total 0
ls1853:/ # touch /storage/emulated/0/test
touch: '/storage/emulated/0/test': No such file or directory

This problem didn't occur in earlier versions (7.1.2 and 8.1.0). Does
anybody have an idea about what's going on?

Michael.

Chih-Wei Huang

unread,
May 30, 2019, 10:31:57 PM5/30/19
to Android-x86
Yes, it's a known issue of pie-x86 in live mode.
The is because Pie have changed to use
sdcardfs for emulated storage by default.
However, sdcardfs can't work on tmpfs in which
live mode is implemented.
I haven't found a solution yet.

This won't happen if /data is mounted on
a normal ext4 partition.

Michael Goffioul <michael....@gmail.com> 於 2019年5月31日 週五 上午6:13寫道:
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
Reply all
Reply to author
Forward
0 new messages