blob: 2909a81cbd27f8ecfb40fec5ac4b06c58af7bace [file] [log] [blame]
David Ng682ef2d2012-11-26 15:07:48 -08001# Copyright (c) 2012, The Linux Foundation. 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
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.
Duy Truong63ecafb2013-01-16 05:15:54 -080012# * Neither the name of The Linux Foundation nor the names of its
David Ng682ef2d2012-11-26 15:07:48 -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
30on early-init
31 mkdir /firmware 0771 system system
32 symlink /data/tombstones /tombstones
33
David Ngd61c5c62013-06-20 20:21:44 -070034on init
Sridhar Nelloru2a5353c2013-08-06 20:24:29 -070035 export BOOTCLASSPATH ${BOOTCLASSPATH}:/system/framework/oem-services.jar:/system/framework/WfdCommon.jar:/system/framework/qcmediaplayer.jar
David Ng682ef2d2012-11-26 15:07:48 -080036on fs
37 mount_all fstab.qcom
38
39 # Keeping following partitions outside fstab file. As user may not have
40 # these partition flashed on the device. Failure to mount any partition in fstab file
41 # results in failure to launch late-start class.
42
43 wait /dev/block/platform/msm_sdcc.1/by-name/cache
44 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1
45
46 wait /dev/block/platform/msm_sdcc.1/by-name/persist
47 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persist /persist nosuid nodev barrier=1
48
49 wait /dev/block/platform/msm_sdcc.1/by-name/modem
50 mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
51
52on post-fs-data
53 mkdir /data/tombstones 0771 system system
54 mkdir /tombstones/modem 0771 system system
55
Susheel Yadagirie78c2472013-05-29 10:19:06 -070056# import cne init file
57on post-fs
58 export LD_PRELOAD /vendor/lib/libNimsWrap.so
59
Krupal Divvela2dbcfc42013-06-12 06:39:36 +053060on boot
Rekha Kumarb5dea9a2013-07-30 10:43:41 -070061 start imsqmidaemon
Krupal Divvela2dbcfc42013-06-12 06:39:36 +053062 insmod /system/lib/modules/adsprpc.ko
Yulian Shandorovb291fa62013-06-24 01:44:26 -070063 # Enable writing to led blink node from userspace
64 chown system system /sys/class/leds/red/blink
Ameya Thakur93fcc572013-08-12 21:34:34 -070065 chown system system /sys/class/leds/green/blink
Krupal Divvela2dbcfc42013-06-12 06:39:36 +053066
Ameya Thakurf4844822013-04-30 14:20:56 -070067#Start the qcom-system-daemon service
68service qcomsysd /system/bin/qcom-system-daemon
69 class main
70
Sreesudhan Ramakrish Ramkumar5502c152013-03-21 16:26:10 -070071#start camera server as daemon
72service qcamerasvr /system/bin/mm-qcamera-daemon
73 class late_start
74 user camera
Sridhar Gujjeca632392013-08-12 06:02:47 -070075 group camera system inet input graphics
Sreesudhan Ramakrish Ramkumar5502c152013-03-21 16:26:10 -070076
David Keitel7efdd3f2013-04-05 15:59:49 -070077# Allow usb charging to be disabled persistently
78on property:persist.usb.chgdisabled=1
79 write /sys/class/power_supply/battery/charging_enabled 0
80
81on property:persist.usb.chgdisabled=0
82 write /sys/class/power_supply/battery/charging_enabled 1
83
David Ng682ef2d2012-11-26 15:07:48 -080084service time_daemon /system/bin/time_daemon
85 class late_start
86 user root
87 group root
Jennifer Liu5b1527c2013-02-22 17:38:07 -080088
Harry Yang323f73f2013-04-05 10:48:01 -070089service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
90 user root
91 disabled
92
Kevin Tangd2ebd092013-05-28 10:30:22 -070093#start GNSS/Sensor interface daemon
94service gsiff_daemon /system/bin/gsiff_daemon
95 class late_start
96 user system
97 group gps net_raw
98
Jennifer Liu5b1527c2013-02-22 17:38:07 -080099service thermal-engine /system/bin/thermal-engine
100 class main
101 user root
102 group root
Hariprasad Dhalinarasimha7f932142013-03-12 13:19:27 -0700103
104service qrngd /system/bin/qrngd -f
105 class main
106 user root
107 group root
108
Hariprasad Dhalinarasimhaf6eee5a2013-03-14 16:42:31 -0700109service qseecomd /system/bin/qseecomd
110 class late_start
111 user root
112 group root
113
Ravishankar Sarawadi7e2f2da2013-05-07 15:15:45 -0700114service audiod /system/bin/audiod
115 class late_start
116 user system
117 group system
118
Krupal Divvela2dbcfc42013-06-12 06:39:36 +0530119service adsprpcd /system/bin/adsprpcd
120 class main
121 user media
122 group media
Rekha Kumarb5dea9a2013-07-30 10:43:41 -0700123
124service imsqmidaemon /system/bin/imsqmidaemon
125 class main
126 user system
127 group radio net_raw log qcom_diag
128 disabled
129
130# imsdatadaemon starts with root and UID will be downgraded to SYSTEM.
131service imsdatadaemon /system/bin/imsdatadaemon
132 class main
133 user root
134 group radio net_raw log qcom_diag net_admin
135 disabled
136
137on property:sys.ims.QMI_DAEMON_STATUS=1
138 start imsdatadaemon
139
140service ims_rtp_daemon /system/bin/ims_rtp_daemon
141 class main
142 user system
143 group radio net_raw diag qcom_diag log
144 disabled
145
146on property:sys.ims.DATA_DAEMON_STATUS=1
147 start ims_rtp_daemon
148
Sameer Thalappil8ad31412013-08-08 14:03:23 -0700149service wcnss-service /system/bin/wcnss_service
150 class late_start
151 user system
152 group system wifi
153 disabled
154 oneshot
155
156on property:wlan.driver.ath=0
157 start wcnss-service
158