Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. #
  2. # Copyright 2014 The CyanogenMod Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16.  
  17. import /init.qcom-common.rc
  18.  
  19. on init
  20. mkdir /mnt/shell/emulated 0700 shell shell
  21. mkdir /storage/emulated 0555 root root
  22.  
  23. mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
  24. mkdir /storage/sdcard1 0700 root root
  25.  
  26. export EXTERNAL_STORAGE /storage/emulated/legacy
  27. export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
  28. export EMULATED_STORAGE_TARGET /storage/emulated
  29. export SECONDARY_STORAGE /storage/sdcard1
  30.  
  31. # Support legacy paths
  32. symlink /storage/emulated/legacy /sdcard
  33. symlink /storage/emulated/legacy /mnt/sdcard
  34. symlink /storage/emulated/legacy /storage/sdcard0
  35. symlink /mnt/shell/emulated/0 /storage/emulated/legacy
  36. symlink /mnt/shell/container /storage/container
  37. symlink /storage/sdcard1 /extSdCard
  38. symlink /storage/sdcard1 /mnt/extSdCard
  39. symlink /storage/sdcard1 /external_sd
  40. symlink /storage/usbdisk /usbdisk
  41. symlink /storage/usbdisk /mnt/usbdisk
  42.  
  43. # msm specific files that need to be created on /data
  44. on post-fs-data
  45. # we will remap this as /mnt/sdcard with the sdcard fuse tool
  46. mkdir /data/media 0770 media_rw media_rw
  47. chown media_rw media_rw /data/media
  48.  
  49. on fs
  50. setprop ro.crypto.fuse_sdcard true
  51.  
  52. service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
  53. class late_start
  54.  
  55. service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
  56. class late_start
  57. disabled
  58.  
  59. service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
  60. class late_start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement