dtalley11

init.gelato.rc

Feb 3rd, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.95 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 boot
  32. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  33. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  34. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  35. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  36. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  37. chown system system /sys/module/sco/parameters/disable_esco
  38. chmod 0660 /sys/module/bluetooth_power/parameters/power
  39. chmod 0660 /sys/class/rfkill/rfkill0/state
  40. chmod 0660 /proc/bluetooth/sleep/proto
  41. chown bluetooth bluetooth /dev/ttyHS0
  42. chmod 0660 /dev/ttyHS0
  43. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
  44. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  45. # Added by [email protected] for Bluetooth DUN
  46. chmod 0666 /dev/smd0
  47. setprop service.brcm.bt.btld 0
  48. setprop service.brcm.bt.activation 0
  49. setprop service.brcm.bt.srv_active 0
  50. setprop service.brcm.bt.hcid_active 0
  51.  
  52.  
  53. # Create the directories used by the Wireless subsystem
  54. mkdir /data/misc/wifi 0770 wifi wifi
  55. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  56. mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
  57. mkdir /data/misc/dhcp 0770 dhcp dhcp
  58. chown dhcp dhcp /data/misc/dhcp
  59. symlink /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
  60. setprop wifi.interface wlan0
  61.  
  62. # Create directories for wiper services
  63. mkdir /data/wpstiles/ 0777 shell
  64. mkdir /etc/wiper 0660 location qcom_oncrpc
  65.  
  66. # Create directories for gpsone_daemon services
  67. mkdir /data/gpsone_d 0770 gpsone_d qcom_oncrpc
  68. mkdir /etc/gpsone_d 0770 gpsone_d qcom_oncrpc
  69.  
  70. # Create directory from IMS services
  71. mkdir /data/shared 0777
  72.  
  73. #2011.05.17 [email protected] : Qualcomm root process patch for "port_bridge" [START]
  74. #port-bridge
  75. chmod 0660 /dev/smd0
  76. chown system system /dev/smd0
  77.  
  78. chmod 0660 /dev/ttyGS0
  79. chown system system /dev/ttyGS0
  80. #2011.05.17 [email protected] : Qualcomm root process patch for "port_bridge" [END]
  81.  
  82. chown system system /sys/devices/platform/msm-battery/power_supply/battery/temp_block
  83.  
  84. ## SENSOR
  85. # LGE_CHANGE_E [[email protected]] 2011-01-04, LG_FW_AMI306
  86. chown compass system /dev/ami306
  87. chmod 0640 dev/ami306
  88. chown compass system /dev/ami306daemon
  89. chmod 0640 dev/ami306daemon
  90. chown compass system /dev/ami306hal
  91. chmod 0640 dev/ami306hal
  92.  
  93. mkdir /data/amit 0775 ami306d ami306d
  94. chown compass system /data/amit
  95. chown compass system /data/amit/AMI306_Config.ini
  96. chown compass system /data/amit/ACCEL_CAL.ini
  97. chmod 0660 /data/amit/AMI306_Config.ini
  98. chmod 0660 /data/amit/ACCEL_CAL.ini
  99. chown compass system /dev/KR3DH
  100. chmod 0640 /dev/KR3DH
  101.  
  102. chown compass system /dev/K3DH
  103. chmod 0640 /dev/K3DH
  104.  
  105. chown compass system /sys/devices/platform/i2c-gpio.4/i2c-4/4-0019/cal
  106. chmod 0660 /sys/devices/platform/i2c-gpio.4/i2c-4/4-0019/cal
  107.  
  108. chmod 0660 /sys/devices/platform/i2c-gpio.6/i2c-6/6-000e/sensordata
  109. chmod 0664 /sys/devices/platform/hall-ic/enable
  110.  
  111. # LGE_CHANGE_E [[email protected]] 2011-01-10, LG_FW_ACCELEROMETER SENSOR
  112. chmod 0660 /sys/bus/i2c/drivers/ami306_sensor/6-000e/calidata/
  113.  
  114. # LGE_CHANGE_E [[email protected]] 2011-01-10, LG_FW_PROXIMITY SENSOR
  115. chown system system /sys/devices/platform/i2c-gpio.5/i2c-5/5-0039/enable
  116. chown system system /sys/devices/platform/i2c-gpio.5/i2c-5/5-0039/show
  117. chown system system /sys/devices/platform/i2c-gpio.5/i2c-5/5-0039/pdata
  118. chmod 0660 /sys/bus/i2c/drivers/proximity_apds9190/5-0039/enable
  119. chmod 0660 /sys/devices/platform/i2c-gpio.5/i2c-5/5-0039/enable
  120.  
  121. # LGE_CHANGE_S [[email protected]] [2011.05.19] [gelato] remove usbhub and diag_mdlog SUID permission for CTS [START]
  122. #Set SUID bit for usbhub
  123. # chmod 4755 /system/bin/usbhub
  124. chmod 755 /system/bin/usbhub
  125. chmod 755 /system/bin/usbhub_init
  126.  
  127. #Set SUID bit for diag_mdlog
  128. # chmod 4755 /system/bin/diag_mdlog
  129. chmod 755 /system/bin/diag_mdlog
  130. # LGE_CHANGE_E [[email protected]] [2011.05.19] [gelato] remove usbhub and diag_mdlog SUID permission for CTS [END]
  131.  
  132. #Provide the access to hostapd.conf only to root and group
  133. chmod 0660 /data/hostapd/hostapd.conf
  134.  
  135. # LGE_CHANGE_S [[email protected]] [2011.03.25], Collect ramconsole data [START]
  136. copy /proc/last_kmsg /data/dontpanic/last_kmsg
  137. chown root log /data/dontpanic/last_kmsg
  138. chmod 0640 /data/dontpanic/last_kmsg
  139. # LGE_CHANGE_E [[email protected]] [2011.03.25], Collect ramconsole data [END]
  140.  
  141. #+++ BRCM
  142. # Start kernel driver (for BTHID)
  143. # insmod /system/lib/modules/bthid.ko
  144. #--- BRCM
  145.  
  146. # Export GPIO56 for fusion targets to enable/disable hub
  147. service usbhub_init /system/bin/usbhub_init
  148. user root
  149. disabled
  150. oneshot
  151.  
  152. on property:ro.product.device=msm7630_fusion
  153. start usbhub_init
  154.  
  155. on property:init.svc.wpa_supplicant=stopped
  156. stop dhcpcd
  157.  
  158. on property:init.svc.bluetoothd=running
  159. write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
  160. start btwlancoex
  161.  
  162. on property:init.svc.bluetoothd=stopped
  163. stop btwlancoex
  164.  
  165. service cnd /system/bin/cnd
  166. socket cnd stream 660 root radio
  167.  
  168. service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11 /dev/block/mmcblk0p17
  169. user root
  170. disabled
  171.  
  172. on property:ro.emmc=1
  173. start rmt_storage
  174.  
  175. #+++ BRCM
  176. # Make sure we startup btld before bluetoothd
  177. # Set target address to emulator host loopback IF
  178. # Limit baudrate to 460800 to ensure reliable uart operation
  179. service btld /system/bin/logwrapper /system/bin/btld -pf /system/bin/BCM4330B1_002.001.003.0221.0235.hcd -hb 4000000 -lpm 1
  180. user root
  181. group bluetooth net_bt_admin
  182. disabled
  183. oneshot
  184.  
  185. # start btld if soft_onoff is enabled
  186. on property:service.brcm.bt.soft_onoff=1
  187. start btld
  188.  
  189. # stop btld if soft_onoff is disabled
  190. on property:service.brcm.bt.soft_onoff=0
  191. stop btld
  192.  
  193. service bluetoothd /system/bin/bluetoothd -n
  194. socket bluetooth stream 660 bluetooth bluetooth
  195. socket dbus_bluetooth stream 660 bluetooth bluetooth
  196. # init.rc does not yet support applying capabilities, so run as root and
  197. # let bluetoothd drop uid to bluetooth with the right linux capabilities
  198. group bluetooth net_bt_admin misc
  199. disabled
  200.  
  201. #service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
  202. # user bluetooth
  203. # group qcom_oncrpc bluetooth net_bt_admin
  204. # disabled
  205. # oneshot
  206. #--- BRCM
  207.  
  208. service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
  209. #2011.05.17 [email protected] : Qualcomm root process patch for "port_bridge" [START]
  210. user system
  211. group system inet
  212. #2011.05.17 [email protected] : Qualcomm root process patch for "port_bridge" [END]
  213.  
  214. service qmuxd /system/bin/qmuxd
  215. # 2011.05.04 [email protected] : Qualcomm patch for qmuxd root process (PATCH_MSM8x55_5476_QMUXD_Non_Root_20110222.tar.gz)
  216. # disabled
  217. user radio
  218. group radio
  219.  
  220. service netmgrd /system/bin/netmgrd
  221.  
  222. on property:ro.use_data_netmgrd=false
  223. # netmgr not supported on specific target
  224. stop netmgrd
  225.  
  226. service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
  227. group bluetooth net_bt_admin
  228. disabled
  229. oneshot
  230.  
  231. service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
  232. user root
  233. group wifi inet
  234. socket wpa_wlan0 dgram 660 wifi wifi
  235. disabled
  236. oneshot
  237.  
  238. service dhcpcd_wlan0 /system/bin/dhcpcd -BKA wlan0
  239. disabled
  240. oneshot
  241.  
  242. # LGE_CHANGE_E [[email protected]] 2011-01-04, AMI306 Daemon Start
  243. service ami306d /system/bin/ami306d
  244. user compass
  245. group system
  246.  
  247. service wiperiface /system/bin/wiperiface
  248. user location
  249. group qcom_oncrpc
  250. oneshot
  251.  
  252. service gpsone_daemon /system/bin/gpsone_daemon
  253. user root
  254. group qcom_oncrpc
  255. disabled
  256.  
  257. service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
  258. user system
  259. group system qcom_oncrpc
  260. disabled
  261. oneshot
  262.  
  263. service qcom-sh /system/bin/sh /init.qcom.sh
  264. user root
  265. oneshot
  266.  
  267. service qcom-post-boot /system/bin/sh /system/etc/init.qcom.post_boot.sh
  268. user root
  269. disabled
  270. oneshot
  271.  
  272. ## 2011-02-10 [email protected]
  273. #service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh
  274. # user root
  275. # disabled
  276. # oneshot
  277.  
  278. #on property:init.svc.bootanim=stopped
  279. on property:dev.bootcomplete=1
  280. start qcom-post-boot
  281. # start qcom-wifi
  282.  
  283. service ckpd /system/bin/CKPD-daemon
  284. disabled
  285. onrestart /system/bin/log -t RIL-CKPD -p w "CKPD daemon restarted"
  286.  
  287. on property:ro.service.ckpd.enable=1
  288. start ckpd
  289.  
  290. service hdmid /system/bin/hdmid
  291. socket hdmid stream 0660 root system graphics
  292. disabled
  293.  
  294. on property:ro.hdmi.enable=true
  295. start hdmid
  296.  
  297. service hostapd /system/bin/hostapd -dddd /data/hostapd/hostapd.conf
  298. user root
  299. group root
  300. oneshot
  301. disabled
  302.  
  303. service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
  304. group radio
  305. disabled
  306. oneshot
  307.  
  308. on property:persist.data.ds_fmc_app.mode=1
  309. start ds_fmc_appd
  310.  
  311. service ims_regmanager /system/bin/exe-ims-regmanagerprocessnative
  312. user system
  313. group qcom_oncrpc net_bt_admin inet radio wifi
  314. disabled
  315.  
  316. on property:persist.ims.regmanager.mode=1
  317. start ims_regmanager
  318.  
  319. on property:ro.data.large_tcp_window_size=true
  320. # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
  321. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  322.  
  323. service thermald /system/bin/thermald
  324. user root
  325. group root
  326. disabled
  327.  
  328. on property:persist.thermal.monitor=true
  329. start thermald
  330.  
  331. service time_daemon /system/bin/time_daemon
  332. user root
  333. group root
  334. oneshot
  335. disabled
  336.  
  337. on property:persist.timed.enable=true
  338. mkdir /data/time/ 0700
  339. start time_daemon
  340.  
  341. service ftp /system/bin/sdptool add --channel=20 FTP
  342. user bluetooth
  343. group bluetooth net_bt_admin
  344. disabled
  345. oneshot
  346.  
  347. service map /system/bin/sdptool add --channel=16 MAS
  348. user bluetooth
  349. group bluetooth net_bt_admin
  350. disabled
  351. oneshot
  352.  
  353. # LGE_CHANGE_CIQ_S [[email protected]] 2010-07-09, [CIQ] adapting patch files
  354. service iqmsd /system/bin/iqmsd
  355. disabled
  356.  
  357. on property:service.iq.active=1
  358. start iqmsd
  359.  
  360. on property:service.iq.active=0
  361. stop iqmsd
  362.  
  363. # LGE_CHANGE_CIQ_E [[email protected]] 2010-07-09, [CIQ]
Advertisement
Add Comment
Please, Sign In to add comment