summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-30 12:48:02 -0700
committerJeff Sharkey <jsharkey@android.com>2012-09-30 12:48:02 -0700
commiteea86dbc4b27344c51a913a80c2fc3852d44fcc8 (patch)
tree010df8fd27043dd41715fb16099bf983883b3241
parentee72ef4556336cde5d68a44bdbc479286134d1f0 (diff)
downloaddevice_samsung_tuna-eea86dbc4b27344c51a913a80c2fc3852d44fcc8.zip
device_samsung_tuna-eea86dbc4b27344c51a913a80c2fc3852d44fcc8.tar.gz
device_samsung_tuna-eea86dbc4b27344c51a913a80c2fc3852d44fcc8.tar.bz2
Final shuffle to make /sdcard work in shell.
Move legacy mount location to /storage/emulated/legacy, and create a symlink to point towards shell-visible FUSE daemon. This symlink is then masked from zygote-forked apps by a tmpfs. Bug: 7255202 Change-Id: I22967c10e5719c0628816f061606924ddd15e5bb
-rwxr-xr-xinit.tuna.rc12
1 files changed, 5 insertions, 7 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 6181640..e2cae6f 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -4,18 +4,16 @@ on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0000 root root
- mkdir /storage/emulated_legacy 0000 root root
-
- export EXTERNAL_STORAGE /storage/emulated_legacy
- export ADB_EXTERNAL_STORAGE /mnt/shell/emulated/0
+ export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
- symlink /storage/emulated_legacy /sdcard
- symlink /storage/emulated_legacy /mnt/sdcard
- symlink /storage/emulated_legacy /storage/sdcard0
+ symlink /storage/emulated/legacy /sdcard
+ symlink /storage/emulated/legacy /mnt/sdcard
+ symlink /storage/emulated/legacy /storage/sdcard0
+ symlink /mnt/shell/emulated/0 /storage/emulated/legacy
on post-fs-data
mkdir /data/media 0770 media_rw media_rw