From bfcd810b792f7ffbb2ec1360c0c2662725fd0362 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 22 Aug 2012 13:57:25 -0700 Subject: Iteration on multi-user external storage. Define /storage as top-level concept, so that we enforce permissions uniformly. Moves external storage paths from headers to per-device environment variables. Added missing mount flags, and we no longer have adb-specific external storage. Bug: 6925012 Change-Id: Ic7ca953be2f552d3f0ec9e69f89fef751daa1b29 --- rootdir/init.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/init.rc b/rootdir/init.rc index 1ed1323..70cf19f 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -34,6 +34,7 @@ loglevel 3 export ANDROID_ROOT /system export ANDROID_ASSETS /system/app export ANDROID_DATA /data + export ANDROID_STORAGE /storage export ASEC_MOUNTPOINT /mnt/asec export LOOP_MOUNTPOINT /mnt/obb export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar @@ -56,8 +57,9 @@ loglevel 3 mkdir /cache 0770 system cache mkdir /config 0500 root root - # Directory for shell-visible mount points, like external storage + # See storage config details at http://source.android.com/tech/storage/ mkdir /mnt/shell 0700 shell shell + mkdir /storage 0050 root sdcard_r # Directory for putting things only root should see. mkdir /mnt/secure 0700 root root -- cgit v1.1