From 50ecfbff6855d34519260f08f7b59bbc4ec8a526 Mon Sep 17 00:00:00 2001 From: "Peter (YM)" Date: Wed, 23 Aug 2023 03:47:44 +0000 Subject: [PATCH] thermal: add more trigger sensor for device we charger_therm and modem_therm as trigger sensor, we need to update the permission for these file zone Bug: 296988235 Test: flash and boot to home Change-Id: I12fb773e83215556745eff4ed7122129e15158d0 Signed-off-by: Peter (YM) --- conf/init.akita.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/init.akita.rc b/conf/init.akita.rc index 70a548d..3127eb0 100644 --- a/conf/init.akita.rc +++ b/conf/init.akita.rc @@ -37,6 +37,12 @@ on post-fs-data chmod 644 /mnt/vendor/persist/audio/speaker.cal # Thermal +on property:vendor.thermal.link_ready=1 + chown system system /dev/thermal/tz-by-name/charger_therm/trip_point_0_temp + chown system system /dev/thermal/tz-by-name/charger_therm/trip_point_0_hyst + chown system system /dev/thermal/tz-by-name/modem_therm/trip_point_0_temp + chown system system /dev/thermal/tz-by-name/modem_therm/trip_point_0_hyst + on property:ro.boot.hardware.revision=PROTO1.0 setprop vendor.thermal.config "thermal_info_config_proto.json"