blob: a9bce13b0a1cd2dbd98ffe9b430d0abf8ab17a1d [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
34on fs
35 mount_all fstab.qcom
36
37 # Keeping following partitions outside fstab file. As user may not have
38 # these partition flashed on the device. Failure to mount any partition in fstab file
39 # results in failure to launch late-start class.
40
41 wait /dev/block/platform/msm_sdcc.1/by-name/cache
42 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1
43
44 wait /dev/block/platform/msm_sdcc.1/by-name/persist
45 mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persist /persist nosuid nodev barrier=1
46
47 wait /dev/block/platform/msm_sdcc.1/by-name/modem
48 mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
49
50on post-fs-data
51 mkdir /data/tombstones 0771 system system
52 mkdir /tombstones/modem 0771 system system
53
Susheel Yadagirie78c2472013-05-29 10:19:06 -070054# import cne init file
55on post-fs
56 export LD_PRELOAD /vendor/lib/libNimsWrap.so
57
Sreesudhan Ramakrish Ramkumar5502c152013-03-21 16:26:10 -070058#start camera server as daemon
59service qcamerasvr /system/bin/mm-qcamera-daemon
60 class late_start
61 user camera
62 group camera system inet input graphics
63
David Keitel7efdd3f2013-04-05 15:59:49 -070064# Allow usb charging to be disabled persistently
65on property:persist.usb.chgdisabled=1
66 write /sys/class/power_supply/battery/charging_enabled 0
67
68on property:persist.usb.chgdisabled=0
69 write /sys/class/power_supply/battery/charging_enabled 1
70
David Ng682ef2d2012-11-26 15:07:48 -080071service time_daemon /system/bin/time_daemon
72 class late_start
73 user root
74 group root
Jennifer Liu5b1527c2013-02-22 17:38:07 -080075
Harry Yang323f73f2013-04-05 10:48:01 -070076service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
77 user root
78 disabled
79
Kevin Tangd2ebd092013-05-28 10:30:22 -070080#start GNSS/Sensor interface daemon
81service gsiff_daemon /system/bin/gsiff_daemon
82 class late_start
83 user system
84 group gps net_raw
85
Jennifer Liu5b1527c2013-02-22 17:38:07 -080086service thermal-engine /system/bin/thermal-engine
87 class main
88 user root
89 group root
Hariprasad Dhalinarasimha7f932142013-03-12 13:19:27 -070090
91service qrngd /system/bin/qrngd -f
92 class main
93 user root
94 group root
95
Hariprasad Dhalinarasimhaf6eee5a2013-03-14 16:42:31 -070096service qseecomd /system/bin/qseecomd
97 class late_start
98 user root
99 group root
100
Ravishankar Sarawadi7e2f2da2013-05-07 15:15:45 -0700101service audiod /system/bin/audiod
102 class late_start
103 user system
104 group system
105