Advertisement
goroh_kun

n-04cのinit.n-04c.rc

Sep 14th, 2011
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. # Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
  2. #
  3. # Redistribution and use in source and binary forms, with or without
  4. # modification, are permitted provided that the following conditions are met:
  5. # * Redistributions of source code must retain the above copyright
  6. # notice, this list of conditions and the following disclaimer.
  7. # * Redistributions in binary form must reproduce the above copyright
  8. # notice, this list of conditions and the following disclaimer in the
  9. # documentation and/or other materials provided with the distribution.
  10. # * Neither the name of Code Aurora nor
  11. # the names of its contributors may be used to endorse or promote
  12. # products derived from this software without specific prior written
  13. # permission.
  14. #
  15. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  16. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  18. # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  19. # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  20. # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  21. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  22. # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  23. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  24. # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  25. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. #
  27.  
  28. on boot-pause
  29. exec system/bin/battery_charging
  30.  
  31. on early-boot
  32. insmod /system/lib/modules/nim_driver.ko
  33.  
  34. on boot
  35. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  36. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  37. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  38. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  39. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  40. chown system system /sys/module/sco/parameters/disable_esco
  41. chmod 0660 /sys/module/bluetooth_power/parameters/power
  42. chmod 0660 /sys/class/rfkill/rfkill0/state
  43. chmod 0660 /proc/bluetooth/sleep/proto
  44. chown bluetooth bluetooth /dev/ttyHS0
  45. chmod 0660 /dev/ttyHS0
  46. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
  47. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  48.  
  49. chown root root /dev/ttyHS1
  50. chmod 0666 /dev/ttyHS1
  51. chown root root /sys/devices/platform/msm_serial_hs.1/clock
  52. chmod 0666 /sys/devices/platform/msm_serial_hs.1/clock
  53. insmod /system/lib/modules/felica.ko
  54.  
  55. # mod 2011/0124 felica custum
  56. mkdir /data/system 0775 system system
  57. exec system/bin/felicastartup
  58. # mod 2011/0124 felica custum
  59.  
  60.  
  61. # Create the directories used by the Wireless subsystem
  62. mkdir /data/misc/wifi 0770 wifi wifi
  63. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  64. mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
  65. mkdir /data/misc/dhcp 0770 dhcp dhcp
  66. chown dhcp dhcp /data/misc/dhcp
  67. symlink /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
  68. setprop wifi.interface wlan0
  69.  
  70. # Create directories for wiper services
  71. mkdir /data/wpstiles/ 0777 shell
  72. mkdir /etc/wiper 0777 location qcom_oncrpc
  73.  
  74. # Create directories for gpsone_daemon services
  75. mkdir /data/gpsone_d 0770 gpsone_d qcom_oncrpc
  76. mkdir /etc/gpsone_d 0770 gpsone_d qcom_oncrpc
  77.  
  78. chown system system /sys/class/leds/indicator-red-led/brightness
  79. chown system system /sys/class/leds/indicator-green-led/brightness
  80. chown system system /sys/class/leds/flash-movie-led/brightness
  81. chown system system /sys/class/leds/flash-still-led/brightness
  82. chown system system /sys/class/leds/torch-led/brightness
  83. chown system system /sys/class/leds/prevent-peeping-led/brightness
  84. chown system system /sys/class/leds/rgb-patern/brightness
  85. chown system system /sys/class/leds/rgb-trgb/brightness
  86. chown system system /sys/class/leds/rgb-rgb1os/brightness
  87. chmod 666 /sys/class/leds/indicator-red-led/brightness
  88. chmod 666 /sys/class/leds/indicator-green-led/brightness
  89. chmod 666 /sys/class/leds/flash-movie-led/brightness
  90. chmod 666 /sys/class/leds/flash-still-led/brightness
  91. chmod 666 /sys/class/leds/torch-led/brightness
  92. chmod 666 /sys/class/leds/prevent-peeping-led/brightness
  93.  
  94. #Set SUID bit for usbhub
  95. chmod 4755 /system/bin/usbhub
  96. chmod 755 /system/bin/usbhub_init
  97.  
  98. #Set SUID bit for diag_mdlog
  99. chmod 4755 /system/bin/diag_mdlog
  100.  
  101. #Provide the access to hostapd.conf only to root and group
  102. chmod 0660 /data/hostapd/hostapd.conf
  103.  
  104. # Export GPIO56 for fusion targets to enable/disable hub
  105. service usbhub_init /system/bin/usbhub_init
  106. user root
  107. disabled
  108. oneshot
  109.  
  110. on property:ro.product.device=msm7630_fusion
  111. start usbhub_init
  112.  
  113. on property:init.svc.wpa_supplicant=stopped
  114. stop dhcpcd
  115.  
  116. on property:init.svc.bluetoothd=running
  117. write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
  118. start btwlancoex
  119.  
  120. on property:init.svc.bluetoothd=stopped
  121. stop btwlancoex
  122.  
  123. service cnd /system/bin/cnd
  124. socket cnd stream 660 root radio
  125.  
  126. service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11
  127. user root
  128. disabled
  129.  
  130. on property:ro.emmc=1
  131. start rmt_storage
  132.  
  133. service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
  134. user bluetooth
  135. group qcom_oncrpc bluetooth net_bt_admin
  136. disabled
  137. oneshot
  138.  
  139. service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
  140.  
  141. # add s [Nx9320-PR1-05269]
  142. on property:nec.portbridge.on=1
  143. start port-bridge
  144.  
  145. on property:nec.portbridge.on=0
  146. stop port-bridge
  147. # add e [Nx9320-PR1-05269]
  148.  
  149. service qmuxd /system/bin/qmuxd
  150.  
  151. service netmgrd /system/bin/netmgrd
  152.  
  153. on property:ro.use_data_netmgrd=false
  154. # netmgr not supported on specific target
  155. stop netmgrd
  156.  
  157. service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
  158. user shell
  159. group bluetooth net_bt_admin
  160. disabled
  161. oneshot
  162.  
  163. service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
  164. user root
  165. group wifi inet
  166. socket wpa_wlan0 dgram 660 wifi wifi
  167. disabled
  168. oneshot
  169.  
  170. service dhcpcd /system/bin/dhcpcd -BKL wlan0
  171. disabled
  172. oneshot
  173.  
  174. service wiperiface /system/bin/wiperiface
  175. user location
  176. group qcom_oncrpc
  177. oneshot
  178.  
  179. service gpsone_daemon /system/bin/gpsone_daemon
  180. user root
  181. group qcom_oncrpc
  182. disabled
  183.  
  184. service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
  185. user system
  186. group system qcom_oncrpc
  187. disabled
  188. oneshot
  189.  
  190. service qcom-sh /system/bin/sh /init.qcom.sh
  191. user root
  192. oneshot
  193.  
  194. service qcom-post-boot /system/bin/sh /system/etc/init.qcom.post_boot.sh
  195. user root
  196. disabled
  197. oneshot
  198.  
  199. service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh
  200. user root
  201. disabled
  202. oneshot
  203.  
  204. on property:init.svc.bootanim=stopped
  205. start qcom-post-boot
  206. start qcom-wifi
  207.  
  208. service ckpd /system/bin/CKPD-daemon
  209. disabled
  210. onrestart /system/bin/log -t RIL-CKPD -p w "CKPD daemon restarted"
  211.  
  212. on property:ro.service.ckpd.enable=1
  213. start ckpd
  214.  
  215. service hdmid /system/bin/hdmid
  216. socket hdmid stream 0660 root system graphics
  217. disabled
  218.  
  219. on property:ro.hdmi.enable=true
  220. start hdmid
  221.  
  222. service hostapd /system/bin/hostapd -dddd /data/hostapd/hostapd.conf
  223. user root
  224. group root
  225. oneshot
  226. disabled
  227.  
  228. service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
  229. group radio
  230. disabled
  231. oneshot
  232.  
  233. on property:persist.data.ds_fmc_app.mode=1
  234. start ds_fmc_appd
  235.  
  236. service ims_regmanager /system/bin/exe-ims-regmanagerprocessnative
  237. user system
  238. group qcom_oncrpc net_bt_admin inet radio wifi
  239. disabled
  240.  
  241. on property:persist.ims.regmanager.mode=1
  242. start ims_regmanager
  243.  
  244. on property:ro.data.large_tcp_window_size=true
  245. # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
  246. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  247.  
  248. service thermald /system/bin/thermald
  249. user root
  250. group root
  251. disabled
  252.  
  253. on property:persist.thermal.monitor=true
  254. start thermald
  255. #NEC-Casio Mobile DIAG Daemon
  256. service ncmdiagd /system/bin/ncmdiagd
  257.  
  258. service ms-monitor /system/bin/ms-monitor
  259. disabled
  260. oneshot
  261.  
  262. on property:ro.debuggable=1
  263. start ms-monitor
  264.  
  265. # ADD-S 11/03/19
  266. service init_logcat /system/bin/sh /system/etc/init.logcat.sh
  267. user root
  268. oneshot
  269. # ADD-E 11/03/19
  270.  
  271. service start_logcat /system/bin/start_logcat /data/local/log 16 4
  272. # ADD-S 11/03/19
  273. user system
  274. group system log shell qcom_oncrpc
  275. # ADD-E 11/03/19
  276. oneshot
  277.  
  278. #on property:ro.debuggable=1
  279. # start start_logcat
  280.  
  281. service keyscenario /system/bin/keyscenario
  282. disabled
  283. oneshot
  284.  
  285. on property:ro.debuggable=1
  286. start keyscenario
  287.  
  288. service driver_config /system/bin/driver_config
  289. oneshot
  290.  
  291. service usb-nv /system/bin/usb-nv
  292. oneshot
  293.  
  294. #NEC-Casio Mobile Camera Daemon
  295. service camera_daemon /system/bin/camera_daemon
  296. oneshot
  297.  
  298. # Nx9320-PR1-04093 Start Add 2010/10/20 FBU_HDN_OTASP
  299. service devstatservice /system/bin/devstatservice
  300. user system
  301. group qcom_oncrpc
  302. disable
  303. oneshot
  304.  
  305. on property:dev.bootcomplete=1
  306. start devstatservice
  307.  
  308. # Nx9320-PR1-04093 End Add 2010/10/20 FBU_HDN_OTASP
  309.  
  310. # 2011.01.07 Add MNK-CR2-00666
  311. service wlan_raex_svc /system/bin/Rakuex
  312. disabled
  313. oneshot
  314.  
  315. # 2011.01.14 Add MNK-CR2-00752
  316. # WPSEX Start Add
  317. service Wpsex /system/bin/Wpsex
  318. disabled
  319. oneshot
  320. # WPSEX End Add
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement