playfulgod

Untitled

May 18th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.34 KB | None | 0 0
  1. # Copyright (c) 2009-2011, 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. import init.qcom.usb.rc
  29. on init
  30. # Set permissions for persist partition
  31. mkdir /persist 0771 system system
  32.  
  33. on early-boot
  34. # set RLIMIT_MEMLOCK to 64MB
  35. setrlimit 8 67108864 67108864
  36.  
  37. on boot
  38. # exec system/bin/btnvtool -O # LGE_CHANGE [[email protected]] <It is only used by eng mode>
  39. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  40. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  41. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  42. chown bluetooth bluetooth /sys/class/rfkill/rfkill1/type
  43. chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
  44. chown bluetooth bluetooth /sys/class/rfkill/rfkill2/type
  45. chown bluetooth bluetooth /sys/class/rfkill/rfkill2/state
  46. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  47. chown system system /sys/module/sco/parameters/disable_esco
  48. chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
  49. chmod 0660 /sys/module/bluetooth_power/parameters/power
  50. # LGE: LGBT_COMMON_LGTEST_DUTMODE, [20111116, [email protected]] Enable BT DUT mode
  51. # LGBT_COMMON_BUGFIX_PERMISSION_MODIFY_FOR_CTS
  52. # LGE: LGBT_COMMON_LGTEST_DUTMODE, [20120320, [email protected]] Change premission from 644 to 622
  53. # LGBT_COMMON_BUGFIX_PERMISSIONFORCTS_AND_DUTMODE, [20120326, [email protected]] Change premission from 622 to 660
  54. chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
  55. chmod 0660 /sys/class/rfkill/rfkill0/state
  56. chmod 0660 /sys/class/rfkill/rfkill1/state
  57. chmod 0660 /sys/class/rfkill/rfkill2/state
  58. chmod 0660 /proc/bluetooth/sleep/proto
  59. chown bluetooth bluetooth /dev/ttyHS0
  60. chmod 0660 /dev/ttyHS0
  61. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
  62. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  63.  
  64. #Create QMUX deamon socket area
  65. mkdir /dev/socket/qmux_radio 0770 radio radio
  66. chmod 2770 /dev/socket/qmux_radio
  67. mkdir /dev/socket/qmux_audio 0770 media audio
  68. chmod 2770 /dev/socket/qmux_audio
  69. mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
  70. chmod 2770 /dev/socket/qmux_bluetooth
  71. mkdir /dev/socket/qmux_gps 0770 gps gps
  72. chmod 2770 /dev/socket/qmux_gps
  73.  
  74. # Allow QMUX daemon to assign port open wait time
  75. chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait
  76.  
  77. setprop wifi.interface wlan0
  78.  
  79. #BEGIN: 0019636 [email protected] 2012-06-11
  80. #ADD: 0019636: [F200][BT] BTL-A Porting
  81. # Need 4 properties for bluetooth on
  82. setprop service.brcm.bt.btld 0
  83. setprop service.brcm.bt.activation 0
  84. setprop service.brcm.bt.srv_active 0
  85. setprop service.brcm.bt.hcid_active 0
  86. # setprop ro.bluetooth.PANenable 1
  87. #END: 0019636 [email protected] 2012-06-11
  88. # LGE_BT_S: [ADD] chanha.park '12-08-26 - [F200][BT] Support BT WBS...
  89. setprop service.brcm.bt.wbs 1
  90. # LGE_BT_E
  91.  
  92. #Set SUID bit for usbhub
  93. #chmod 4755 /system/bin/usbhub
  94. #chmod 755 /system/bin/usbhub_init
  95.  
  96. #Remove SUID bit for iproute2 ip tool
  97. chmod 0755 /system/bin/ip
  98.  
  99. #port-bridge
  100. chmod 0660 /dev/smd0
  101. chown system system /dev/smd0
  102.  
  103. #BT DUN port-bridge
  104. chmod 0660 /dev/smd7
  105. chown bluetooth bluetooth /dev/smd7
  106.  
  107. chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
  108.  
  109. # create symlink for fb1 as HDMI
  110. symlink /dev/graphics/fb1 /dev/graphics/hdmi
  111.  
  112. # Remove write permissions to video related nodes
  113. chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
  114. chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode
  115. chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d
  116.  
  117. # Change owner and group for media server and surface flinger
  118. chown system system /sys/devices/virtual/graphics/fb1/format_3d
  119.  
  120. #For bridgemgr daemon to inform the USB driver of the correct transport
  121. chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
  122.  
  123. # LGE_CHANGE_S, [2011-08-08], [email protected], change mode/owner of rtc device for SecureClock
  124. chmod 660 /dev/rtc0
  125. chown system system /dev/rtc0
  126. # LGE_CHANGE_E, [2011-08-08], [email protected], change mode/owner of rtc device for SecureClock
  127.  
  128. # LGE_CHANGE_S, [2012-03-01], [email protected], change permission and ownership in hdmid
  129. chmod 0660 /sys/class/graphics/fb1/power_state
  130. chown system graphics /sys/class/graphics/fb1/connected
  131. chown system graphics /sys/class/graphics/fb1/edid_modes
  132. chown system graphics /sys/class/graphics/fb1/power_state
  133. chown system graphics /sys/class/graphics/fb1/hpd
  134. chown system graphics /sys/class/graphics/fb1/hdcp_present
  135. chown system graphics /sys/class/graphics/fb1/hdmi_mode
  136. # LGE_CHANGE_E, [2012-03-01], [email protected], change owner of fb1 for HDMI
  137.  
  138. #To allow interfaces to get v6 address when tethering is enabled
  139. write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
  140. write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
  141. write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
  142. write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
  143. write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
  144. write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
  145. write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
  146. write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
  147. write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2
  148. write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2
  149. write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2
  150. write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2
  151. write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2
  152. write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2
  153. write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
  154. write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2
  155. write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2
  156. write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2
  157. write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2
  158. write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2
  159. # LGE_CHANGE_S [2012-05-29] [email protected] copy last_kmsg to /data/dontpanic
  160. copy /proc/last_kmsg /data/dontpanic/last_kmsg
  161. chmod 0666 /data/dontpanic/last_kmsg
  162. # LGE_CHANGE_E [2012-05-29] [email protected] copy last_kmsg to /data/dontpanic
  163.  
  164. # To prevent out of order acknowledgements from making
  165. # connection tracking to treat them as not belonging to
  166. # the connection they belong to.
  167. # Otherwise, a weird issue happens in which some long
  168. # connections on high-throughput links get dropped when
  169. # an ack packet comes out of order
  170. write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1
  171.  
  172. # import cne init file
  173. on post-fs
  174. export_rc /persist/init.cne.rc
  175.  
  176. # msm specific files that need to be created on /data
  177. on post-fs-data
  178.  
  179. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  180.  
  181. # Create the directories used by the Wireless subsystem
  182. mkdir /data/misc/wifi 0771 wifi system
  183. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  184. mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
  185. mkdir /data/misc/dhcp 0770 dhcp dhcp
  186. # chown dhcp dhcp /data/misc/dhcp
  187. # CONFIG_LGE_WLAN_PATCH
  188. # to observe dnsmasq.leases file for dhcp information of soft ap.
  189. chown dhcp system /data/misc/dhcp
  190.  
  191. # Create directory used by audio subsystem
  192. mkdir /data/misc/audio 0770 audio audio
  193.  
  194. # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
  195. # We chown/chmod /persist again so because mount is run as root + defaults
  196. chown system system /persist
  197. chmod 0771 /persist
  198. chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
  199. chmod 0664 /sys/devices/platform/msm_sdcc.2/polling
  200. chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
  201. chmod 0664 /sys/devices/platform/msm_sdcc.4/polling
  202.  
  203. # Chown polling nodes as needed from UI running on system server
  204. chown system system /sys/devices/platform/msm_sdcc.1/polling
  205. chown system system /sys/devices/platform/msm_sdcc.2/polling
  206. chown system system /sys/devices/platform/msm_sdcc.3/polling
  207. chown system system /sys/devices/platform/msm_sdcc.4/polling
  208.  
  209. # LGE_CHANGE_S, 20111226, [email protected], Mobile DM Router
  210. chmod 0660 /dev/lge_dm_tty0
  211. chown system system /dev/lge_dm_tty0
  212. # LGE_CHANGE_E, 20111226, [email protected]
  213.  
  214. #LGE_CHANGE_S 2012.04 [email protected] MTS TEAM
  215. chmod 0660 /dev/mtsk_tty0
  216. chown system system /dev/mtsk_tty0
  217. #LGE_CHANGE_E 2012.04 [email protected] MTS TEAM
  218.  
  219. #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant
  220. mkdir /data/system 0775 system system
  221. symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant
  222.  
  223. #Create directories for wiper services
  224. mkdir /data/wpstiles/ 0755 shell
  225. mkdir /data/wiper 0755 gps qcom_oncrpc
  226.  
  227. #Create directories for gpsone_daemon services
  228. mkdir /data/misc/gpsone_d 0770 system gps
  229.  
  230. #Create directories for QuIPS
  231. mkdir /data/misc/quipc 0770 gps system
  232.  
  233. #Create directories for Location services
  234. mkdir /data/misc/location 0770 gps gps
  235. mkdir /data/misc/location/mq 0770 gps gps
  236. mkdir /data/misc/location/xtwifi 0770 gps gps
  237.  
  238. #Create directory from IMS services
  239. mkdir /data/shared 0755
  240. chown system system /data/shared
  241.  
  242. #Create directory for FOTA
  243. mkdir /data/fota 0771
  244. chown system system /data/fota
  245.  
  246. #Provide the access to hostapd.conf only to root and group
  247. chmod 0660 /data/hostapd/hostapd.conf
  248.  
  249. # Create /data/time folder for time-services
  250. mkdir /data/time/ 0700 system system
  251.  
  252. #LGE_CHANGE_S 20120130 HiddenMenu, [email protected]
  253. mkdir /data/logger 0775 system system
  254. exec /system/bin/smpl_count
  255. #LGE_CHANGE_E 20120130 HiddenMenu, [email protected]
  256.  
  257. #LGE_CHANGE_S 2012-04-27, HiddenMenu, [email protected]
  258. chmod 0775 /data/logger/LogPropValue.sh
  259. chown system system /data/logger/LogPropValue.sh
  260. #LGE_CHANGE_E 2012-04-27, HiddenMenu, [email protected]
  261.  
  262. setprop vold.post_fs_data_done 1
  263.  
  264. #LGE_CHANGE_S 20120327 core, max frequency control [email protected]
  265. chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  266. chown system system /sys/devices/system/cpu/cpu0/online
  267. chown system system /sys/devices/system/cpu/cpu1/online
  268. chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  269. chmod 0664 /sys/devices/system/cpu/cpu0/online
  270. chmod 0664 /sys/devices/system/cpu/cpu1/online
  271. #LGE_CHANGE_E 20120327 core, max frequency control [email protected]
  272.  
  273.  
  274. # Export GPIO56 for fusion targets to enable/disable hub
  275. service usbhub_init /system/bin/usbhub_init
  276. class late_start
  277. user root
  278. disabled
  279. oneshot
  280.  
  281. #on property:ro.board.platform=msm7630_fusion
  282. # start usbhub_init
  283.  
  284. on property:init.svc.wpa_supplicant=stopped
  285. stop dhcpcd
  286.  
  287. on property:bluetooth.isEnabled=true
  288. start btwlancoex
  289. start amp_load
  290. write /sys/class/bluetooth/hci0/idle_timeout 7000
  291.  
  292. on property:bluetooth.isEnabled=false
  293. start amp_unload
  294.  
  295. service qcom-c_core-sh /system/bin/sh /init.qcom.class_core.sh
  296. class core
  297. user root
  298. oneshot
  299.  
  300. service qcom-c_main-sh /system/bin/sh /init.qcom.class_main.sh
  301. class main
  302. user root
  303. oneshot
  304.  
  305. on property:vold.decrypt=trigger_restart_framework
  306. start qcom-c_main-sh
  307.  
  308. service cnd /system/bin/cnd
  309. class late_start
  310. socket cnd stream 666 root radio
  311.  
  312. service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11 /dev/block/mmcblk0p17
  313. class core
  314. user root
  315. disabled
  316.  
  317. on property:ro.emmc=1
  318. start rmt_storage
  319.  
  320. # LGE: LGBT_COMMON_FUNCTION_ADDR_LGFTM, [20110129, [email protected]], read MAC address from LGFTM
  321. #BEGIN: 0019632 [email protected] 2012-05-31
  322. #ADD: 0019632: [F200][BT] Bluetooth board bring-up
  323. #Modified that hciattach
  324. on boot
  325. write /sys/class/rfkill/rfkill0/state 0
  326. write /sys/class/rfkill/rfkill1/state 0
  327. write /sys/class/rfkill/rfkill2/state 0
  328.  
  329. #service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
  330. #service hciattach /system/bin/brcm_patchram_plus -d -enable_hci --no2bytes --enable_lpm \
  331. # --tosleep 50000 --baudrate 4000000 --use_baudrate_for_download --patchram /system/bin/BCM4334B0_002.001.013.0079.0082.hcd /dev/ttyHS0
  332. #service hciattach /system/bin/brcm_patchram_plus --enable_hci --scopcm=0,4,0,0,0,0,0,3,3,0 --no2bytes \
  333. # --baudrate 4000000 --patchram /system/bin/BCM4334B0_002.001.013.0271.0333.hcd /dev/ttyHS0
  334. # class late_start
  335. # user bluetooth
  336. # group qcom_oncrpc bluetooth net_bt_admin system
  337. # disabled
  338. # oneshot
  339. #END: 0019632 [email protected] 2012-05-31
  340.  
  341. #BEGIN: 0019636 [email protected] 2012-06-11
  342. #ADD: 0019636: [F200][BT] BTL-A Porting
  343. service btld /system/bin/logwrapper /system/bin/btld -lpm 1 -hb 4000000
  344. user root
  345. group bluetooth net_bt_admin
  346. disabled
  347. oneshot
  348.  
  349. service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -d -n
  350. class main
  351. socket bluetooth stream 660 bluetooth bluetooth
  352. socket dbus_bluetooth stream 660 bluetooth bluetooth
  353. # init.rc does not yet support applying capabilities, so run as root and
  354. # let bluetoothd drop uid to bluetooth with the right linux capabilities
  355. group bluetooth net_bt_admin misc
  356. disabled
  357.  
  358. # Bluetooth PAN Enable
  359. # dhcp service for pan-nap/pan-u
  360. service dhcpcd_brcm-pan /system/bin/dhcpcd -ABKL
  361. class main
  362. disabled
  363. oneshot
  364.  
  365. service iprenew_brcm-pan /system/bin/dhcpcd -n
  366. class main
  367. disabled
  368. oneshot
  369. #END: 0019636 [email protected] 2012-06-11
  370.  
  371.  
  372.  
  373. # +s LGBT_COMMON_FUNCTION_DUN_DISABLE
  374. #service bt-dun /system/bin/dun-server /dev/smd7 /dev/rfcomm0
  375. # class late_start
  376. # disabled
  377. # oneshot
  378.  
  379. #service dund /system/bin/sdptool add --channel=1 DUN
  380. # class late_start
  381. # user bluetooth
  382. # group bluetooth net_bt_admin
  383. # disabled
  384. # oneshot
  385. # +e LGBT_COMMON_FUNCTION_DUN_DISABLE
  386.  
  387. # +s LGBT_COMMON_FUNCTION_SAP_DISABLE
  388. #service bt-sap /system/bin/sapd 15
  389. # class late_start
  390. # disabled
  391. # oneshot
  392.  
  393. #service sapd /system/bin/sdptool add --channel=15 SAP
  394. # class late_start
  395. # user bluetooth
  396. # group bluetooth net_bt_admin
  397. # disabled
  398. # oneshot
  399. # +e LGBT_COMMON_FUNCTION_SAP_DISABLE
  400.  
  401.  
  402. service bridgemgrd /system/bin/bridgemgrd
  403. class late_start
  404. user radio
  405. group radio
  406. disabled
  407.  
  408. service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
  409. class late_start
  410. user system
  411. group system inet
  412. disabled
  413.  
  414. service qmiproxy /system/bin/qmiproxy
  415. class core
  416. user radio
  417. group radio
  418. # disabled
  419.  
  420. # QMUX must be in multiple groups to support external process connections
  421. service qmuxd /system/bin/qmuxd
  422. class core
  423. user radio
  424. group radio audio bluetooth gps
  425. # disabled
  426.  
  427. service netmgrd /system/bin/netmgrd
  428. class core
  429. # disabled
  430.  
  431. service sensors /system/bin/sensors.qcom
  432. class late_start
  433. user root
  434. group root
  435. disabled
  436.  
  437. on property:ro.use_data_netmgrd=false
  438. # netmgr not supported on specific target
  439. stop netmgrd
  440.  
  441. # Adjust socket buffer to enlarge TCP receive window for high bandwidth
  442. # but only if ro.data.large_tcp_window_size property is set.
  443. on property:ro.data.large_tcp_window_size=true
  444. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  445.  
  446. service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
  447. class late_start
  448. user bluetooth
  449. group bluetooth net_bt_admin inet net_admin net_raw
  450. disabled
  451. oneshot
  452.  
  453. service amp_init /system/bin/amploader -i
  454. class late_start
  455. user root
  456. disabled
  457. oneshot
  458.  
  459. service amp_load /system/bin/amploader -l 7000
  460. class late_start
  461. user root
  462. disabled
  463. oneshot
  464.  
  465. service amp_unload /system/bin/amploader -u
  466. class late_start
  467. user root
  468. disabled
  469. oneshot
  470. service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dnl80211
  471. class late_start
  472. # user root
  473. group wifi inet
  474. disabled
  475. oneshot
  476. #LGE_CHANGE_S, 2012-02-07, enabling AUTO IP and not enabling ARP option
  477. #service dhcpcd_wlan0 /system/bin/dhcpcd -BKLG
  478. service dhcpcd_wlan0 /system/bin/dhcpcd -ABKG
  479. class late_start
  480. disabled
  481. oneshot
  482.  
  483. service dhcpcd_p2p /system/bin/dhcpcd -BKLG
  484. class late_start
  485. disabled
  486. oneshot
  487.  
  488. #[email protected] : K-Option is added.
  489. service iprenew_wlan0 /system/bin/dhcpcd -nK
  490. class late_start
  491. disabled
  492. oneshot
  493.  
  494. service iprenew_p2p /system/bin/dhcpcd -n p2p
  495. class late_start
  496. disabled
  497. oneshot
  498.  
  499. service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
  500. disabled
  501. oneshot
  502.  
  503. service wiperiface /system/bin/wiperiface
  504. class late_start
  505. user gps
  506. group gps qcom_oncrpc net_raw
  507. oneshot
  508.  
  509. service gpsone_daemon /system/bin/gpsone_daemon
  510. class late_start
  511. user gps
  512. group gps qcom_oncrpc inet net_raw
  513. disabled
  514.  
  515. service quipc_igsn /system/bin/quipc_igsn
  516. class late_start
  517. user gps
  518. group inet gps
  519. disabled
  520.  
  521. service quipc_main /system/bin/quipc_main
  522. class late_start
  523. user gps
  524. group gps net_admin wifi inet
  525. disabled
  526.  
  527. service location_mq /system/bin/location-mq
  528. class late_start
  529. user gps
  530. group gps
  531. disabled
  532.  
  533. service xtwifi_inet /system/bin/xtwifi-inet-agent
  534. class late_start
  535. user gps
  536. group inet gps
  537. disabled
  538.  
  539. service xtwifi_client /system/bin/xtwifi-client
  540. class late_start
  541. user gps
  542. group net_admin wifi inet gps
  543. disabled
  544.  
  545. service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
  546. class late_start
  547. user root
  548. group system qcom_oncrpc
  549. disabled
  550. oneshot
  551.  
  552. on property:crypto.driver.load=1
  553. insmod /system/lib/modules/qce.ko
  554. insmod /system/lib/modules/qcedev.ko
  555.  
  556. on property:crypto.driver.load=0
  557. exec /system/bin/rmmod qcedev.ko
  558. exec /system/bin/rmmod qce.ko
  559.  
  560. service drmdiag /system/bin/drmdiagapp
  561. class late_start
  562. user root
  563. disabled
  564. oneshot
  565.  
  566. on property:drmdiag.load=1
  567. start drmdiag
  568.  
  569. on property:drmdiag.load=0
  570. stop drmdiag
  571.  
  572. service qcom-sh /system/bin/sh /init.qcom.sh
  573. class late_start
  574. user root
  575. oneshot
  576.  
  577. service qcom-post-boot /system/bin/sh /system/etc/init.qcom.post_boot.sh
  578. class late_start
  579. user root
  580. disabled
  581. oneshot
  582.  
  583. # 20120702, [email protected]. Remove QCom Wifi (replace BRCM4334)
  584. #service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh
  585. # class late_start
  586. # oneshot
  587.  
  588. on property:sys.boot_completed=1
  589. start qcom-post-boot
  590.  
  591. service atfwd /system/bin/ATFWD-daemon
  592. class late_start
  593. user system
  594. group system radio
  595. onrestart /system/bin/log -t RIL-ATFWD -p w "ATFWD daemon restarted"
  596.  
  597. service hdmid /system/bin/hdmid
  598. class late_start
  599. # LGE_CHANGE_S, [2012-03-01], [email protected], change hdmid permission to "system"
  600. # socket hdmid stream 0660 root system graphics
  601. user system
  602. group system graphics
  603. socket hdmid stream 0660 system system
  604. # LGE_CHANGE_E, [2012-03-01], [email protected], change hdmid permission to "system"
  605. disabled
  606.  
  607. service ppd /system/bin/mm-pp-daemon
  608. class late_start
  609. user system
  610. socket pps stream 0660 system system graphics
  611. group system graphics
  612.  
  613. service hostapd /system/bin/hostapd -dddd /data/hostapd/hostapd.conf
  614. class late_start
  615. user root
  616. group root
  617. oneshot
  618. disabled
  619.  
  620. service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
  621. class late_start
  622. group radio wifi inet
  623. disabled
  624. oneshot
  625.  
  626. on property:persist.data.ds_fmc_app.mode=1
  627. start ds_fmc_appd
  628.  
  629. service ims_regmanager /system/bin/exe-ims-regmanagerprocessnative
  630. class late_start
  631. user system
  632. group qcom_oncrpc net_bt_admin inet radio wifi
  633. disabled
  634.  
  635. on property:persist.ims.regmanager.mode=1
  636. start ims_regmanager
  637.  
  638. on property:ro.data.large_tcp_window_size=true
  639. # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
  640. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  641.  
  642. service time_daemon /system/bin/time_daemon
  643. class late_start
  644. user root
  645. group root
  646. oneshot
  647. disabled
  648.  
  649. on property:persist.timed.enable=true
  650. start time_daemon
  651.  
  652. service battery_monitor /system/bin/battery_monitor
  653. user system
  654. group system
  655. disabled
  656.  
  657. service ril-daemon1 /system/bin/rild -c 1
  658. class main
  659. socket rild1 stream 660 root radio
  660. socket rild-debug1 stream 660 radio system
  661. user root
  662. disabled
  663. group radio cache inet misc audio sdcard_rw qcom_oncrpc diag
  664.  
  665. service profiler_daemon /system/bin/profiler_daemon
  666. class late_start
  667. user root
  668. group root
  669. disabled
  670.  
  671. # LGE_CHANGE_S, 20111226, [email protected], Mobile DM Router
  672. service lg_dm_router /system/bin/lg_dm_router
  673. class late_start
  674. user system
  675. group system
  676. socket Full.DM.port stream 660 system system
  677. # LGE_CHANGE_E, 20111226, [email protected]
  678.  
  679.  
  680. #LGE_CHANGE_S 2012.04 [email protected] MTS TEAM
  681. service mtsd /system/bin/mtsd
  682. class late_start
  683. oneshot
  684. socket mtsd.port stream 660 system system
  685.  
  686. service mtsd_main /system/bin/mtsd_logcat_main
  687. class late_start
  688. oneshot
  689.  
  690. service mtsd_events /system/bin/mtsd_logcat_events
  691. class late_start
  692. oneshot
  693.  
  694. service mtsd_radio /system/bin/mtsd_logcat_radio
  695. class late_start
  696. oneshot
  697.  
  698. service mtsd_system /system/bin/mtsd_logcat_system
  699. class late_start
  700. oneshot
  701.  
  702. service mtsd_fmgr /system/bin/mtsd_file_manager
  703. class late_start
  704. oneshot
  705.  
  706. service mtsd_hist /system/bin/mtsd_logcat_filter
  707. class late_start
  708. oneshot
  709. #LGE_CHANGE_E 2012.04 [email protected] MTS TEAM
  710.  
  711. # LGE_UPDATE_S
  712. # Do not activate below. Below already exists in init.target.rc.
  713. # 2012-01-08, [email protected]
  714. #service sdcard /system/bin/sdcard /data/media 1023 1023
  715. # class late_start
  716. # disabled
  717. #
  718. #on property:persist.fuse_sdcard=true
  719. # start sdcard
  720. # LGE_UPDATE_E
  721.  
  722. service hcidump /system/bin/sh /system/etc/hcidump.sh
  723. user bluetooth
  724. group bluetooth system net_bt_admin net_admin
  725. disabled
  726. oneshot
  727.  
  728. service charger /charger
  729. class charger
  730.  
  731. service ssr_diag /system/bin/ssr_diag
  732. class late_start
  733. user system
  734. group system
  735. disabled
  736.  
  737. # Limit to device reset (1) and independent SSR (3)
  738. on property:persist.sys.ssr.restart_level=1
  739. write /sys/module/subsystem_restart/parameters/restart_level 1
  740.  
  741. on property:persist.sys.ssr.restart_level=3
  742. write /sys/module/subsystem_restart/parameters/restart_level 3
  743.  
  744. # LGE_S: LGBT_COMMON_LGTEST_DUTMODE, [[email protected] 20111116] Enable BT DUT mode
  745. service hciattach_dut /system/bin/sh /system/etc/init.lge_dut.bt.sh
  746. user bluetooth
  747. group qcom_oncrpc bluetooth net_bt_admin
  748. disabled
  749. oneshot
  750.  
  751.  
  752. # LGE_CHANGE_S, 20110725, [email protected] by Beaver, To enable ftm for WLAN
  753. # CONFIG_LGE_WLAN_PATCH
  754.  
  755. #
  756. # CONFIG_LGE_WLAN_QCOM_PATCH
  757. # 2012.07.06 [email protected][wo0gi] block the code because of qct patch [START]
  758. #service ftm_ptt /system/bin/ftm_ptt -d
  759. # class late_start
  760. # user root
  761. # group radio system
  762. # disabled
  763. # oneshot
  764.  
  765. #on property:hw.ftm_ptt_start=1
  766. # start ftm_ptt
  767.  
  768. #on property:hw.ftm_ptt_start=0
  769. # stop ftm_ptt
  770. # 2012.07.06 [email protected][wo0gi] block the code because of qct patch [END]
  771.  
  772. # 20120702, [email protected]. Remove QCom Wifi (replace BRCM4334)
  773. #service wlan-on-off /system/bin/sh /system/etc/init.wlan-on-off.sh
  774. # class late_start
  775. # user root
  776. # disabled
  777. # oneshot
  778.  
  779. # 20120702, [email protected]. Remove QCom Wifi (replace BRCM4334)
  780. # Workaround to resolve WCNSS power problem in Kernel Mode booting
  781. #on property:init.svc.qcom-wifi=stopped
  782. # start wlan-on-off
  783. # LGE_CHANGE_E, 20110725, [email protected]
  784.  
  785.  
  786.  
  787. # for LinkBackup
  788. # ------------------------------------
  789. service spritebud /system/xbin/spritebud
  790. socket spritebud stream 660 root radio
  791. class main
  792. user root
  793. group root
  794. # ------------------------------------
  795. # LGE_CHANGE_S, 20120108, HiddenMenu Log_service [email protected]
  796. service logcat-main /system/bin/logcat -v time -b main -f /data/logger/main.log -n 4 -r 8192
  797. class late_start
  798. disabled
  799. oneshot
  800.  
  801. on property:persist.service.main.enable=1
  802. start logcat-main
  803.  
  804. on property:persist.service.main.enable=0
  805. stop logcat-main
  806.  
  807. service logcat-system /system/bin/logcat -v time -b system -f /data/logger/system.log -n 4 -r 4096
  808. class late_start
  809. disabled
  810. oneshot
  811.  
  812. on property:persist.service.system.enable=1
  813. start logcat-system
  814.  
  815. # [START_LGE_HiddenMenu] , ADD, sungkyoung.kim ,2012-03-23 , change command from "start" to "stop"
  816. on property:persist.service.system.enable=0
  817. stop logcat-system
  818. # start logcat-system
  819. # [END_LGE_HiddenMenu] , ADD, sungkyoung.kim ,2012-03-23 , change command from "start" to "stop"
  820.  
  821. service logcat-radio /system/bin/logcat -v time -b radio -f /data/logger/radio.log -n 9 -r 4096
  822. class late_start
  823. disabled
  824. oneshot
  825.  
  826. on property:persist.service.radio.enable=1
  827. start logcat-radio
  828.  
  829. on property:persist.service.radio.enable=0
  830. stop logcat-radio
  831.  
  832. service logcat-events /system/bin/logcat -v time -b events -f /data/logger/events.log -n 4 -r 4096
  833. class late_start
  834. disabled
  835. oneshot
  836.  
  837. on property:persist.service.events.enable=1
  838. start logcat-events
  839.  
  840. on property:persist.service.events.enable=0
  841. stop logcat-events
  842.  
  843. service logcat-kernel /system/bin/sh /system/etc/save_kernel_log.sh
  844. class late_start
  845. disabled
  846. oneshot
  847.  
  848. on property:persist.service.kernel.enable=1
  849. start logcat-kernel
  850.  
  851. on property:persist.service.kernel.enable=0
  852. stop logcat-kernel
  853.  
  854. # LGE_CHANGE_S, [LGE_DATA][TCP_DUMP], [email protected], 2012-02-16
  855. service logging_packet /system/xbin/tcpdump -i any -C 4 -W 10 -s 0 -w /mnt/sdcard/log/packet.pcap
  856. class late_start
  857. disabled
  858. oneshot
  859.  
  860. on property:persist.service.logging_packet=1
  861. start logging_packet
  862.  
  863. on property:persist.service.logging_packet=0
  864. stop logging_packet
  865. # LGE_CHANGE_E, [LGE_DATA][TCP_DUMP], [email protected], 2012-02-16
  866.  
  867. # LGE_CHANGE_S, [LGE][framework] packet log service for hiddenmenu, [email protected], 2012-09-05
  868. service log-packet /system/xbin/tcpdump -i any -C 4 -W 10 -Z root -s 0 -w /data/logger/packet.pcap
  869. class main
  870. disabled
  871. oneshot
  872.  
  873. on property:persist.service.packet.enable=1
  874. start log-packet
  875.  
  876. on property:persist.service.packet.enable=0
  877. stop log-packet
  878. # LGE_CHANGE_E, [LGE][framework], [email protected], 2012-09-05
  879.  
  880. #LGE_CHANGE_S [email protected], HiddenMenu, Loading LogService Properties
  881. service cur_prop_val /system/bin/sh /data/logger/LogPropValue.sh
  882. class late_start
  883. user system
  884. oneshot
  885. #LGE_CHANGE_E, [email protected], HiddenMenu, Loading LogService Properties
  886.  
  887. #LGE_CHANGE_S 20120327 core, max frequency control [email protected]
  888. on property:sys.lge.core.manual=1
  889. stop mpdecision
  890. write /sys/devices/system/cpu/cpu1/online 0
  891. on property:sys.lge.core.manual=0
  892. start mpdecision
  893. #LGE_CHANGE_E 20120327 core, max frequency control [email protected]
Advertisement
Add Comment
Please, Sign In to add comment