[ALPS03867358] Thermal: P Migration

[Detail]
Modiy change thermal policy method.
Using "set property" instead of call lib by individual process.

[Solution]
1. Add "on property" in init.thermal_manager.rc file.
2. Modify selinux policy.
3. Remove "on property" in project init.rc.
Using "start service" instead of "exec command" to
avoid performance issue.
4. Rename thermal property.

MTK-Commit-Id: e384dfc938d08ed9e37de6c0ca2bfbe10dfa3f2d

Change-Id: I20981a3ee6461428a29dd01fab0553b3b2a63539
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 09:49:54 +08:00 committed by Jerry-SC Wu
parent 9ac183515e
commit c7b0e0020f

View File

@ -147,8 +147,7 @@ persist.vendor.radio.last_iccid_sim u:object_r:mtk_telephony_sensitive_prop:s0
ro.vendor.md_mims_support u:object_r:mtk_telephony_sensitive_prop:s0 ro.vendor.md_mims_support u:object_r:mtk_telephony_sensitive_prop:s0
#=============allow processes to change thermal config================ #=============allow processes to change thermal config================
thermal.manager.data u:object_r:mtk_thermal_config_prop:s0 vendor.thermal.manager.data u:object_r:mtk_thermal_config_prop:s0
#=============allow composer set property ============================ #=============allow composer set property ============================
debug.sf.hwc_pid u:object_r:graphics_hwc_pid_prop:s0 debug.sf.hwc_pid u:object_r:graphics_hwc_pid_prop:s0