From 65329561c4989ff776d92374396dcc0e4d602dad Mon Sep 17 00:00:00 2001 From: Ratoriku Date: Sat, 5 Jun 2021 15:13:40 +0800 Subject: [PATCH] sdm660-common: rootdir: Fix permissions for dynamic thermal profile Signed-off-by: clarencelol Signed-off-by: pix106 --- rootdir/etc/init.target.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 04c2c3b1..d1973a55 100755 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -116,6 +116,13 @@ on early-boot on boot start vendor.rmt_storage start rfs_access + + # Thermal + chmod 0664 /sys/class/thermal/thermal_message/sconfig + chown system system /sys/class/thermal/thermal_message/sconfig + chmod 0666 /sys/class/thermal/thermal_message/temp_state + chown system system /sys/class/thermal/thermal_message/temp_state + write /dev/cpuset/top-app/cpus 0-7 write /dev/cpuset/foreground/cpus 0-7 write /dev/cpuset/foreground/boost/cpus 0-7