summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-08-21 10:36:20 -0700
committerJeff Sharkey <jsharkey@android.com>2012-08-22 14:01:47 -0700
commit9d77c5c7d76b7d6f46ac0dd4c3d664b086bffa24 (patch)
tree8835dfcf1c594c23053f99fd08783b38a97ac0c4
parente567f6aeca41d340c7b108e6df13ae3317fff9be (diff)
downloaddevice_samsung_tuna-9d77c5c7d76b7d6f46ac0dd4c3d664b086bffa24.zip
device_samsung_tuna-9d77c5c7d76b7d6f46ac0dd4c3d664b086bffa24.tar.gz
device_samsung_tuna-9d77c5c7d76b7d6f46ac0dd4c3d664b086bffa24.tar.bz2
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: Ia190a609a3b04357a7acb8fe630971bb13aab249
-rwxr-xr-xinit.tuna.rc9
1 files changed, 4 insertions, 5 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 00a3865..98be753 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -1,15 +1,14 @@
import init.tuna.usb.rc
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