blob: 17aee5eebff2c8a7882eff84862577d2220735c7 [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
Krupal Divvela2dbcfc42013-06-12 06:39:36 +053065
Ameya Thakurf4844822013-04-30 14:20:56 -070066#Start the qcom-system-daemon service
67service qcomsysd /system/bin/qcom-system-daemon
68 class main
69
Sreesudhan Ramakrish Ramkumar5502c152013-03-21 16:26:10 -070070#start camera server as daemon
71service qcamerasvr /system/bin/mm-qcamera-daemon
72 class late_start
73 user camera
74 group camera system inet input graphics
75
David Keitel7efdd3f2013-04-05 15:59:49 -070076# Allow usb charging to be disabled persistently
77on property:persist.usb.chgdisabled=1
78 write /sys/class/power_supply/battery/charging_enabled 0
79
80on property:persist.usb.chgdisabled=0
81 write /sys/class/power_supply/battery/charging_enabled 1
82
David Ng682ef2d2012-11-26 15:07:48 -080083service time_daemon /system/bin/time_daemon
84 class late_start
85 user root
86 group root
Jennifer Liu5b1527c2013-02-22 17:38:07 -080087
Harry Yang323f73f2013-04-05 10:48:01 -070088service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
89 user root
90 disabled
91
Kevin Tangd2ebd092013-05-28 10:30:22 -070092#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
Jennifer Liu5b1527c2013-02-22 17:38:07 -080098service thermal-engine /system/bin/thermal-engine
99 class main
100 user root
101 group root
Hariprasad Dhalinarasimha7f932142013-03-12 13:19:27 -0700102
103service qrngd /system/bin/qrngd -f
104 class main
105 user root
106 group root
107
Hariprasad Dhalinarasimhaf6eee5a2013-03-14 16:42:31 -0700108service qseecomd /system/bin/qseecomd
109 class late_start
110 user root
111 group root
112
Ravishankar Sarawadi7e2f2da2013-05-07 15:15:45 -0700113service audiod /system/bin/audiod
114 class late_start
115 user system
116 group system
117
Krupal Divvela2dbcfc42013-06-12 06:39:36 +0530118service adsprpcd /system/bin/adsprpcd
119 class main
120 user media
121 group media
Rekha Kumarb5dea9a2013-07-30 10:43:41 -0700122
123service imsqmidaemon /system/bin/imsqmidaemon
124 class main
125 user system
126 group radio net_raw log qcom_diag
127 disabled
128
129# imsdatadaemon starts with root and UID will be downgraded to SYSTEM.
130service imsdatadaemon /system/bin/imsdatadaemon
131 class main
132 user root
133 group radio net_raw log qcom_diag net_admin
134 disabled
135
136on property:sys.ims.QMI_DAEMON_STATUS=1
137 start imsdatadaemon
138
139service ims_rtp_daemon /system/bin/ims_rtp_daemon
140 class main
141 user system
142 group radio net_raw diag qcom_diag log
143 disabled
144
145on property:sys.ims.DATA_DAEMON_STATUS=1
146 start ims_rtp_daemon
147