aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-30 12:51:21 -0700
committerJeff Sharkey <jsharkey@android.com>2012-09-30 12:51:21 -0700
commitb29e27a9efdcd33ad081c093838a63b7fba099bd (patch)
tree0eb210eab9483c9b179e7741179e1cc2814f0a19
parent7841c35b18374dc295024d1022253d453aa501e3 (diff)
downloadpanda-b29e27a9efdcd33ad081c093838a63b7fba099bd.tar.gz
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: I4a07a62ef7061ca6e2af158999fd6f729f44b4e8
-rw-r--r--init.omap4pandaboard.rc20
1 files changed, 9 insertions, 11 deletions
diff --git a/init.omap4pandaboard.rc b/init.omap4pandaboard.rc
index eb9bdf4..81cc802 100644
--- a/init.omap4pandaboard.rc
+++ b/init.omap4pandaboard.rc
@@ -2,20 +2,18 @@ import init.omap4pandaboard.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
- 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 EMULATED_STORAGE_SOURCE /mnt/shell/emulated
+ export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
- symlink /storage/sdcard0 /sdcard
- symlink /storage/sdcard0 /mnt/sdcard
-
- # Save bugreports as owner
- export BUGREPORT_WRITE_PATH /mnt/shell/sdcard0/0
- export BUGREPORT_READ_PATH /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