sepolicy: Add UWB HAL interface in AOSP
Adding sepolicy rules for the AOSP HAL interface.
Ignore-AOSP-First: Dependent changes in internal-only projects.
Bug: 195308730
Test: Compiles
Change-Id: I56302b570a749f7d72b6fe8f4f4a8767ea4785c1
Merged-In: I56302b570a749f7d72b6fe8f4f4a8767ea4785c1
diff --git a/public/hal_uwb.te b/public/hal_uwb.te
new file mode 100644
index 0000000..672bcf2
--- /dev/null
+++ b/public/hal_uwb.te
@@ -0,0 +1,6 @@
+# HwBinder IPC from client to server, and callbacks
+binder_call(hal_uwb_client, hal_uwb_server)
+binder_call(hal_uwb_server, hal_uwb_client)
+
+hal_attribute_hwservice(hal_uwb, hal_uwb_hwservice)
+
diff --git a/public/hwservice.te b/public/hwservice.te
index 11b77f0..36fea79 100644
--- a/public/hwservice.te
+++ b/public/hwservice.te
@@ -48,6 +48,7 @@
type hal_tv_tuner_hwservice, hwservice_manager_type, protected_hwservice;
type hal_usb_gadget_hwservice, hwservice_manager_type, protected_hwservice;
type hal_usb_hwservice, hwservice_manager_type, protected_hwservice;
+type hal_uwb_hwservice, hwservice_manager_type, protected_hwservice;
type hal_vehicle_hwservice, hwservice_manager_type, protected_hwservice;
type hal_vibrator_hwservice, hwservice_manager_type, protected_hwservice;
type hal_vr_hwservice, hwservice_manager_type, protected_hwservice;