thermal: Enable thermalHAL in off charging mode am: fcc714349d am: f774c29ef3 am: 5ef971c74e

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15337097

Change-Id: I6cbb70ae7614127a62b016ff43f5ad33f0efb765
This commit is contained in:
TeYuan Wang 2021-07-21 17:55:35 +00:00 committed by Automerger Merge Worker
commit 77548bbba0

View file

@ -870,6 +870,17 @@ on property:vendor.thermal.link_ready=1
chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
# Create thermal symlink in off charging mode
on charger
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
# Launch thermal hal in off charging mode
on charger && property:vendor.thermal.link_ready=1
start vendor.thermal-hal-2-0
on property:vendor.disable.bcl.control=1
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0