summaryrefslogtreecommitdiff
path: root/thermal
diff options
context:
space:
mode:
authormandyshen <mandyshen@google.com>2021-04-30 05:11:34 +0800
committermandyshen <mandyshen@google.com>2021-05-06 17:38:18 +0800
commit3e996eeacb90c853bdf9ede83fca48583a96006a (patch)
treeb2781623bbba0cf28813195dd9b839cbcbd6e11f /thermal
parentc79187ce4665f3ced6211b10ca1527418c0d5bd3 (diff)
downloadpixel-3e996eeacb90c853bdf9ede83fca48583a96006a.tar.gz
thermal: change file permission of thermalhal for charging cdev
avc: denied { dac_override } for comm="thermal-engine" capability=1 scontext=u:r:thermal-engine:s0 tcontext=u:r:thermal-engine:s0 tclass=capability permissive=0 thermalhal change file permission from root/root to system/system (ag/14065206) Bug: 186122313 Test: No thermal-engine avc denials (ThermalEngine is able to set FCC mitigation) Change-Id: I93a0c299b48fbce563e20f4ca084725a9d920d1f
Diffstat (limited to 'thermal')
-rw-r--r--thermal/android.hardware.thermal@2.0-service.pixel.rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/thermal/android.hardware.thermal@2.0-service.pixel.rc b/thermal/android.hardware.thermal@2.0-service.pixel.rc
index eb112b25..fce3a6ca 100644
--- a/thermal/android.hardware.thermal@2.0-service.pixel.rc
+++ b/thermal/android.hardware.thermal@2.0-service.pixel.rc
@@ -41,8 +41,10 @@ on property:vendor.thermal.link_ready=1
chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote
chown system system /dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote
chown system system /dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote
- chown system system /dev/thermal/cdev-by-name/fcc/cur_state
- chown system system /dev/thermal/cdev-by-name/dc_icl/cur_state
+ chown root system /dev/thermal/cdev-by-name/fcc/cur_state
+ chmod 0660 /dev/thermal/cdev-by-name/fcc/cur_state
+ chown root system /dev/thermal/cdev-by-name/dc_icl/cur_state
+ chmod 0660 /dev/thermal/cdev-by-name/dc_icl/cur_state
start vendor.thermal-hal-2-0
service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.pixel