summaryrefslogtreecommitdiffstats
path: root/init.tuna.rc
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
commitbaaaeb0278566694207ab70cd6f75c80179762a4 (patch)
treea02dcaa42c85abfceddbb4f75ad992ce3480dd0d /init.tuna.rc
parentf4dce3ace491bd511f63ac60cf5b05cb35799e78 (diff)
downloaddevice_samsung_tuna-baaaeb0278566694207ab70cd6f75c80179762a4.zip
device_samsung_tuna-baaaeb0278566694207ab70cd6f75c80179762a4.tar.gz
device_samsung_tuna-baaaeb0278566694207ab70cd6f75c80179762a4.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
Diffstat (limited to 'init.tuna.rc')
-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