-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sprout8: update storage config from M
Change-Id: I76b6b4e185405589238298ba37a535f65ce68d1f
- Loading branch information
1 parent
f15aa47
commit 9937cf8
Showing
2 changed files
with
5 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |