blob: 771df6c6764a9235729a0cc0ab4e259e444ab21b [file] [log] [blame]
Elad Levi2f5b83f2013-01-29 23:34:15 +02001# Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
Ajay Dudani50eeeab2011-11-23 21:19:57 -08002#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are
5# met:
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
Elad Levi2f5b83f2013-01-29 23:34:15 +020012# * Neither the name of The Linux Foundation nor the names of its
Ajay Dudani50eeeab2011-11-23 21:19:57 -080013# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28#
29
David Ngf286ae32012-07-18 16:48:28 -070030on early-init
31 mkdir /firmware 0771 system system
32 symlink /data/tombstones /tombstones
33
Elad Levi2f5b83f2013-01-29 23:34:15 +020034on init
Deva Ramasubramanianc415a682013-07-01 15:55:43 -070035 export BOOTCLASSPATH ${BOOTCLASSPATH}:/system/framework/oem-services.jar:/system/framework/WfdCommon.jar
Elad Levi2f5b83f2013-01-29 23:34:15 +020036
Susheel Yadagiri9515efd2013-02-15 09:45:42 -080037# import cne init file
38on post-fs
Satya Durga Srinivasu Prabhala6c0ce8d2013-03-15 17:25:13 +053039 export LD_PRELOAD /vendor/lib/libNimsWrap.so
Susheel Yadagiri9515efd2013-02-15 09:45:42 -080040
David Ngf286ae32012-07-18 16:48:28 -070041on fs
David Ng8c196492012-08-13 22:26:59 -070042 mount_all fstab.qcom
David Ngf286ae32012-07-18 16:48:28 -070043
44 # Keeping following partitions outside fstab file. As user may not have
45 # these partition flashed on the device. Failure to mount any partition in fstab file
46 # results in failure to launch late-start class.
47
48 wait /dev/block/platform/msm_sdcc.1/by-name/cache
49 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1
50
51 wait /dev/block/platform/msm_sdcc.1/by-name/persist
52 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persist /persist nosuid nodev barrier=1
53
54 wait /dev/block/platform/msm_sdcc.1/by-name/modem
David Ngccc18e42012-08-16 15:56:44 -070055 mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
Ajay Dudani50eeeab2011-11-23 21:19:57 -080056
David Ngf286ae32012-07-18 16:48:28 -070057on post-fs-data
58 mkdir /data/tombstones 0771 system system
59 mkdir /tombstones/modem 0771 system system
60 mkdir /tombstones/lpass 0771 system system
61 mkdir /tombstones/wcnss 0771 system system
62 mkdir /tombstones/dsps 0771 system system
63
David Ng99272202013-06-04 17:00:50 -070064on boot
65 start imsqmidaemon
66 insmod /system/lib/modules/adsprpc.ko
67
David Keitela92f9902013-04-02 17:33:53 -070068# Allow usb charging to be disabled persistently
David Keiteld69fa572013-01-10 16:50:19 -080069on property:persist.usb.chgdisabled=1
70 write /sys/class/power_supply/battery/charging_enabled 0
71
David Keitela92f9902013-04-02 17:33:53 -070072on property:persist.usb.chgdisabled=0
73 write /sys/class/power_supply/battery/charging_enabled 1
74
Pradeep Panigrahi26f20d02013-07-02 02:59:04 +053075# bt_hsic_control
76service bt_hsic_control /system/bin/sh /system/etc/hsic.control.bt.sh
77 user root
78 disabled
79
80on property:bluetooth.hsic_ctrl=load_wlan
81 start bt_hsic_control
82
83on property:bluetooth.hsic_ctrl=unbind_hsic
84 start bt_hsic_control
85
Kevin Chan1282c722012-08-17 15:00:35 -070086#start camera server as daemon
87service qcamerasvr /system/bin/mm-qcamera-daemon
88 class late_start
89 user camera
Sridhar Gujje1b10c1d2013-08-12 06:02:18 -070090 group camera system inet input graphics
Kevin Chan1282c722012-08-17 15:00:35 -070091
Kevin Tang51dc2af2012-12-10 17:37:28 -080092#start GNSS/Sensor interface daemon
93service gsiff_daemon /system/bin/gsiff_daemon
94 class late_start
95 user system
96 group gps net_raw
97
Hariprasad Dhalinarasimhadf541ff2012-06-28 15:29:38 -070098service qrngd /system/bin/qrngd -f
99 class main
David Ng388b7852012-08-13 10:27:12 -0700100 user root
101 group root
Karthik Parsha09745a12012-07-30 19:20:43 -0700102
Ramesh Masavarapu186ee722012-08-30 10:03:36 -0700103service qseecomd /system/bin/qseecomd
Zhen Kong0f8eb702013-05-15 17:00:59 -0700104 class core
Hariprasad Dhalinarasimhafad0bae2013-02-04 19:29:21 -0800105 user root
106 group root
Ramesh Masavarapu186ee722012-08-30 10:03:36 -0700107
Badhri Jagan Sridharan091ccd12013-07-16 12:25:45 -0700108service mpdecision /system/bin/mpdecision --avg_comp
Karthik Parsha09745a12012-07-30 19:20:43 -0700109 user root
110 disabled
Praveen Chidambaram07851852012-08-27 16:26:00 -0600111
Bhargav Gurappadi4e7659b2012-10-04 12:31:46 -0700112service qosmgrd /system/bin/qosmgr /system/etc/qosmgr_rules.xml
113 user system
114 group system
115 disabled
116
Praveen Chidambaram90ff9762012-11-06 15:35:33 -0700117service thermal-engine /system/bin/thermal-engine
118 class main
119 user root
120 group root
Ashay Jaiswale62cf3b2012-09-06 12:43:31 +0530121
Amir Samuelov526e4372013-05-21 11:53:44 +0300122service security-check1 /sbin/security_boot_check system
123 class core
124 oneshot
125
126service security-check2 /sbin/security_boot_check recovery
127 class core
128 oneshot
129
Ashay Jaiswale62cf3b2012-09-06 12:43:31 +0530130service time_daemon /system/bin/time_daemon
131 class late_start
132 user root
133 group root
Ravishankar Sarawadi23a07f52012-09-12 12:39:19 -0700134
David Ng99272202013-06-04 17:00:50 -0700135service adsprpcd /system/bin/adsprpcd
136 class main
137 user media
138 group media
139
Ravishankar Sarawadi23a07f52012-09-12 12:39:19 -0700140service audiod /system/bin/audiod
141 class late_start
142 user system
143 group system
Baruch Eruchimovitch499ef322013-01-11 15:01:00 +0200144
145service usf_tester /system/bin/usf_tester
146 user system
147 group system inet
148 disabled
149
150service usf_epos /system/bin/usf_epos
151 user system
152 group system inet
153 disabled
154
155service usf_gesture /system/bin/usf_gesture
156 user system
157 group system inet
158 disabled
159
160service usf_p2p /system/bin/usf_p2p
161 user system
162 group system inet
163 disabled
164
165service usf_hovering /system/bin/usf_hovering
166 user system
167 group system inet
168 disabled
169
170service usf_proximity /system/bin/usf_proximity
171 user system
172 group system inet
173 disabled
174
175service usf-post-boot /system/bin/sh /system/etc/usf_post_boot.sh
176 class late_start
177 user root
178 disabled
179 oneshot
180
181on property:init.svc.bootanim=stopped
182 start usf-post-boot
Naveen Kalla61ca0a62013-02-23 20:20:00 -0800183
184service imsqmidaemon /system/bin/imsqmidaemon
185 class main
186 user system
187 group radio net_raw log qcom_diag
188 disabled
189
Naveen Kalla61ca0a62013-02-23 20:20:00 -0800190# imsdatadaemon starts with root and UID will be downgraded to SYSTEM.
191service imsdatadaemon /system/bin/imsdatadaemon
192 class main
193 user root
194 group radio net_raw log qcom_diag net_admin
195 disabled
196
Sameer Thalappilb5229be2013-05-03 15:42:29 -0700197service wcnss-service /system/bin/wcnss_service
198 class late_start
199 user system
Sameer Thalappil5d4110d2013-05-17 10:01:47 -0700200 group system wifi
Ming-yi Linf6863932013-06-06 13:17:17 +0800201 disabled
Sameer Thalappilb5229be2013-05-03 15:42:29 -0700202 oneshot
203
Ming-yi Linf6863932013-06-06 13:17:17 +0800204on property:wlan.driver.ath=0
205 start wcnss-service
206
Naveen Kalla61ca0a62013-02-23 20:20:00 -0800207on property:sys.ims.QMI_DAEMON_STATUS=1
208 start imsdatadaemon
209
210service ims_rtp_daemon /system/bin/ims_rtp_daemon
211 class main
212 user system
213 group radio net_raw diag qcom_diag log
214 disabled
215
216on property:sys.ims.DATA_DAEMON_STATUS=1
217 start ims_rtp_daemon