sm8550-common: init: Add Init-Service for fan service on Kalama HHG

Add service to control fan speed and could be enabled by setting
property.

Change-Id: I17037028c506095210ee89002413adc920c29147
This commit is contained in:
Minghao Zhang
2022-10-28 19:15:21 +08:00
committed by chaptsand
parent c9ade9f4ba
commit 46195b2ddc

View File

@@ -181,6 +181,18 @@ on early-boot && property:persist.vendor.pcie.boot_option=*
write /sys/bus/platform/devices/1c00000.qcom,pcie/debug/boot_option ${persist.vendor.pcie.boot_option} write /sys/bus/platform/devices/1c00000.qcom,pcie/debug/boot_option ${persist.vendor.pcie.boot_option}
write /sys/bus/platform/devices/1c08000.qcom,pcie/debug/boot_option ${persist.vendor.pcie.boot_option} write /sys/bus/platform/devices/1c08000.qcom,pcie/debug/boot_option ${persist.vendor.pcie.boot_option}
service fan_control_turn_on /vendor/bin/fan_service 1
class late_start
user root
disabled
oneshot
service fan_control_turn_off /vendor/bin/fan_service 0
class late_start
user root
disabled
oneshot
service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
override override
class hal class hal