From 210934874cd5d2db0660977dbfbb1777f59230db Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 22 Jun 2022 17:37:38 +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: I71a34a4563c4b799ed1bd8fddac2f26f1b97431d --- conf/init.gs101.rc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 13ea3a3b..eabf6dd5 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -976,14 +976,23 @@ on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/tz-by-name/usb_pwr_therm2/trip_point_0_temp chown system system /dev/thermal/tz-by-name/usb_pwr_therm2/trip_point_0_hyst chown system system /dev/thermal/tz-by-name/usb_pwr_therm2/emul_temp + 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/usbc-port/cur_state chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state on charger