Migrate sdcard0 to shell-accessible location.
Bug: 7005701
Change-Id: Ib0078e3f00ff9067db8258a63c16ab3fdf931087
diff --git a/init.grouper.rc b/init.grouper.rc
index cfd0cb8..90f7f8e 100644
--- a/init.grouper.rc
+++ b/init.grouper.rc
@@ -4,16 +4,20 @@
mount debugfs debugfs /sys/kernel/debug
on init
- mkdir /mnt/secure/sdcard0 0700 root root
+ 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
+
mkdir /storage 0711 root root
mkdir /storage/sdcard0 0000 root root
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
# Save bugreports as owner
- export BUGREPORT_WRITE_PATH /mnt/secure/sdcard0/0
+ export BUGREPORT_WRITE_PATH /mnt/shell/sdcard0/0
export BUGREPORT_READ_PATH /storage/sdcard0
on early-boot
@@ -289,7 +293,7 @@
#Sensor load calibration files end
# virtual sdcard daemon running as media_rw (1023)
-service sdcard /system/bin/sdcard /data/media /mnt/secure/sdcard0 1023 1023
+service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023
class late_start
# bugreport is triggered by the VOLUME-DOWN and VOLUME-UP keys