init.qcom.rc: Add support for Secondary External Storage

Create directories so that physical storage can be mounted by
Vold at /mnt/media_rw/ location and start the fuse_sdcard daemon
to mount the secondary external storage to /storage/ location.

CRs-Fixed: 570201
Change-Id: Ib69b17fc63a56a55a2c8e0988107f80caa35f3ce
This commit is contained in:
Maunik Shah 2013-11-05 21:07:10 +05:30 committed by Gerrit - the friendly Code Review server
parent 03d5be9ebf
commit 22e8c4118b
1 changed files with 7 additions and 1 deletions

View File

@ -40,7 +40,8 @@ on init
mkdir /storage 0050 system sdcard_r
mkdir /storage/emulated 0555 root root
mkdir /storage/emulated/legacy 0555 root root
mkdir /storage/sdcard1 0000 system system
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
@ -701,8 +702,13 @@ service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
class late_start
disabled
service fuse_sdcard /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
on property:ro.fuse_sdcard=true
start sdcard
start fuse_sdcard
# Binding fuse mount point to /storage/emulated/legacy
on property:init.svc.sdcard=running