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 | |
| 34 | on 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 | |
| 50 | on post-fs-data |
| 51 | mkdir /data/tombstones 0771 system system |
| 52 | mkdir /tombstones/modem 0771 system system |
| 53 | |
Sreesudhan Ramakrish Ramkumar | 5502c15 | 2013-03-21 16:26:10 -0700 | [diff] [blame] | 54 | #start camera server as daemon |
| 55 | service qcamerasvr /system/bin/mm-qcamera-daemon |
| 56 | class late_start |
| 57 | user camera |
| 58 | group camera system inet input graphics |
| 59 | |
David Ng | 682ef2d | 2012-11-26 15:07:48 -0800 | [diff] [blame] | 60 | service time_daemon /system/bin/time_daemon |
| 61 | class late_start |
| 62 | user root |
| 63 | group root |
Jennifer Liu | 5b1527c | 2013-02-22 17:38:07 -0800 | [diff] [blame] | 64 | |
Harry Yang | 323f73f | 2013-04-05 10:48:01 -0700 | [diff] [blame^] | 65 | service mpdecision /system/bin/mpdecision --no_sleep --avg_comp |
| 66 | user root |
| 67 | disabled |
| 68 | |
Jennifer Liu | 5b1527c | 2013-02-22 17:38:07 -0800 | [diff] [blame] | 69 | service thermal-engine /system/bin/thermal-engine |
| 70 | class main |
| 71 | user root |
| 72 | group root |
| 73 | disabled |
| 74 | |
| 75 | on property:qcom.thermal=thermal-engine |
| 76 | start thermal-engine |
Hariprasad Dhalinarasimha | 7f93214 | 2013-03-12 13:19:27 -0700 | [diff] [blame] | 77 | |
| 78 | service qrngd /system/bin/qrngd -f |
| 79 | class main |
| 80 | user root |
| 81 | group root |
| 82 | |