mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-08-04 07:26:26 +09:00
sm6250-common: Update thermal HAL
* From hardware/google/pixel at d774cbb949e98627e4172bf8fc11e8d954599aa7. Change-Id: I3a3a0c29575d0595e71a30f1e64e33ca34d2eb27
This commit is contained in:
2
sepolicy/vendor/file_contexts
vendored
2
sepolicy/vendor/file_contexts
vendored
@ -44,3 +44,5 @@
|
||||
|
||||
# Thermal
|
||||
/vendor/bin/hw/android\.hardware\.thermal@2\.0-service\.xiaomi_atoll u:object_r:hal_thermal_default_exec:s0
|
||||
/vendor/bin/thermal_symlinks u:object_r:init-thermal-symlinks-sh_exec:s0
|
||||
/dev/thermal(/.*)? u:object_r:thermal_link_device:s0
|
||||
|
12
sepolicy/vendor/init-thermal-symlinks.sh.te
vendored
Normal file
12
sepolicy/vendor/init-thermal-symlinks.sh.te
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
type init-thermal-symlinks-sh, domain;
|
||||
type init-thermal-symlinks-sh_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(init-thermal-symlinks-sh)
|
||||
|
||||
allow init-thermal-symlinks-sh vendor_toolbox_exec:file rx_file_perms;
|
||||
allow init-thermal-symlinks-sh thermal_link_device:dir rw_dir_perms;
|
||||
allow init-thermal-symlinks-sh thermal_link_device:lnk_file create_file_perms;
|
||||
allow init-thermal-symlinks-sh sysfs_thermal:dir r_dir_perms;
|
||||
allow init-thermal-symlinks-sh sysfs_thermal:file r_file_perms;
|
||||
allow init-thermal-symlinks-sh sysfs_thermal:lnk_file r_file_perms;
|
||||
set_prop(init-thermal-symlinks-sh, vendor_thermal_prop)
|
Reference in New Issue
Block a user