Add se-policy for new GRIL service and RadioExt hal APIs
Added permission
- IBluetoothHal access for GRIL service
Bug: 172294179
Change-Id: I7b8a043da25c8e520b2588956f90b5402ba18f9a
diff --git a/vendor/google/grilservice_app.te b/vendor/google/grilservice_app.te
index 68667c4..c757bc7 100644
--- a/vendor/google/grilservice_app.te
+++ b/vendor/google/grilservice_app.te
@@ -5,6 +5,7 @@
allow grilservice_app hal_radioext_hwservice:hwservice_manager find;
allow grilservice_app hal_wifi_ext_hwservice:hwservice_manager find;
allow grilservice_app app_api_service:service_manager find;
+allow grilservice_app hal_bluetooth_sar_hwservice:hwservice_manager find;
binder_call(grilservice_app, hal_radioext_default)
binder_call(grilservice_app, hal_wifi_ext)
diff --git a/vendor/google/hwservice.te b/vendor/google/hwservice.te
index 1b3f60c..100e93a 100644
--- a/vendor/google/hwservice.te
+++ b/vendor/google/hwservice.te
@@ -1 +1,2 @@
type hal_wifi_ext_hwservice, hwservice_manager_type, vendor_hwservice_type;
+type hal_bluetooth_sar_hwservice, hwservice_manager_type, vendor_hwservice_type;
diff --git a/vendor/google/hwservice_contexts b/vendor/google/hwservice_contexts
index cbdab7e..be65cef 100644
--- a/vendor/google/hwservice_contexts
+++ b/vendor/google/hwservice_contexts
@@ -1 +1,4 @@
vendor.google.wifi_ext::IWifiExt u:object_r:hal_wifi_ext_hwservice:s0
+
+# Bluetooth HAL extension
+hardware.google.bluetooth.sar::IBluetoothSar u:object_r:hal_bluetooth_sar_hwservice:s0