From 22e8c4118b56bae829d3d68bee6275b5e5a22c39 Mon Sep 17 00:00:00 2001 From: Maunik Shah Date: Tue, 5 Nov 2013 21:07:10 +0530 Subject: [PATCH] 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 --- rootdir/etc/init.qcom.rc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 85f94421..0b9049b6 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -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