1 # Copyright (c) 2009-2012, 2014-2015, The Linux Foundation. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are met:
5 # * Redistributions of source code must retain the above copyright
6 # notice, this list of conditions and the following disclaimer.
7 # * Redistributions in binary form must reproduce the above copyright
8 # notice, this list of conditions and the following disclaimer in the
9 # documentation and/or other materials provided with the distribution.
10 # * Neither the name of The Linux Foundation nor
11 # the names of its contributors may be used to endorse or promote
12 # products derived from this software without specific prior written
15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
19 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 import /init.blu_spark.rc
30 wait /dev/block/platform/soc/${ro.boot.bootdevice}
31 symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
32 symlink /dev/block/bootdevice/by-name/oem_stanvbk /dev/block/bootdevice/by-name/oem_stanvbk_a
33 symlink /dev/block/bootdevice/by-name/oem_stanvbk /dev/block/bootdevice/by-name/oem_stanvbk_b
34 chmod 0660 /dev/qseecom
35 chown system drmrpc /dev/qseecom
37 chown system system /dev/ion
40 # Separate copy needed to use /sbin/linker64 instead of /system/bin/linker64
41 service sbinqseecomd /sbin/qseecomd
45 seclabel u:r:recovery:s0
47 service prepdecrypt /sbin/prepdecrypt.sh
52 seclabel u:r:recovery:s0
54 service hwservicemanager /sbin/hwservicemanager
58 onrestart setprop hwservicemanager.ready false
59 seclabel u:r:recovery:s0
61 service boot-1-0 /sbin/android.hardware.boot@1.0-service
65 seclabel u:r:recovery:s0
67 service servicemanager /sbin/servicemanager
71 seclabel u:r:recovery:s0
73 service keystore_auth /sbin/keystore_auth
78 seclabel u:r:recovery:s0
80 # keystore is started and stopped on demand by TWRP
81 service keystore /sbin/keystore /tmp/misc/keystore
83 group root drmrpc readproc
85 seclabel u:r:recovery:s0
87 service gatekeeper-1-0 /sbin/android.hardware.gatekeeper@1.0-service-qti
91 seclabel u:r:recovery:s0
93 service keymaster-3-0 /sbin/android.hardware.keymaster@3.0-service-qti
97 seclabel u:r:recovery:s0
100 setprop sys.usb.config adb
101 write /proc/touchpanel/gesture_enable 1
102 write /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/usb/otg_switch 1
105 start hwservicemanager
108 #setprop crypto.ready 1
110 on property:crypto.ready=0
116 on property:crypto.ready=1
119 on property:sys.listeners.registered=true