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:
commit
7eb406e5c1
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue