diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index ef9d906..6a2263b 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -56,6 +56,12 @@ on init on early-fs start vold + + # Xiaomi Thermal Profiles permissions + 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 on fs start hwservicemanager diff --git a/sepolicy/vendor/system_app.te b/sepolicy/vendor/system_app.te index 5d9b137..be4fabb 100644 --- a/sepolicy/vendor/system_app.te +++ b/sepolicy/vendor/system_app.te @@ -1,6 +1,7 @@ allow system_app proc_pagetypeinfo:file { read open getattr }; allow system_app sysfs_zram:dir r_dir_perms; allow system_app sysfs_zram:file r_file_perms; +allow system_app sysfs_thermal:file { rw_file_perms getattr }; binder_call(system_app, hal_audio_default) binder_call(system_app, hal_health_default)