summaryrefslogtreecommitdiff
path: root/init.hardware.rc
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2018-06-06 14:11:24 -0700
committerWei Wang <wvw@google.com>2018-06-06 16:00:04 -0700
commit15201c65070c6c9a48704721fdadf72e260bd43b (patch)
tree2ab10e6a1d3c3db34ce7ae30ac07728e1f6864c0 /init.hardware.rc
parent82a43a9293136698588a9817f7e17aca1de89714 (diff)
thermal: Support thermal config reading for old HW version
Bug: 80259361 Test: Old HW version can read corresponding thermal config Change-Id: I4497b897581982ab520203a1dab065971f490b78
Diffstat (limited to 'init.hardware.rc')
-rw-r--r--init.hardware.rc9
1 files changed, 5 insertions, 4 deletions
diff --git a/init.hardware.rc b/init.hardware.rc
index 77771ef..113d32e 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -202,15 +202,16 @@ on init
# Some user code relies on ro.boot.hardware.revision
setprop ro.boot.hardware.revision ${ro.revision}
- # Thermal config file per product
- setprop vendor.sys.qcom.thermalcfg /vendor/etc/thermal-engine-${ro.hardware}.conf
-
# Allow PAI targeting per hardware SKU
setprop ro.oem.key1 ${ro.boot.hardware.sku}
# Property used by vintf for sku specific manifests
setprop ro.boot.product.hardware.sku ${ro.boot.hardware.sku}
+ # Property used by pointing to thermal-engine config file
+ setprop vendor.thermal.vr_mode -novr
+ setprop vendor.thermal.hw_mode -prod
+
on late-init
write /sys/devices/virtual/thermal/tz-by-name/quiet-therm-adc/mode enabled
@@ -503,7 +504,7 @@ service init-radio-sh /vendor/bin/init.radio.sh
group root radio
oneshot
-service vendor.thermal-engine /vendor/bin/thermal-engine -c ${vendor.sys.qcom.thermalcfg}
+service vendor.thermal-engine /vendor/bin/thermal-engine -c /vendor/etc/thermal-engine-${ro.hardware}${vendor.thermal.vr_mode}${vendor.thermal.hw_mode}.conf
class main
user root
group root system