blob: 4f52581a809af655b8127d11b449de948a2f6ce4 [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
35 export BOOTCLASSPATH ${BOOTCLASSPATH}:/system/framework/oem-services.jar
36
David Ng682ef2d2012-11-26 15:07:48 -080037on fs
38 mount_all fstab.qcom
39
40 # Keeping following partitions outside fstab file. As user may not have
41 # these partition flashed on the device. Failure to mount any partition in fstab file
42 # results in failure to launch late-start class.
43
44 wait /dev/block/platform/msm_sdcc.1/by-name/cache
45 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1
46
47 wait /dev/block/platform/msm_sdcc.1/by-name/persist
48 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persist /persist nosuid nodev barrier=1
49
50 wait /dev/block/platform/msm_sdcc.1/by-name/modem
51 mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
52
53on post-fs-data
54 mkdir /data/tombstones 0771 system system
55 mkdir /tombstones/modem 0771 system system
56
Susheel Yadagirie78c2472013-05-29 10:19:06 -070057# import cne init file
58on post-fs
59 export LD_PRELOAD /vendor/lib/libNimsWrap.so
60
Krupal Divvela2dbcfc42013-06-12 06:39:36 +053061on boot
62 insmod /system/lib/modules/adsprpc.ko
63
Sreesudhan Ramakrish Ramkumar5502c152013-03-21 16:26:10 -070064#start camera server as daemon
65service qcamerasvr /system/bin/mm-qcamera-daemon
66 class late_start
67 user camera
68 group camera system inet input graphics
69
David Keitel7efdd3f2013-04-05 15:59:49 -070070# Allow usb charging to be disabled persistently
71on property:persist.usb.chgdisabled=1
72 write /sys/class/power_supply/battery/charging_enabled 0
73
74on property:persist.usb.chgdisabled=0
75 write /sys/class/power_supply/battery/charging_enabled 1
76
David Ng682ef2d2012-11-26 15:07:48 -080077service time_daemon /system/bin/time_daemon
78 class late_start
79 user root
80 group root
Jennifer Liu5b1527c2013-02-22 17:38:07 -080081
Harry Yang323f73f2013-04-05 10:48:01 -070082service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
83 user root
84 disabled
85
Kevin Tangd2ebd092013-05-28 10:30:22 -070086#start GNSS/Sensor interface daemon
87service gsiff_daemon /system/bin/gsiff_daemon
88 class late_start
89 user system
90 group gps net_raw
91
Jennifer Liu5b1527c2013-02-22 17:38:07 -080092service thermal-engine /system/bin/thermal-engine
93 class main
94 user root
95 group root
Hariprasad Dhalinarasimha7f932142013-03-12 13:19:27 -070096
97service qrngd /system/bin/qrngd -f
98 class main
99 user root
100 group root
101
Hariprasad Dhalinarasimhaf6eee5a2013-03-14 16:42:31 -0700102service qseecomd /system/bin/qseecomd
103 class late_start
104 user root
105 group root
106
Ravishankar Sarawadi7e2f2da2013-05-07 15:15:45 -0700107service audiod /system/bin/audiod
108 class late_start
109 user system
110 group system
111
Krupal Divvela2dbcfc42013-06-12 06:39:36 +0530112service adsprpcd /system/bin/adsprpcd
113 class main
114 user media
115 group media