Merge RQ2A.210305.007
Bug: 180401296
Merged-In: I642181ca25542164ccd5aebc627b30e191591294
Change-Id: Ia0ed058571e33c97191b3bc86a6daba95c22c3d5
diff --git a/googlebattery/file_contexts b/googlebattery/file_contexts
index f4fc712..0d3004e 100644
--- a/googlebattery/file_contexts
+++ b/googlebattery/file_contexts
@@ -1 +1 @@
-/vendor/bin/hw/vendor\.google\.google_battery@1\.0-service-vendor u:object_r:hal_googlebattery_exec:s0
+/vendor/bin/hw/vendor\.google\.google_battery@1\.1-service-vendor u:object_r:hal_googlebattery_exec:s0
diff --git a/googlebattery/hal_googlebattery.te b/googlebattery/hal_googlebattery.te
index 6e6697b..fc08b28 100644
--- a/googlebattery/hal_googlebattery.te
+++ b/googlebattery/hal_googlebattery.te
@@ -7,6 +7,9 @@
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;
+
+set_prop(hal_googlebattery, vendor_battery_defender_prop)
hwbinder_use(hal_googlebattery)
add_hwservice(hal_googlebattery, hal_googlebattery_hwservice)