Skip to content

Commit

Permalink
sprout8: update storage config from M
Browse files Browse the repository at this point in the history
Change-Id: I76b6b4e185405589238298ba37a535f65ce68d1f
  • Loading branch information
varunchitre15 committed Dec 17, 2015
1 parent f15aa47 commit 9937cf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
4 changes: 2 additions & 2 deletions rootdir/root/fstab.sprout
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
/dev/block/platform/mtk-msdc.0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
/dev/block/platform/mtk-msdc.0/by-name/protect1 /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check
/dev/block/platform/mtk-msdc.0/by-name/protect2 /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check
/dev/block/platform/mtk-msdc.0/by-name/oem /oem ext4 ro,context=u:object_r:oemfs:s0,nosuid,nodev wait
/devices/platform/mtk-msdc.1/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto,noemulatedsd
/dev/block/platform/mtk-msdc.0/by-name/oem /oem ext4 ro,context=u:object_r:oemfs:s0,nosuid,nodev wait
/devices/platform/mtk-msdc.1/mmc_host* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
30 changes: 3 additions & 27 deletions rootdir/root/init.sprout.rc
Original file line number Diff line number Diff line change
@@ -1,32 +1,8 @@
# sprout storage specific rc file.
# sprout_b storage specific rc file.

import /init.sprout_common.rc

on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root

mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root

export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
export SECONDARY_STORAGE /storage/sdcard1

# Support legacy paths
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 fs
setprop ro.crypto.fuse_sdcard true

service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start

service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0

0 comments on commit 9937cf8

Please sign in to comment.