thermal: modify permissions for usbc-port state change

Allow system components to change usbc-port cooling device state.

Bug: 222577017
Test: Build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: Ib7e86d95a73086acd295a7ab2fbc76a3fa5f990a
This commit is contained in:
Sayanna Chandula 2022-03-31 20:52:00 +00:00
parent 2bc617412c
commit 44d8473a94

View file

@ -962,6 +962,7 @@ on property:vendor.thermal.link_ready=1
chown system system /dev/thermal/cdev-by-name/dc_icl/cur_state chown system system /dev/thermal/cdev-by-name/dc_icl/cur_state
chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state
chown system system /dev/thermal/cdev-by-name/chg_mdis/cur_state chown system system /dev/thermal/cdev-by-name/chg_mdis/cur_state
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
on property:vendor.disable.bcl.control=1 on property:vendor.disable.bcl.control=1
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0 write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0