From 6693fbff1abc2deb13a732a64d8147e6421e61ac Mon Sep 17 00:00:00 2001 From: YiHo Cheng Date: Tue, 23 Jun 2020 22:10:16 +0800 Subject: [PATCH] thermal: Update thermal control prop - Allow thermal prop to disable/enable skin-therm-cpu tz. - Allow thermal prop to disable/enable camera-critical tz. Bug: 156569397 Test: check skin-therm-cpu tz can be disabled/enabled via thermal control prop. Test: check camera-critical tz can be disabled/enabled via thermal control prop. Change-Id: I0df1dc18552e33552575d0ff346f2f461e85c63c --- init.hardware.chamber.rc.userdebug | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.hardware.chamber.rc.userdebug b/init.hardware.chamber.rc.userdebug index 52b1f52..2945eaf 100644 --- a/init.hardware.chamber.rc.userdebug +++ b/init.hardware.chamber.rc.userdebug @@ -16,8 +16,10 @@ on property:persist.vendor.disable.thermal.control=1 write /sys/devices/virtual/thermal/tz-by-name/skin-therm/mode disabled + write /sys/devices/virtual/thermal/tz-by-name/skin-therm-cpu/mode disabled write /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/mode disabled write /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/mode disabled + write /sys/devices/virtual/thermal/tz-by-name/camera-critical/mode disabled write /sys/devices/virtual/thermal/tz-by-name/cellular-emergency/mode disabled write /sys/devices/virtual/thermal/tz-by-name/sdm-therm/mode disabled write /sys/devices/virtual/thermal/tz-by-name/usbc-therm-adc/mode disabled @@ -26,8 +28,10 @@ on property:persist.vendor.disable.thermal.control=1 on property:persist.vendor.disable.thermal.control=0 write /sys/devices/virtual/thermal/tz-by-name/skin-therm/mode enabled + write /sys/devices/virtual/thermal/tz-by-name/skin-therm-cpu/mode enabled write /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/mode enabled write /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/mode enabled + write /sys/devices/virtual/thermal/tz-by-name/camera-critical/mode enabled write /sys/devices/virtual/thermal/tz-by-name/cellular-emergency/mode enabled write /sys/devices/virtual/thermal/tz-by-name/sdm-therm/mode enabled write /sys/devices/virtual/thermal/tz-by-name/usbc-therm-adc/mode enabled