mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Bug: 36463595 Test: lunch walleye-userdebug && make -j48 sepolicy Change-Id: Idbc83b06edcb3eb2ea548a16ed93f711cda150c1 Signed-off-by: Sandeep Patil <sspatil@google.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
type thermal-engine, domain;
|
|
type thermal-engine_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
init_daemon_domain(thermal-engine)
|
|
|
|
allow thermal-engine self:capability2 block_suspend;
|
|
|
|
# to read /sys/devices
|
|
allow thermal-engine sysfs:dir r_dir_perms;
|
|
|
|
allow thermal-engine sysfs_msm_subsys:dir r_dir_perms;
|
|
allow thermal-engine sysfs_msm_subsys:file rw_file_perms;
|
|
allow thermal-engine sysfs_soc:dir search;
|
|
allow thermal-engine sysfs_soc:file r_file_perms;
|
|
allow thermal-engine sysfs_thermal:dir r_dir_perms;
|
|
allow thermal-engine sysfs_thermal:file rw_file_perms;
|
|
allow thermal-engine sysfs_rmtfs:dir search;
|
|
allow thermal-engine sysfs_rmtfs:file r_file_perms;
|
|
|
|
allow thermal-engine audio_device:chr_file rw_file_perms;
|
|
|
|
r_dir_file(thermal-engine, sysfs_leds)
|
|
r_dir_file(thermal-engine, sysfs_msm_subsys)
|
|
r_dir_file(thermal-engine, sysfs_uio)
|
|
|
|
allow thermal-engine self:socket create_socket_perms;
|
|
allowxperm thermal-engine self:socket ioctl msm_sock_ipc_ioctls;
|
|
|
|
userdebug_or_eng(`
|
|
permissive thermal-engine;
|
|
')
|
|
|
|
# reboot/shutdown for thermal limits exceeded
|
|
set_prop(thermal-engine, powerctl_prop)
|