summaryrefslogtreecommitdiffstats
path: root/init.tuna.rc
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-11 23:18:48 -0700
committerJeff Sharkey <jsharkey@android.com>2012-09-11 23:18:48 -0700
commit260f6e0aac21567ddf16390e9b0206f923d5081f (patch)
tree38ed70347826c3c4ab916bfcae552ff60c0279a7 /init.tuna.rc
parent24ad06f4027b29116be004d7917889c2f01e1918 (diff)
downloaddevice_samsung_tuna-260f6e0aac21567ddf16390e9b0206f923d5081f.zip
device_samsung_tuna-260f6e0aac21567ddf16390e9b0206f923d5081f.tar.gz
device_samsung_tuna-260f6e0aac21567ddf16390e9b0206f923d5081f.tar.bz2
Include user identifier in external storage paths.
When building external storage paths, always include user in path to enable cross-user paths and aid debugging. Bug: 7131382 Change-Id: Ic065fb8739a9d5d6e7f88ab93932391d906fed57
Diffstat (limited to 'init.tuna.rc')
-rwxr-xr-xinit.tuna.rc23
1 files changed, 13 insertions, 10 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 530330f..c850128 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -2,20 +2,23 @@ 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
- mkdir /storage/sdcard0 0000 root root
+ mkdir /mnt/shell/emulated 0700 shell shell
+ mkdir /storage/emulated 0000 root root
+ mkdir /storage/emulated_legacy 0000 root root
- export EXTERNAL_STORAGE /storage/sdcard0
- export ADB_EXTERNAL_STORAGE /mnt/shell/sdcard0/0
- export MULTIUSER_EXTERNAL_STORAGE /mnt/shell/sdcard0
+ export EXTERNAL_STORAGE /storage/emulated_legacy
+ export ADB_EXTERNAL_STORAGE /mnt/shell/emulated/0
+
+ export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
+ export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
- symlink /storage/sdcard0 /sdcard
- symlink /storage/sdcard0 /mnt/sdcard
+ symlink /storage/emulated_legacy /sdcard
+ symlink /storage/emulated_legacy /mnt/sdcard
# Save bugreports as owner
- export BUGREPORT_WRITE_PATH /mnt/shell/sdcard0/0
- export BUGREPORT_READ_PATH /storage/sdcard0
+ export BUGREPORT_WRITE_PATH /mnt/shell/emulated/0
+ export BUGREPORT_READ_PATH /storage/emulated
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
@@ -166,7 +169,7 @@ service smc_pa_wvdrm /system/bin/smc_pa_ctrl \
oneshot
# virtual sdcard daemon running as media_rw (1023)
-service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023
+service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
class late_start
service p2p_supplicant /system/bin/wpa_supplicant \