From eee0d82aacbfee09c0e24892c1e708bd010bd1ca Mon Sep 17 00:00:00 2001 From: johnmart19 Date: Tue, 28 Mar 2023 20:42:16 +0300 Subject: [PATCH] sm6150-common: rootdir: Provide thermal profile permissions Change-Id: I216b4438047657137b02497d0654faed890126e3 Signed-off-by: johnmart19 Signed-off-by: therealmharc --- rootdir/etc/init.target.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 5646f7f..c0a7636 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -79,7 +79,12 @@ on boot start rfs_access # Set thermal mode to evaluation + chmod 0664 /sys/class/power_supply/battery/dc_thermal_levels + chmod 0664 /sys/class/thermal/thermal_message/sconfig chown system system /sys/class/thermal/thermal_message/sconfig + chmod 0664 /sys/class/thermal/thermal_message/balance_mode + chown system system /sys/class/thermal/thermal_message/balance_mode + chmod 0664 /sys/class/thermal/thermal_message/flash_state write /sys/class/thermal/thermal_message/sconfig 10 # Set doze mode permissions