add support for Google Battery HAL
And grant access to it from Settings, SystemUI, and Turbo Adapter.
Bug: 150239363
Test: verified Google Battery HAL use cases function as expected; no denials
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: Idb3d2af52d13dd8c1fd26eefeaa9852c94358981
diff --git a/googlebattery/system_app.te b/googlebattery/system_app.te
new file mode 100644
index 0000000..05723bf
--- /dev/null
+++ b/googlebattery/system_app.te
@@ -0,0 +1,3 @@
+# To allow Settings to find and bind Google Battery HAL
+allow system_app hal_googlebattery_hwservice:hwservice_manager find;
+binder_call(system_app, hal_googlebattery)