You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.3 KiB
Plaintext
85 lines
3.3 KiB
Plaintext
|
|
on fs
|
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
|
|
|
|
|
# Separate copy needed to use /sbin/linker64 instead of /system/bin/linker64
|
|
service sbinqseecomd /sbin/qseecomd
|
|
oneshot
|
|
disabled
|
|
user root
|
|
group root
|
|
seclabel u:r:recovery:s0
|
|
|
|
#on property:ro.crypto.state=encrypted
|
|
# start sbinqseecomd
|
|
|
|
on property:ro.crypto.fs_crypto_blkdev=*
|
|
stop sbinqseecomd
|
|
|
|
|
|
on early-init
|
|
start fingerprintid
|
|
# Enable double-tap to wake
|
|
#write /sys/devices/virtual/touch/tp_dev/gesture_on 1
|
|
# Enable OTG
|
|
#write /sys/devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/usb/otg_switch 1
|
|
|
|
# read ro.build.fingerprint from system, setprop it. for ota
|
|
service fingerprintid /init.fingerprintid.sh
|
|
oneshot
|
|
disabled
|
|
user root
|
|
group root
|
|
seclabel u:r:recovery:s0
|
|
|
|
|
|
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
|