From 8b8d1c611f7d5e6505a429a3c6c9278390274d6d Mon Sep 17 00:00:00 2001 From: sashwinbalaji Date: Mon, 6 Mar 2023 16:37:28 +0800 Subject: [PATCH] thermal: Add permission for trigger_sensor sysfs Add system permission to set trip temp and hyst for trigger_sensors: - disp_therm - neutral_therm Bug: 271798106 Test: Push file and verify logcat Change-Id: I241084208394a94b8a03622ca7d4508c810f3904 --- conf/init.tangorpro.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.tangorpro.rc b/conf/init.tangorpro.rc index 02c58ab..cbbbc3b 100644 --- a/conf/init.tangorpro.rc +++ b/conf/init.tangorpro.rc @@ -108,6 +108,10 @@ on post-fs-data on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/tz-by-name/charger_skin_therm/trip_point_0_temp chown system system /dev/thermal/tz-by-name/charger_skin_therm/trip_point_0_hyst + chown system system /dev/thermal/tz-by-name/disp_therm/trip_point_0_temp + chown system system /dev/thermal/tz-by-name/disp_therm/trip_point_0_hyst + chown system system /dev/thermal/tz-by-name/neutral_therm/trip_point_0_temp + chown system system /dev/thermal/tz-by-name/neutral_therm/trip_point_0_hyst # Override SF and RE uclamps to 0 on boot after being set elsewhere, for adpf cpu hints on property:sys.boot_completed=1