Add wireless/device/mitigate_threshold to control Dream Defend from GoogleBattery
Bug: 184547203
Test: Ensure there are no sepolicy/access errors from GoogleBattery
Change-Id: I5b21aa6fea767bd6706307341963941ac4077d6f
diff --git a/googlebattery/hal_googlebattery.te b/googlebattery/hal_googlebattery.te
index fc08b28..cd1253b 100644
--- a/googlebattery/hal_googlebattery.te
+++ b/googlebattery/hal_googlebattery.te
@@ -4,10 +4,12 @@
init_daemon_domain(hal_googlebattery)
r_dir_file(hal_googlebattery, sysfs_batteryinfo)
+r_dir_file(hal_googlebattery, sysfs_wlc)
allow hal_googlebattery sysfs_batteryinfo:file rw_file_perms;
allow hal_googlebattery self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
allow hal_googlebattery sysfs_chargelevel:file rw_file_perms;
+allow hal_googlebattery sysfs_wlc:file rw_file_perms;
set_prop(hal_googlebattery, vendor_battery_defender_prop)