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

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

Change-Id: Ic40cde2db5d8569387fb80c2c0aa8589ff22813b
This commit is contained in:
TeYuan Wang 2021-07-21 17:40:48 +00:00 committed by Automerger Merge Worker
commit 7eb406e5c1

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