Advertisement
Guest User

Untitled

a guest
May 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. on post-fs-data
  2.  
  3. mkdir /data/media 0770 media_rw media_rw
  4. chown media_rw media_rw /data/media
  5.  
  6. on init
  7. mkdir /mnt/shell 0700 shell shell
  8. chmod 0750 /mnt/shell
  9. chown shell sdcard_r /mnt/shell
  10. mkdir /mnt/shell/emulated 0700 shell shell
  11. mkdir /mnt/shell/emulated/0 0700 shell shell
  12. mkdir /storage/emulated 0555 root root
  13.  
  14. mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
  15. mkdir /storage/sdcard1 0700 root root
  16.  
  17. export EXTERNAL_STORAGE /storage/emulated/legacy
  18.  
  19. export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
  20. export EMULATED_STORAGE_TARGET /storage/emulated
  21.  
  22. mount tmpfs tmpfs /storage/emulated mode=0755,uid=1023,gid=1023
  23.  
  24. symlink /storage/emulated/legacy /sdcard
  25. symlink /storage/emulated/legacy /mnt/sdcard
  26. symlink /storage/emulated/legacy /storage/sdcard0
  27. symlink /mnt/shell/emulated/0 /storage/emulated/legacy
  28. symlink /mnt/shell/emulated/0 /storage/emulated/0
  29. symlink /storage/sdcard1 /mnt/sdcard2
  30.  
  31.  
  32. on post-fs
  33. mount rootfs rootfs / shared rec
  34. mount tmpfs tmpfs /mnt/secure private rec
  35.  
  36. on fs
  37. setprop ro.crypto.fuse_sdcard true
  38.  
  39. service sdcard /system/bin/sdcard -u 1023 -g 1023 -d /data/media /storage/sdcard0
  40. class late_start
  41.  
  42. service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0
  43. class late_start
  44. disabled
  45.  
  46. service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
  47. class late_start
  48. disabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement