Advertisement
Guest User

Untitled

a guest
Dec 19th, 2011
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. on early-init
  2.  
  3. write /sys/block/stl12/queue/read_ahead_kb 4
  4. write /sys/block/stl13/queue/read_ahead_kb 4
  5. write /sys/block/stl14/queue/read_ahead_kb 4
  6. write /sys/devices/virtual/block/stl12/queue/read_ahead_kb 4
  7. write /sys/devices/virtual/block/stl13/queue/read_ahead_kb 4
  8. write /sys/devices/virtual/block/stl14/queue/read_ahead_kb 4
  9.  
  10. on init
  11.  
  12. mkdir /persist 0771 system system
  13.  
  14. # cache folder for bigger file than /cache
  15. mkdir /data/cache
  16. chown system cache /data/cache
  17. chmod 0770 /data/cache
  18.  
  19.  
  20. # Directory for putting things only root should see.
  21. mkdir /mnt/secure 0700 root root
  22.  
  23. # Collect ramconsole data
  24. copy /proc/last_kmsg /data/dontpanic/last_kmsg
  25. chown root log /data/dontpanic/last_kmsg
  26. chmod 0640 /data/dontpanic/last_kmsg
  27.  
  28. # create log system
  29. mkdir /data/log 0777 root root
  30. chmod 0777 /data/log
  31.  
  32. # create fumo
  33. mkdir /cache/fumo 0770
  34. chown system system /cache/fumo
  35. chmod 0770 /cache/fumo
  36.  
  37. # For sensors
  38. chmod 0660 /dev/proximity
  39. chmod 0660 /dev/bma_accel
  40. chown system system /dev/proximity
  41.  
  42. # give read permission for others
  43. # this allows dumpsate to execute procrank
  44. # remove this for final build!
  45. chmod 0444 /proc/kpagecount
  46. chmod 0444 /proc/kpageflags
  47.  
  48. # ppp modules
  49. mknod 0666 /dev/ppp c 108 0
  50.  
  51. # for Gps Clp certificates
  52. mkdir /data/clp
  53. chmod 0777 /data/clp
  54.  
  55. mount rootfs rootfs / ro remount
  56.  
  57. on post-fs
  58.  
  59. #bnd_stkim 20110316 for Cricket Hiddenmenu
  60. mkdir /data/hiddenmenu/
  61. chown radio radio /data/hiddenmenu/
  62. chmod 0750 /data/hiddenmenu/
  63.  
  64. # Collect ramconsole data
  65. copy /proc/last_kmsg /data/dontpanic/last_kmsg
  66. chown root log /data/dontpanic/last_kmsg
  67. chmod 0640 /data/dontpanic/last_kmsg
  68.  
  69. # WiFi / DHCP
  70. mkdir /data/wifi 0777 wifi wifi
  71. chown wifi wifi /data/wifi
  72. chmod 0777 /data/wifi
  73. chown wifi wifi /data/misc/wifi
  74. chmod 0777 /data/misc/wifi
  75. chmod 0664 /system/etc/wifi/wpa_supplicant.conf
  76. # end of wifi
  77.  
  78. chown system system /data/app
  79. chmod 0771 /data/app
  80.  
  81. # MBjdpark 2010.12.13 : Fixed problem with transferring carrier image to PDA in user mode
  82. # CONFIG_IPC_GENERIC_PST
  83. mkdir /data/local/PST 0755 radio radio
  84. chown radio radio /data/local/PST
  85. chmod 0755 /data/local/PST
  86.  
  87. on boot
  88. # Put download cache on /data partition due to size limitations
  89. mkdir /data/download 0771 system cache
  90.  
  91. # SD card polling
  92.  
  93. chown system system /sys/devices/platform/msm_sdcc.3/polling
  94. chown system system /sys/devices/platform/msm_sdcc.4/polling
  95. chown system system /sys/devices/platform/android_usb/remote_wakeup
  96.  
  97. # sound text data file
  98. chmod 0777 /system/etc/audio/soundbooster.txt
  99. chmod 0777 /system/etc/audio/aeqcoe.txt
  100. chmod 0777 /system/etc/audio/lmfilter.txt
  101. chmod 0777 /system/etc/audio/eqfilter.txt
  102. chmod 0777 /system/etc/audio/situation.txt
  103. chmod 0777 /system/etc/audio/stream_headset.txt
  104. chmod 0777 /system/etc/audio/stream_speaker.txt
  105.  
  106. class_start default
  107.  
  108.  
  109. # Assign TCP buffer thresholds to be ceiling value of technology maximums
  110. # Increased technology maximums should be reflected here.
  111. write /proc/sys/net/core/rmem_max 262144
  112. write /proc/sys/net/core/wmem_max 262144
  113.  
  114. # bootsnd
  115. setprop audioflinger.bootsnd 1
  116. # end of bootsnd
  117.  
  118. # MBkjpark 2011.04.15 : CTS Permission fail issue (remove others write permission, so chown group)
  119. chown root system /sys/class/lightsensor/switch_cmd/lightsensor_file_cmd
  120. chown root system /sys/class/sec/ts/raw
  121.  
  122.  
  123. # create data/gps for GPS daemon
  124. mkdir /data/gps 770 gps system
  125. chown gps system /data/gps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement