From 589318e5c4159fdfacaae356360028cf6eeeba0c Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Fri, 11 Feb 2022 19:28:19 +0000 Subject: [PATCH] thermal: enable cooling devices cur state permissions Enable permissions for wcl_fcc and dc_icl cooling devices current state for charging throttling. Bug: 204523879 Test: build and boot on device. Check charging throttling Change-Id: Icf175bd270d0eb6a9d2adcde2199b034683a8b8f Signed-off-by: Sayanna Chandula --- conf/init.gs201.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 7183af01..a494a928 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -884,6 +884,8 @@ on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote chown system system /dev/thermal/cdev-by-name/tpu_cooling/user_vote chown system system /dev/thermal/cdev-by-name/fcc/cur_state + chown system system /dev/thermal/cdev-by-name/dc_icl/cur_state + chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state on property:vendor.disable.bcl.control=1 write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0