thermal: move charger thermal HAL setup into project
Move charger pixel-thermal-symlink from common to project folder to prevent the GKI version dependencies from blocking init. Bug: 240897207 Test: thermal_symlinks worked properly in charging mode Change-Id: I0d3b03c9add57b14f255eb66a1a7a46fa6c4b257
This commit is contained in:
@@ -972,6 +972,18 @@ on charger
|
||||
write /proc/vendor_sched/sys_uclamp_min 0
|
||||
write /proc/vendor_sched/sys_prefer_idle 0
|
||||
|
||||
# Use charger thermal config
|
||||
setprop vendor.thermal.config "thermal_info_config_charge.json"
|
||||
|
||||
# Wait for insmod_sh to finish all common modules
|
||||
wait_for_prop vendor.common.modules.ready 1
|
||||
|
||||
# Create thermal symlink in off charging mode
|
||||
mkdir /dev/thermal 0750 system system
|
||||
mkdir /dev/thermal/tz-by-name 0750 system system
|
||||
mkdir /dev/thermal/cdev-by-name 0750 system system
|
||||
start vendor.thermal.symlinks
|
||||
|
||||
on property:vendor.disable.bcl.control=1
|
||||
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user