| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- # Copyright (c) 2009-2012, 2014-2015, The Linux Foundation. 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 The Linux Foundation 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 BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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.
- #
- on fs
- wait /dev/block/platform/soc/${ro.boot.bootdevice}
- symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
- chmod 0660 /dev/qseecom
- chown system drmrpc /dev/qseecom
- chmod 0664 /dev/ion
- chown system system /dev/ion
- install_keyring
- # Needed to make qseecomd work in recovery
- chmod 0777 /dev/qseecom
- chmod 0664 /dev/ion
- chown system system /dev/ion
- # Separate copy needed to use /sbin/linker64 instead of /system/bin/linker64
- service sbinqseecomd /sbin/qseecomd
- user root
- group root
- disabled
- seclabel u:r:recovery:s0
- service prepdecrypt /sbin/prepdecrypt.sh
- oneshot
- disabled
- user root
- group root
- seclabel u:r:recovery:s0
- service hwservicemanager /sbin/hwservicemanager
- user root
- group root
- disabled
- onrestart setprop hwservicemanager.ready false
- seclabel u:r:recovery:s0
- service boot-1-0 /sbin/android.hardware.boot@1.0-service
- user root
- group root
- disabled
- seclabel u:r:recovery:s0
- service servicemanager /sbin/servicemanager
- user root
- group root readproc
- disabled
- seclabel u:r:recovery:s0
- service keystore_auth /sbin/keystore_auth
- oneshot
- user system
- group root
- disabled
- seclabel u:r:recovery:s0
- # keystore is started and stopped on demand by TWRP
- service keystore /sbin/keystore /tmp/misc/keystore
- user root
- group root drmrpc readproc
- disabled
- seclabel u:r:recovery:s0
- service gatekeeper-1-0 /sbin/android.hardware.gatekeeper@1.0-service-qti
- user root
- group root
- disabled
- seclabel u:r:recovery:s0
- service keymaster-3-0 /sbin/android.hardware.keymaster@3.0-service-qti
- user root
- group root
- disabled
- seclabel u:r:recovery:s0
- on boot
- setprop sys.usb.config none
- setprop sys.usb.config adb
- on init
- start hwservicemanager
- start boot-1-0
- start prepdecrypt
- on property:crypto.ready=0
- stop sbinqseecomd
- stop keymaster-3-0
- stop gatekeeper-1-0
- stop servicemanager
- on property:crypto.ready=1
- start sbinqseecomd
- start keymaster-3-0
- start gatekeeper-1-0
- start servicemanager
|