Commit | Line | Data |
---|---|---|
d05bb22f S |
1 | # MTK project .rc configure |
2 | ||
3 | on post-fs-data | |
4 | # | |
5 | # SHARED_SDCARD related directory & configuration (begin) | |
6 | # | |
7 | ||
8 | # we will remap this as /mnt/sdcard with the sdcard fuse tool | |
9 | mkdir /data/media 0770 media_rw media_rw | |
10 | chown media_rw media_rw /data/media | |
11 | ||
12 | # | |
13 | # SHARED_SDCARD related directory & configuration (end) | |
14 | # | |
15 | ||
16 | on init | |
17 | mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw | |
18 | mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw | |
19 | mkdir /storage/sdcard0 0700 root root | |
20 | mkdir /storage/sdcard1 0700 root root | |
21 | ||
22 | export EXTERNAL_STORAGE /storage/sdcard0 | |
23 | ||
24 | # Support legacy paths | |
25 | symlink /storage/sdcard0 /sdcard | |
26 | symlink /storage/sdcard0 /mnt/sdcard | |
27 | symlink /storage/sdcard1 /mnt/sdcard2 | |
28 | ||
29 | # compatible to SSD feature | |
30 | mkdir /storage/emulated 0555 root root | |
31 | symlink /storage/sdcard0 /storage/emulated/legacy | |
32 | ||
33 | on fs | |
34 | setprop ro.crypto.fuse_sdcard true | |
35 | ||
36 | service sdcard /system/bin/sdcard -u 1023 -g 1023 -d /data/media /storage/sdcard0 | |
37 | class late_start | |
38 | ||
39 | service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0 | |
40 | class late_start | |
41 | disabled | |
42 | ||
43 | service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1 | |
44 | class late_start | |
45 | disabled |