David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 1 | # 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 Truong | 63ecafb | 2013-01-16 05:15:54 -0800 | [diff] [blame] | 12 | # * Neither the name of The Linux Foundation nor the names of its |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 13 | # 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 | |
| 30 | on early-init |
| 31 | mkdir /firmware 0771 system system |
| 32 | symlink /data/tombstones /tombstones |
| 33 | |
David Ng | d61c5c6 | 2013-06-20 20:21:44 -0700 | [diff] [blame] | 34 | on init |
Deva Ramasubramanian | a576bde | 2013-07-01 15:55:43 -0700 | [diff] [blame] | 35 | export BOOTCLASSPATH ${BOOTCLASSPATH}:/system/framework/oem-services.jar:/system/framework/WfdCommon.jar |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 36 | on 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 | |
| 52 | on post-fs-data |
| 53 | mkdir /data/tombstones 0771 system system |
| 54 | mkdir /tombstones/modem 0771 system system |
| 55 | |
Susheel Yadagiri | e78c247 | 2013-05-29 10:19:06 -0700 | [diff] [blame] | 56 | # import cne init file |
| 57 | on post-fs |
| 58 | export LD_PRELOAD /vendor/lib/libNimsWrap.so |
| 59 | |
Krupal Divvela | 2dbcfc4 | 2013-06-12 06:39:36 +0530 | [diff] [blame] | 60 | on boot |
Rekha Kumar | b5dea9a | 2013-07-30 10:43:41 -0700 | [diff] [blame^] | 61 | start imsqmidaemon |
Krupal Divvela | 2dbcfc4 | 2013-06-12 06:39:36 +0530 | [diff] [blame] | 62 | insmod /system/lib/modules/adsprpc.ko |
| 63 | |
Ameya Thakur | f484482 | 2013-04-30 14:20:56 -0700 | [diff] [blame] | 64 | #Start the qcom-system-daemon service |
| 65 | service qcomsysd /system/bin/qcom-system-daemon |
| 66 | class main |
| 67 | |
Sreesudhan Ramakrish Ramkumar | 5502c15 | 2013-03-21 16:26:10 -0700 | [diff] [blame] | 68 | #start camera server as daemon |
| 69 | service qcamerasvr /system/bin/mm-qcamera-daemon |
| 70 | class late_start |
| 71 | user camera |
| 72 | group camera system inet input graphics |
| 73 | |
David Keitel | 7efdd3f | 2013-04-05 15:59:49 -0700 | [diff] [blame] | 74 | # Allow usb charging to be disabled persistently |
| 75 | on property:persist.usb.chgdisabled=1 |
| 76 | write /sys/class/power_supply/battery/charging_enabled 0 |
| 77 | |
| 78 | on property:persist.usb.chgdisabled=0 |
| 79 | write /sys/class/power_supply/battery/charging_enabled 1 |
| 80 | |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 81 | service time_daemon /system/bin/time_daemon |
| 82 | class late_start |
| 83 | user root |
| 84 | group root |
Jennifer Liu | 5b1527c | 2013-02-22 17:38:07 -0800 | [diff] [blame] | 85 | |
Harry Yang | 323f73f | 2013-04-05 10:48:01 -0700 | [diff] [blame] | 86 | service mpdecision /system/bin/mpdecision --no_sleep --avg_comp |
| 87 | user root |
| 88 | disabled |
| 89 | |
Kevin Tang | d2ebd09 | 2013-05-28 10:30:22 -0700 | [diff] [blame] | 90 | #start GNSS/Sensor interface daemon |
| 91 | service gsiff_daemon /system/bin/gsiff_daemon |
| 92 | class late_start |
| 93 | user system |
| 94 | group gps net_raw |
| 95 | |
Jennifer Liu | 5b1527c | 2013-02-22 17:38:07 -0800 | [diff] [blame] | 96 | service thermal-engine /system/bin/thermal-engine |
| 97 | class main |
| 98 | user root |
| 99 | group root |
Hariprasad Dhalinarasimha | 7f93214 | 2013-03-12 13:19:27 -0700 | [diff] [blame] | 100 | |
| 101 | service qrngd /system/bin/qrngd -f |
| 102 | class main |
| 103 | user root |
| 104 | group root |
| 105 | |
Hariprasad Dhalinarasimha | f6eee5a | 2013-03-14 16:42:31 -0700 | [diff] [blame] | 106 | service qseecomd /system/bin/qseecomd |
| 107 | class late_start |
| 108 | user root |
| 109 | group root |
| 110 | |
Ravishankar Sarawadi | 7e2f2da | 2013-05-07 15:15:45 -0700 | [diff] [blame] | 111 | service audiod /system/bin/audiod |
| 112 | class late_start |
| 113 | user system |
| 114 | group system |
| 115 | |
Krupal Divvela | 2dbcfc4 | 2013-06-12 06:39:36 +0530 | [diff] [blame] | 116 | service adsprpcd /system/bin/adsprpcd |
| 117 | class main |
| 118 | user media |
| 119 | group media |
Rekha Kumar | b5dea9a | 2013-07-30 10:43:41 -0700 | [diff] [blame^] | 120 | |
| 121 | service imsqmidaemon /system/bin/imsqmidaemon |
| 122 | class main |
| 123 | user system |
| 124 | group radio net_raw log qcom_diag |
| 125 | disabled |
| 126 | |
| 127 | # imsdatadaemon starts with root and UID will be downgraded to SYSTEM. |
| 128 | service imsdatadaemon /system/bin/imsdatadaemon |
| 129 | class main |
| 130 | user root |
| 131 | group radio net_raw log qcom_diag net_admin |
| 132 | disabled |
| 133 | |
| 134 | on property:sys.ims.QMI_DAEMON_STATUS=1 |
| 135 | start imsdatadaemon |
| 136 | |
| 137 | service ims_rtp_daemon /system/bin/ims_rtp_daemon |
| 138 | class main |
| 139 | user system |
| 140 | group radio net_raw diag qcom_diag log |
| 141 | disabled |
| 142 | |
| 143 | on property:sys.ims.DATA_DAEMON_STATUS=1 |
| 144 | start ims_rtp_daemon |
| 145 | |