Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Copyright (c) 2012, Code Aurora Forum. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are
- # met:
- # * Redistributions of source code must retain the above copyright
- # notice, this list of conditions and the following disclaimer.
- # * Redistributions in binary form must reproduce the above
- # copyright notice, this list of conditions and the following
- # disclaimer in the documentation and/or other materials provided
- # with the distribution.
- # * Neither the name of Code Aurora Forum, Inc. nor the names of its
- # contributors may be used to endorse or promote products derived
- # from this software without specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- #
- #
- import init.sony.rc
- on early-init
- mkdir /firmware 0771 system system
- symlink /storage/sdcard1 /mnt/ext_card
- symlink /storage/usbdisk /mnt/usbdisk
- service ril-qmi /system/bin/sh /init.qcom.ril.sh
- class main
- user root
- oneshot
- on fs
- # start service that shows the graphics while checking filesystem.
- start ffsckwait
- mount_all fstab.qcom
- # notify the service that starts the graphics to stop.
- exec /sbin/ffsckwait e
- # Keeping following partitions outside fstab file. As user may not have
- # these partition flashed on the device. Failure to mount any partition in fstab file
- # results in failure to launch late-start class.
- wait /dev/block/platform/msm_sdcc.1/by-name/cache
- mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1,discard
- mkdir /lta-label 0555 system system
- wait /dev/block/platform/msm_sdcc.1/by-name/LTALabel
- mount ext4 /dev/block/platform/msm_sdcc.1/by-name/LTALabel /lta-label nosuid nodev noatime noexec ro barrier=0
- chown system system /lta-label
- chmod 0555 /lta-label
- # Create a mount point on tmpfs to store modem files.
- mkdir /mnt/qcks 0700 root system
- mount tmpfs tmpfs /mnt/qcks mode=0770,uid=1000,gid=1000
- # SONY: Start the TrimArea Daemon. It must be started before fota-ua
- class_start trimarea
- exec /sbin/wait4tad_static
- # SONY: Fota must be started directly after partitions are mounted and
- # before anyone starts using the system partition (must be possible to unmount /system)
- exec /sbin/fota-ua c
- # SONY: Start early TA-users
- exec /sbin/checkabortedflash
- exec /sbin/mr
- exec /sbin/wipedata
- exec /system/bin/taimport
- # SONY: Remote storage service should be started after master reset
- # due to that the modem file system is formatted in the master reset
- start rmt_storage
- on post-fs
- mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro remount barrier=1
- on early-boot
- exec /system/bin/sh /system/etc/pre_hw_config.sh
- on boot
- write /sys/devices/i2c-3/3-0024/cyttsp_update_fw 1
- write /sys/devices/i2c-3/3-005b/update_fw 1
- on property:debug.camera.enable.qcamerasvr=true
- start qcamerasvr
- #start camera server as daemon
- service qcamerasvr /system/bin/mm-qcamera-daemon
- class late_start
- user system
- group system camera inet input graphics bluetooth
- disabled
- #start GNSS/Sensor interface daemon
- service gsiff_daemon /system/bin/gsiff_daemon
- class late_start
- user system
- group gps qcom_oncrpc net_raw
- # SONY: TrimArea Daemon
- # Last 2 args: start block(blk size 128k), number of blocks(partitionsize(kb)/128(kb))
- service tad_static /sbin/tad_static /dev/block/mmcblk0 1,16
- user root
- group root
- socket tad stream 0660 system system
- class trimarea
- # SONY: Trim Area QMI client
- # Should have the same class as qmuxd, to be sure that it will be restarted in same way
- # as qmuxd if phone is encrypted. This is a workaround, because sometimes
- # QMI_SYS_EVENT_MODEM_OUT_OF_SERVICE_IND is not sending if qmuxd is terminated during decryption,
- # so, ta_qmi_client was not notified that connection to the TA Service on MDM is lost.
- service ta_qmi_client /system/bin/ta_qmi_client
- class main
- user root
- # SONY: Update MiscTA
- service updatemiscta /system/bin/updatemiscta
- class main
- user root
- oneshot
- service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
- user root
- disabled
- service rf4ce /system/bin/rf4ce
- class main
- user root
- group root
- service qosmgrd /system/bin/qosmgr /system/etc/qosmgr_rules.xml
- user system
- group system
- disabled
- service kickstart /system/bin/qcks l
- oneshot
- disabled
- service mdm_helper /system/bin/mdm_helper
- class main
- onrestart setprop ro.service.mdm_helper_restarted "true"
- disabled
- service qrngd /system/bin/qrngd -f
- class main
- user root
- group root
- service qseecomd /system/bin/qseecomd
- class late_start
- user system
- group system
- # Start kickstart if mdm is detected
- on property:ro.baseband=mdm
- symlink /mnt/qcks /data/qcks
- start kickstart
- # Start up mdm_helper if sglte detected
- on property:ro.baseband=sglte
- mkdir /data/misc/mdmhelperdata 0700
- start mdm_helper
- service usf_tester /system/bin/usf_tester
- user system
- group system inet
- disabled
- service usf_epos /system/bin/usf_epos
- user system
- group system inet
- disabled
- service usf_gesture /system/bin/usf_gesture
- user system
- group system inet
- disabled
- service usf_p2p /system/bin/usf_p2p
- user system
- group system inet
- disabled
- service usf_hovering /system/bin/usf_hovering
- user system
- group system inet
- disabled
- service usf-post-boot /system/bin/sh /system/etc/usf_post_boot.sh
- class late_start
- user root
- disabled
- oneshot
- on property:init.svc.bootanim=stopped
- start usf-post-boot
- service time_daemon /system/bin/time_daemon
- class late_start
- user root
- group root
- service ffsckwait /sbin/ffsckwait s
- user root
- group root
- disabled
- oneshot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement