From d0d0cc93d89854c4363f4e11e71af398d0e3995c Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 22 Jun 2022 17:31:39 +0800 Subject: [PATCH] thermal: allow thermal_controld to overwrite CDEV state Bug: 236698810 Test: adb shell setprop persist.vendor.disable.thermal.control 1 Change-Id: I2a3cc64296acbc959bd93ecdfcf7ac44740d1fae --- conf/init.gs201.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 0d1c1380..a775215d 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -948,15 +948,25 @@ on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/tz-by-name/quiet_therm/trip_point_0_hyst chown system system /dev/thermal/tz-by-name/usb_pwr_therm/trip_point_0_temp chown system system /dev/thermal/tz-by-name/usb_pwr_therm/trip_point_0_hyst + chmod 664 /dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote + chmod 664 /dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote + chmod 664 /dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote + chmod 664 /dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote chown system system /dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote + chmod 664 /dev/thermal/cdev-by-name/tpu_cooling/user_vote chown system system /dev/thermal/cdev-by-name/tpu_cooling/user_vote + chmod 664 /dev/thermal/cdev-by-name/fcc/cur_state chown system system /dev/thermal/cdev-by-name/fcc/cur_state + chmod 664 /dev/thermal/cdev-by-name/dc_icl/cur_state chown system system /dev/thermal/cdev-by-name/dc_icl/cur_state + chmod 664 /dev/thermal/cdev-by-name/wlc_fcc/cur_state chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state + chmod 664 /dev/thermal/cdev-by-name/chg_mdis/cur_state chown system system /dev/thermal/cdev-by-name/chg_mdis/cur_state + chmod 664 /dev/thermal/cdev-by-name/usbc-port/cur_state chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state on property:vendor.disable.bcl.control=1