Elad Levi | 2f5b83f | 2013-01-29 23:34:15 +0200 | [diff] [blame] | 1 | # Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. |
Ajay Dudani | 50eeeab | 2011-11-23 21:19:57 -0800 | [diff] [blame] | 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. |
Elad Levi | 2f5b83f | 2013-01-29 23:34:15 +0200 | [diff] [blame] | 12 | # * Neither the name of The Linux Foundation nor the names of its |
Ajay Dudani | 50eeeab | 2011-11-23 21:19:57 -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 | |
David Ng | f286ae3 | 2012-07-18 16:48:28 -0700 | [diff] [blame] | 30 | on early-init |
| 31 | mkdir /firmware 0771 system system |
| 32 | symlink /data/tombstones /tombstones |
| 33 | |
Elad Levi | 2f5b83f | 2013-01-29 23:34:15 +0200 | [diff] [blame] | 34 | on init |
Deva Ramasubramanian | c415a68 | 2013-07-01 15:55:43 -0700 | [diff] [blame] | 35 | export BOOTCLASSPATH ${BOOTCLASSPATH}:/system/framework/oem-services.jar:/system/framework/WfdCommon.jar |
Elad Levi | 2f5b83f | 2013-01-29 23:34:15 +0200 | [diff] [blame] | 36 | |
Susheel Yadagiri | 9515efd | 2013-02-15 09:45:42 -0800 | [diff] [blame] | 37 | # import cne init file |
| 38 | on post-fs |
Satya Durga Srinivasu Prabhala | 6c0ce8d | 2013-03-15 17:25:13 +0530 | [diff] [blame] | 39 | export LD_PRELOAD /vendor/lib/libNimsWrap.so |
Susheel Yadagiri | 9515efd | 2013-02-15 09:45:42 -0800 | [diff] [blame] | 40 | |
David Ng | f286ae3 | 2012-07-18 16:48:28 -0700 | [diff] [blame] | 41 | on fs |
David Ng | 8c19649 | 2012-08-13 22:26:59 -0700 | [diff] [blame] | 42 | mount_all fstab.qcom |
David Ng | f286ae3 | 2012-07-18 16:48:28 -0700 | [diff] [blame] | 43 | |
| 44 | # Keeping following partitions outside fstab file. As user may not have |
| 45 | # these partition flashed on the device. Failure to mount any partition in fstab file |
| 46 | # results in failure to launch late-start class. |
| 47 | |
| 48 | wait /dev/block/platform/msm_sdcc.1/by-name/cache |
| 49 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1 |
| 50 | |
| 51 | wait /dev/block/platform/msm_sdcc.1/by-name/persist |
| 52 | mount ext4 /dev/block/platform/msm_sdcc.1/by-name/persist /persist nosuid nodev barrier=1 |
| 53 | |
| 54 | wait /dev/block/platform/msm_sdcc.1/by-name/modem |
David Ng | ccc18e4 | 2012-08-16 15:56:44 -0700 | [diff] [blame] | 55 | mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 |
Ajay Dudani | 50eeeab | 2011-11-23 21:19:57 -0800 | [diff] [blame] | 56 | |
David Ng | f286ae3 | 2012-07-18 16:48:28 -0700 | [diff] [blame] | 57 | on post-fs-data |
| 58 | mkdir /data/tombstones 0771 system system |
| 59 | mkdir /tombstones/modem 0771 system system |
| 60 | mkdir /tombstones/lpass 0771 system system |
| 61 | mkdir /tombstones/wcnss 0771 system system |
| 62 | mkdir /tombstones/dsps 0771 system system |
| 63 | |
David Ng | 9927220 | 2013-06-04 17:00:50 -0700 | [diff] [blame] | 64 | on boot |
| 65 | start imsqmidaemon |
| 66 | insmod /system/lib/modules/adsprpc.ko |
| 67 | |
David Keitel | a92f990 | 2013-04-02 17:33:53 -0700 | [diff] [blame] | 68 | # Allow usb charging to be disabled persistently |
David Keitel | d69fa57 | 2013-01-10 16:50:19 -0800 | [diff] [blame] | 69 | on property:persist.usb.chgdisabled=1 |
| 70 | write /sys/class/power_supply/battery/charging_enabled 0 |
| 71 | |
David Keitel | a92f990 | 2013-04-02 17:33:53 -0700 | [diff] [blame] | 72 | on property:persist.usb.chgdisabled=0 |
| 73 | write /sys/class/power_supply/battery/charging_enabled 1 |
| 74 | |
Pradeep Panigrahi | 26f20d0 | 2013-07-02 02:59:04 +0530 | [diff] [blame] | 75 | # bt_hsic_control |
| 76 | service bt_hsic_control /system/bin/sh /system/etc/hsic.control.bt.sh |
| 77 | user root |
| 78 | disabled |
| 79 | |
| 80 | on property:bluetooth.hsic_ctrl=load_wlan |
| 81 | start bt_hsic_control |
| 82 | |
| 83 | on property:bluetooth.hsic_ctrl=unbind_hsic |
| 84 | start bt_hsic_control |
| 85 | |
Kevin Chan | 1282c72 | 2012-08-17 15:00:35 -0700 | [diff] [blame] | 86 | #start camera server as daemon |
| 87 | service qcamerasvr /system/bin/mm-qcamera-daemon |
| 88 | class late_start |
| 89 | user camera |
Sridhar Gujje | 1b10c1d | 2013-08-12 06:02:18 -0700 | [diff] [blame] | 90 | group camera system inet input graphics |
Kevin Chan | 1282c72 | 2012-08-17 15:00:35 -0700 | [diff] [blame] | 91 | |
Kevin Tang | 51dc2af | 2012-12-10 17:37:28 -0800 | [diff] [blame] | 92 | #start GNSS/Sensor interface daemon |
| 93 | service gsiff_daemon /system/bin/gsiff_daemon |
| 94 | class late_start |
| 95 | user system |
| 96 | group gps net_raw |
| 97 | |
Hariprasad Dhalinarasimha | df541ff | 2012-06-28 15:29:38 -0700 | [diff] [blame] | 98 | service qrngd /system/bin/qrngd -f |
| 99 | class main |
David Ng | 388b785 | 2012-08-13 10:27:12 -0700 | [diff] [blame] | 100 | user root |
| 101 | group root |
Karthik Parsha | 09745a1 | 2012-07-30 19:20:43 -0700 | [diff] [blame] | 102 | |
Ramesh Masavarapu | 186ee72 | 2012-08-30 10:03:36 -0700 | [diff] [blame] | 103 | service qseecomd /system/bin/qseecomd |
Zhen Kong | 0f8eb70 | 2013-05-15 17:00:59 -0700 | [diff] [blame] | 104 | class core |
Hariprasad Dhalinarasimha | fad0bae | 2013-02-04 19:29:21 -0800 | [diff] [blame] | 105 | user root |
| 106 | group root |
Ramesh Masavarapu | 186ee72 | 2012-08-30 10:03:36 -0700 | [diff] [blame] | 107 | |
Badhri Jagan Sridharan | 091ccd1 | 2013-07-16 12:25:45 -0700 | [diff] [blame] | 108 | service mpdecision /system/bin/mpdecision --avg_comp |
Karthik Parsha | 09745a1 | 2012-07-30 19:20:43 -0700 | [diff] [blame] | 109 | user root |
| 110 | disabled |
Praveen Chidambaram | 0785185 | 2012-08-27 16:26:00 -0600 | [diff] [blame] | 111 | |
Bhargav Gurappadi | 4e7659b | 2012-10-04 12:31:46 -0700 | [diff] [blame] | 112 | service qosmgrd /system/bin/qosmgr /system/etc/qosmgr_rules.xml |
| 113 | user system |
| 114 | group system |
| 115 | disabled |
| 116 | |
Praveen Chidambaram | 90ff976 | 2012-11-06 15:35:33 -0700 | [diff] [blame] | 117 | service thermal-engine /system/bin/thermal-engine |
| 118 | class main |
| 119 | user root |
| 120 | group root |
Ashay Jaiswal | e62cf3b | 2012-09-06 12:43:31 +0530 | [diff] [blame] | 121 | |
Amir Samuelov | 526e437 | 2013-05-21 11:53:44 +0300 | [diff] [blame] | 122 | service security-check1 /sbin/security_boot_check system |
| 123 | class core |
| 124 | oneshot |
| 125 | |
| 126 | service security-check2 /sbin/security_boot_check recovery |
| 127 | class core |
| 128 | oneshot |
| 129 | |
Ashay Jaiswal | e62cf3b | 2012-09-06 12:43:31 +0530 | [diff] [blame] | 130 | service time_daemon /system/bin/time_daemon |
| 131 | class late_start |
| 132 | user root |
| 133 | group root |
Ravishankar Sarawadi | 23a07f5 | 2012-09-12 12:39:19 -0700 | [diff] [blame] | 134 | |
David Ng | 9927220 | 2013-06-04 17:00:50 -0700 | [diff] [blame] | 135 | service adsprpcd /system/bin/adsprpcd |
| 136 | class main |
| 137 | user media |
| 138 | group media |
| 139 | |
Ravishankar Sarawadi | 23a07f5 | 2012-09-12 12:39:19 -0700 | [diff] [blame] | 140 | service audiod /system/bin/audiod |
| 141 | class late_start |
| 142 | user system |
| 143 | group system |
Baruch Eruchimovitch | 499ef32 | 2013-01-11 15:01:00 +0200 | [diff] [blame] | 144 | |
| 145 | service usf_tester /system/bin/usf_tester |
| 146 | user system |
| 147 | group system inet |
| 148 | disabled |
| 149 | |
| 150 | service usf_epos /system/bin/usf_epos |
| 151 | user system |
| 152 | group system inet |
| 153 | disabled |
| 154 | |
| 155 | service usf_gesture /system/bin/usf_gesture |
| 156 | user system |
| 157 | group system inet |
| 158 | disabled |
| 159 | |
| 160 | service usf_p2p /system/bin/usf_p2p |
| 161 | user system |
| 162 | group system inet |
| 163 | disabled |
| 164 | |
| 165 | service usf_hovering /system/bin/usf_hovering |
| 166 | user system |
| 167 | group system inet |
| 168 | disabled |
| 169 | |
| 170 | service usf_proximity /system/bin/usf_proximity |
| 171 | user system |
| 172 | group system inet |
| 173 | disabled |
| 174 | |
| 175 | service usf-post-boot /system/bin/sh /system/etc/usf_post_boot.sh |
| 176 | class late_start |
| 177 | user root |
| 178 | disabled |
| 179 | oneshot |
| 180 | |
| 181 | on property:init.svc.bootanim=stopped |
| 182 | start usf-post-boot |
Naveen Kalla | 61ca0a6 | 2013-02-23 20:20:00 -0800 | [diff] [blame] | 183 | |
| 184 | service imsqmidaemon /system/bin/imsqmidaemon |
| 185 | class main |
| 186 | user system |
| 187 | group radio net_raw log qcom_diag |
| 188 | disabled |
| 189 | |
Naveen Kalla | 61ca0a6 | 2013-02-23 20:20:00 -0800 | [diff] [blame] | 190 | # imsdatadaemon starts with root and UID will be downgraded to SYSTEM. |
| 191 | service imsdatadaemon /system/bin/imsdatadaemon |
| 192 | class main |
| 193 | user root |
| 194 | group radio net_raw log qcom_diag net_admin |
| 195 | disabled |
| 196 | |
Sameer Thalappil | b5229be | 2013-05-03 15:42:29 -0700 | [diff] [blame] | 197 | service wcnss-service /system/bin/wcnss_service |
| 198 | class late_start |
| 199 | user system |
Sameer Thalappil | 5d4110d | 2013-05-17 10:01:47 -0700 | [diff] [blame] | 200 | group system wifi |
Ming-yi Lin | f686393 | 2013-06-06 13:17:17 +0800 | [diff] [blame] | 201 | disabled |
Sameer Thalappil | b5229be | 2013-05-03 15:42:29 -0700 | [diff] [blame] | 202 | oneshot |
| 203 | |
Ming-yi Lin | f686393 | 2013-06-06 13:17:17 +0800 | [diff] [blame] | 204 | on property:wlan.driver.ath=0 |
| 205 | start wcnss-service |
| 206 | |
Naveen Kalla | 61ca0a6 | 2013-02-23 20:20:00 -0800 | [diff] [blame] | 207 | on property:sys.ims.QMI_DAEMON_STATUS=1 |
| 208 | start imsdatadaemon |
| 209 | |
| 210 | service ims_rtp_daemon /system/bin/ims_rtp_daemon |
| 211 | class main |
| 212 | user system |
| 213 | group radio net_raw diag qcom_diag log |
| 214 | disabled |
| 215 | |
| 216 | on property:sys.ims.DATA_DAEMON_STATUS=1 |
| 217 | start ims_rtp_daemon |