From 1542b2a530a5e8d68393462890ec5742eb2b18bf Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 10 Oct 2018 15:03:05 -0700 Subject: Revert sepolicy from "thermal: recommend throttling at low temps" This reverts sepolicy from commit 91c2b8ed0e37a5f7e2aa131378134d5159d15599. Reason for revert: get rid of the hack which is not a right solution for BCL Bug: 80202800 Bug: 117518230 Test: lshal debug "android.hardware.thermal@1.1::IThermal/default" and check threshold Signed-off-by: Wei Wang Change-Id: Ibc663edd00ca0db82616637c61538826c5753d86 Merged-In: Ibc663edd00ca0db82616637c61538826c5753d86 (cherry picked from commit dc2b452202bcf2ebf045ea0639e45fd0d4a0c4ec) --- vendor/qcom/common/hal_thermal_default.te | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vendor/qcom/common/hal_thermal_default.te b/vendor/qcom/common/hal_thermal_default.te index 0d56bc1..608cda0 100644 --- a/vendor/qcom/common/hal_thermal_default.te +++ b/vendor/qcom/common/hal_thermal_default.te @@ -2,13 +2,6 @@ allow hal_thermal_default sysfs_thermal:dir { open read search }; allow hal_thermal_default sysfs_thermal:file { getattr open read }; allow hal_thermal_default sysfs_thermal:lnk_file read; -allow hal_thermal_default sysfs_batteryinfo:dir search; -allow hal_thermal_default sysfs_batteryinfo:file r_file_perms; -allow hal_thermal_default sysfs_batteryinfo:lnk_file read; -allow hal_thermal_default sysfs_msm_subsys:dir search; -allow hal_thermal_default sysfs_msm_subsys:file r_file_perms; -allow hal_thermal_default sysfs_msm_subsys:lnk_file read; - allow hal_thermal_default proc_stat:file { getattr open read }; # read thermal_config get_prop(hal_thermal_default, vendor_thermal_prop) -- cgit v1.2.3