[ALPS03867358] Thermal: P Migration

[Detail]
Modify "performance first thermal policy" change
thermal policy method.

1. Using call libmtcloader lib instead of using set property.
2. Add related SEPolicy.
3. Support 32 bit and 64 bit mtcloader lib.

MTK-Commit-Id: 13e96819d3e6663be61276000ae5a800de71862b

Change-Id: Ia78610485f67e94b63f0fcfbccbd7d4b4411ed31
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
This commit is contained in:
jerry-sc.wu 2020-01-18 10:03:33 +08:00 committed by Jerry-SC Wu
parent 1cc7505c70
commit fafe185575
2 changed files with 16 additions and 0 deletions

View File

@ -90,3 +90,18 @@ allow mtk_hal_power su:file { read open };
# Purpose : Allow powerHAL to access /d/mtkfb # Purpose : Allow powerHAL to access /d/mtkfb
allow mtk_hal_power debugfs_fb:dir search; allow mtk_hal_power debugfs_fb:dir search;
allow mtk_hal_power debugfs_fb:file { getattr open read write }; allow mtk_hal_power debugfs_fb:file { getattr open read write };
# Date : 2018/06/26
# Operation: Thermal change policy in perfservice
allow mtk_hal_power proc_thermal:file read;
allow mtk_hal_power thermal_manager_data_file:file { write getattr setattr read lock open };
allow mtk_hal_power thermalloadalgod:unix_stream_socket connectto;
allow mtk_hal_power proc_mtkcooler:dir search;
allow mtk_hal_power proc_mtkcooler:file { read write open };
allow mtk_hal_power proc_mtktz:dir search;
allow mtk_hal_power proc_mtktz:file {open read write };

View File

@ -52,3 +52,4 @@ allow thermal_manager mtk_thermal_config_prop:property_service set;
# Operation : P Migration # Operation : P Migration
# Purpose : Allow thermal_manager to access vendor data file. # Purpose : Allow thermal_manager to access vendor data file.
allow thermal_manager vendor_data_file:dir { write add_name }; allow thermal_manager vendor_data_file:dir { write add_name };
allow thermal_manager self:capability { fowner chown };