Advertisement
Guest User

Untitled

a guest
Mar 6th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. import init.smdk4210.usb.rc
  2. import init.smdk4210.gps.rc
  3.  
  4. on init
  5. mkdir /mnt/shell/emulated 0700 shell shell
  6. mkdir /storage/emulated 0555 root root
  7. mkdir /storage/sdcard1 0775 system system
  8. mkdir /storage/usbdisk0 0775 system system
  9.  
  10. export EXTERNAL_STORAGE /storage/emulated/legacy
  11. export SECONDARY_STORAGE /storage/sdcard1
  12. export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
  13. export EMULATED_STORAGE_TARGET /storage/emulated
  14.  
  15. # for backwards compatibility
  16. symlink /storage/emulated/legacy /sdcard
  17. symlink /storage/emulated/legacy /mnt/sdcard
  18. symlink /storage/emulated/legacy /storage/sdcard0
  19. symlink /mnt/shell/emulated/0 /storage/emulated/legacy
  20. symlink /storage/sdcard1 /extSdCard
  21. symlink /storage/sdcard1 /mnt/extSdCard
  22. symlink /storage/usbdisk0 /usbdisk0
  23. symlink /storage/usbdisk0 /mnt/usbdisk0
  24.  
  25. # Disable CFQ slice idle delay
  26. write /sys/block/mmcblk0/queue/iosched/slice_idle 0
  27.  
  28. on fs
  29.  
  30. mkdir /efs 0771 radio system
  31.  
  32. mount ext4 /dev/block/mmcblk0p10 /data
  33. mount ext4 /dev/block/mmcblk0p7 /cache
  34. mount ext4 /dev/block/mmcblk0p9 /system
  35.  
  36. setprop ro.crypto.fuse_sdcard true
  37.  
  38. on post-fs-data
  39.  
  40. mkdir /data/media 0770 media_rw media_rw
  41.  
  42. # gps
  43. mkdir /data/gps 771 system system
  44. chown root system /sys/devices/platform/s5pv210-uart.1/rts_cts_gate
  45. chown root system /sys/class/sec/gps/GPS_PWR_EN/value
  46. chown root system /sys/class/sec/gps/GPS_nRST/value
  47. chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value
  48. chmod 0664 /sys/class/sec/gps/GPS_nRST/value
  49.  
  50. # wifi
  51. mkdir /data/misc/dhcp 0770 dhcp dhcp
  52. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  53. mkdir /efs/bluetooth 0775 radio system
  54. mkdir /efs/wifi 0775 radio system
  55.  
  56. # bluetooth
  57. setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
  58. chown bluetooth bluetooth ro.bt.bdaddr_path
  59. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  60. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  61. chmod 0660 /sys/class/rfkill/rfkill0/state
  62.  
  63. # lcd
  64. chown system system /sys/class/backlight/panel/brightness
  65.  
  66. # mDNIe
  67. chown system system /sys/class/mdnie/mdnie/mode
  68. chown system system /sys/class/mdnie/mdnie/negative
  69. chown system system /sys/class/mdnie/mdnie/outdoor
  70. chown system system /sys/class/mdnie/mdnie/scenario
  71.  
  72. # uart_sel and usb_sel
  73. chown system radio /sys/class/sec/sec_switch/uart_sel
  74. chown system radio /sys/class/sec/sec_switch/usb_sel
  75.  
  76. # radio
  77. chown system radio /sys/devices/platform/s5p-ehci/ehci_power
  78. chown system radio /sys/devices/platform/s5p-ehci/ehci_runtime
  79.  
  80. # sensors
  81. chown system system /sys/class/sensors/accelerometer_sensor/calibration
  82. chmod 0664 /sys/class/sensors/accelerometer_sensor/calibration
  83.  
  84. # torch
  85. chown system system /sys/devices/virtual/camera/rear/rear_flash
  86. chmod 0666 /sys/devices/virtual/camera/rear/rear_flash
  87.  
  88. # vibrator
  89. chown system system /sys/vibrator/pwm_val
  90.  
  91. # touchscreen
  92. chown system system /sys/class/sec/sec_touchscreen/tsp_threshold
  93.  
  94. # device encryption
  95. setprop vold.post_fs_data_done 1
  96.  
  97. on boot
  98. mount debugfs /sys/kernel/debug /sys/kernel/debug
  99.  
  100. # Device Encryption by B2B Security Lab.
  101. setprop ro.crypto.keyfile.userdata /efs/metadata
  102.  
  103. # wifi
  104. #service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
  105. # class main
  106. # group system wifi inet
  107. # socket wpa_wlan0 dgram 0660 wifi wifi
  108. # disabled
  109. # oneshot
  110.  
  111. service macloader /system/bin/macloader
  112. class main
  113. oneshot
  114.  
  115. # bluetooth
  116. #service bccmd /system/bin/bccmd -t bcsp -d /dev/ttySAC0 \
  117. # -b 115200 psload -r /system/etc/PSConfig_8811.psr
  118. # class main
  119. # group bluetooth net_bt_admin
  120. # disabled
  121. # oneshot
  122.  
  123. service hciattach /system/bin/hciattach -n \
  124. -p /dev/ttySAC0 bcsp 3000000 flow
  125. class main
  126. user bluetooth
  127. group bluetooth net_bt_admin
  128. disabled
  129.  
  130. # dhcpcd
  131. service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
  132. class main
  133. disabled
  134. oneshot
  135.  
  136. service dhcpcd_p2p /system/bin/dhcpcd -aABKL
  137. class main
  138. disabled
  139. oneshot
  140.  
  141. service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
  142. class main
  143. disabled
  144. oneshot
  145.  
  146. service iprenew_wlan0 /system/bin/dhcpcd -n
  147. class main
  148. disabled
  149. oneshot
  150.  
  151. service iprenew_p2p /system/bin/dhcpcd -n
  152. class main
  153. disabled
  154. oneshot
  155.  
  156. service iprenew_bnep0 /system/bin/dhcpcd -n
  157. class main
  158. disabled
  159. oneshot
  160.  
  161. # serial keyboard daemon
  162. service sec_keyboard /system/bin/sec_keyboard /dev/ttySAC2
  163. class main
  164. group system
  165.  
  166. # create virtual SD card at /mnt/shell/emulated, based on the /data/media directory
  167. # daemon will drop to user/group system/media_rw after initializing
  168. # underlying files in /data/media wil be created with user and group media_rw
  169. service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
  170. class late_start
  171.  
  172. # TVout
  173. #service TvoutService_C /system/bin/bintvoutservice
  174. # class main
  175. # user system
  176. # group graphics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement