Iteration on multi-user external storage.
Symlink to make /sdcard work for shell users. Environment variable
to find root of multiuser SD card.
Bug: 6925012
Change-Id: I4fb18d8db7d1946b62596fc798d51f3a948784ea
diff --git a/init.grouper.rc b/init.grouper.rc
index 90f7f8e..8f79245 100644
--- a/init.grouper.rc
+++ b/init.grouper.rc
@@ -4,15 +4,14 @@
mount debugfs debugfs /sys/kernel/debug
on init
+ # See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/sdcard0 0700 shell shell
- # External storage path for apps
export EXTERNAL_STORAGE /storage/sdcard0
- # External storage path for adb
- export ADB_EXTERNAL_STORAGE /mnt/shell/sdcard0/0
+ export MULTIUSER_EXTERNAL_STORAGE /mnt/shell/sdcard0
- mkdir /storage 0711 root root
- mkdir /storage/sdcard0 0000 root root
+ # Support legacy paths
+ symlink /mnt/shell/sdcard0/0 /storage/sdcard0
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard