Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on post-fs-data
- mkdir /data/media 0770 media_rw media_rw
- chown media_rw media_rw /data/media
- on init
- mkdir /mnt/shell 0700 shell shell
- chmod 0750 /mnt/shell
- chown shell sdcard_r /mnt/shell
- mkdir /mnt/shell/emulated 0700 shell shell
- mkdir /mnt/shell/emulated/0 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
- mount tmpfs tmpfs /storage/emulated mode=0755,uid=1023,gid=1023
- 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
- symlink /mnt/shell/emulated/0 /storage/emulated/0
- symlink /storage/sdcard1 /mnt/sdcard2
- on post-fs
- mount rootfs rootfs / shared rec
- mount tmpfs tmpfs /mnt/secure private rec
- on fs
- setprop ro.crypto.fuse_sdcard true
- service sdcard /system/bin/sdcard -u 1023 -g 1023 -d /data/media /storage/sdcard0
- class late_start
- service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0
- class late_start
- disabled
- service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
- class late_start
- disabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement