SHARE
TWEET

XPERIA Z (SO-02E) init.target.rc (10.1.D.0.317)

huhka_com Feb 10th, 2013 304 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copyright (c) 2012, Code Aurora Forum. 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.
  12. #     * Neither the name of Code Aurora Forum, Inc. nor the names of its
  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. import init.sony.rc
  31.  
  32. on early-init
  33.     mkdir /firmware 0771 system system
  34.     symlink /storage/sdcard1 /mnt/ext_card
  35.     symlink /storage/usbdisk /mnt/usbdisk
  36.  
  37. service ril-qmi /system/bin/sh /init.qcom.ril.sh
  38.     class main
  39.     user root
  40.     oneshot
  41.  
  42. on fs
  43.    
  44.    
  45.  
  46.     # start service that shows the graphics while checking filesystem.
  47.     start ffsckwait
  48.  
  49.     mount_all fstab.qcom
  50.  
  51.     # notify the service that starts the graphics to stop.
  52.     exec /sbin/ffsckwait e
  53.  
  54.     # Keeping following partitions outside fstab file. As user may not have
  55.     # these partition flashed on the device. Failure to mount any partition in fstab file
  56.     # results in failure to launch late-start class.
  57.  
  58.     wait /dev/block/platform/msm_sdcc.1/by-name/cache
  59.     mount ext4 /dev/block/platform/msm_sdcc.1/by-name/cache /cache nosuid nodev barrier=1,discard
  60.  
  61.     mkdir /lta-label 0555 system system
  62.     wait /dev/block/platform/msm_sdcc.1/by-name/LTALabel
  63.     mount ext4 /dev/block/platform/msm_sdcc.1/by-name/LTALabel /lta-label nosuid nodev noatime noexec ro barrier=0
  64.     chown system system /lta-label
  65.     chmod 0555 /lta-label
  66.  
  67.     # Create a mount point on tmpfs to store modem files.
  68.     mkdir /mnt/qcks 0700 root system
  69.     mount tmpfs tmpfs /mnt/qcks mode=0770,uid=1000,gid=1000
  70.  
  71.     # SONY: Start the TrimArea Daemon. It must be started before fota-ua
  72.     class_start trimarea
  73.     exec /sbin/wait4tad_static
  74.  
  75.     # SONY: Fota must be started directly after partitions are mounted and
  76.     # before anyone starts using the system partition (must be possible to unmount /system)
  77.     exec /sbin/fota-ua c
  78.  
  79.     # SONY: Start early TA-users
  80.     exec /sbin/checkabortedflash
  81.     exec /sbin/mr
  82.     exec /sbin/wipedata
  83.     exec /system/bin/taimport
  84.  
  85.     # SONY: Remote storage service should be started after master reset
  86.     # due to that the modem file system is formatted in the master reset
  87.     start rmt_storage
  88.  
  89. on post-fs
  90.    mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro remount barrier=1
  91.  
  92. on early-boot
  93.     exec /system/bin/sh /system/etc/pre_hw_config.sh
  94.  
  95. on boot
  96.    write /sys/devices/i2c-3/3-0024/cyttsp_update_fw 1
  97.    write /sys/devices/i2c-3/3-005b/update_fw 1
  98.    
  99.  
  100.  
  101.  
  102. on property:debug.camera.enable.qcamerasvr=true
  103.    start qcamerasvr
  104.  
  105. #start camera server as daemon
  106. service qcamerasvr /system/bin/mm-qcamera-daemon
  107.     class late_start
  108.     user system
  109.     group system camera inet input graphics bluetooth
  110.     disabled
  111.  
  112. #start GNSS/Sensor interface daemon
  113. service gsiff_daemon /system/bin/gsiff_daemon
  114.     class late_start
  115.     user system
  116.     group gps qcom_oncrpc net_raw
  117.  
  118. # SONY: TrimArea Daemon
  119. # Last 2 args: start block(blk size 128k), number of blocks(partitionsize(kb)/128(kb))
  120. service tad_static /sbin/tad_static /dev/block/mmcblk0 1,16
  121.     user root
  122.     group root
  123.     socket tad stream 0660 system system
  124.     class trimarea
  125.  
  126. # SONY: Trim Area QMI client
  127. # Should have the same class as qmuxd, to be sure that it will be restarted in same way
  128. # as qmuxd if phone is encrypted. This is a workaround, because sometimes
  129. # QMI_SYS_EVENT_MODEM_OUT_OF_SERVICE_IND is not sending if qmuxd is terminated during decryption,
  130. # so, ta_qmi_client was not notified that connection to the TA Service on MDM is lost.
  131. service ta_qmi_client /system/bin/ta_qmi_client
  132.     class main
  133.     user root
  134.  
  135. # SONY: Update MiscTA
  136. service updatemiscta /system/bin/updatemiscta
  137.     class main
  138.     user root
  139.     oneshot
  140.  
  141. service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
  142.    user root
  143.    disabled
  144.  
  145. service rf4ce /system/bin/rf4ce
  146.    class main
  147.    user root
  148.    group root
  149.  
  150. service qosmgrd /system/bin/qosmgr /system/etc/qosmgr_rules.xml
  151.    user system
  152.    group system
  153.    disabled
  154.  
  155. service kickstart /system/bin/qcks l
  156.     oneshot
  157.     disabled
  158.  
  159. service mdm_helper /system/bin/mdm_helper
  160.     class main
  161.     onrestart setprop ro.service.mdm_helper_restarted "true"
  162.     disabled
  163.  
  164. service qrngd /system/bin/qrngd -f
  165.    class main
  166.    user root
  167.    group root
  168.  
  169. service qseecomd /system/bin/qseecomd
  170.    class late_start
  171.    user system
  172.    group system
  173.  
  174. # Start kickstart if mdm is detected
  175. on property:ro.baseband=mdm
  176.     symlink /mnt/qcks /data/qcks
  177.     start kickstart
  178.  
  179. # Start up mdm_helper if sglte detected
  180. on property:ro.baseband=sglte
  181.     mkdir /data/misc/mdmhelperdata 0700
  182.     start mdm_helper
  183.  
  184. service usf_tester /system/bin/usf_tester
  185.     user system
  186.     group system inet
  187.     disabled
  188.  
  189. service usf_epos /system/bin/usf_epos
  190.     user system
  191.     group system inet
  192.     disabled
  193.  
  194. service usf_gesture /system/bin/usf_gesture
  195.     user system
  196.     group system inet
  197.     disabled
  198.  
  199. service usf_p2p /system/bin/usf_p2p
  200.     user system
  201.     group system inet
  202.     disabled
  203.  
  204. service usf_hovering /system/bin/usf_hovering
  205.     user system
  206.     group system inet
  207.     disabled
  208.  
  209. service usf-post-boot /system/bin/sh /system/etc/usf_post_boot.sh
  210.     class late_start
  211.     user root
  212.     disabled
  213.     oneshot
  214.  
  215. on property:init.svc.bootanim=stopped
  216.     start usf-post-boot
  217.  
  218. service time_daemon /system/bin/time_daemon
  219.    class late_start
  220.    user root
  221.    group root
  222.  
  223. service ffsckwait /sbin/ffsckwait s
  224.    user root
  225.    group root
  226.    disabled
  227.    oneshot
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top