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 # 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 hwservicemanager /sbin/hwservicemanager user root group root disabled onrestart setprop hwservicemanager.ready false 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 adb on init start hwservicemanager setprop crypto.ready 1 on property:crypto.ready=0 stop sbinqseecomd stop keymaster-3-0 stop gatekeeper-1-0 stop servicemanager on property:crypto.ready=1 start sbinqseecomd on property:sys.listeners.registered=true start keymaster-3-0 start gatekeeper-1-0 start servicemanager on boot # Enable Power modes and set the CPU Freq Sampling rates write /sys/module/msm_thermal/core_control/enabled 0 write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu4/online 1 write /sys/devices/system/cpu/cpu5/online 1 write /sys/devices/system/cpu/cpu6/online 1 write /sys/devices/system/cpu/cpu7/online 1 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor "ondemand" write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq 300000 write /sys/module/msm_thermal/core_control/enabled 1 setprop recovery.perf.mode 0 on property:recovery.perf.mode=1 write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu4/online 1 write /sys/devices/system/cpu/cpu5/online 1 write /sys/devices/system/cpu/cpu6/online 1 write /sys/devices/system/cpu/cpu7/online 1 on property:recovery.perf.mode=0 write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu4/online 1 write /sys/devices/system/cpu/cpu5/online 1 write /sys/devices/system/cpu/cpu6/online 0 write /sys/devices/system/cpu/cpu7/online 0