sepolicy: Add rules for radio config wrapper

Change-Id: Ic7baa96b0e777168d6354a3c6d20f6d1ab9864b1
diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts
index 8cfc967..f1dffb8 100644
--- a/common/vendor/file_contexts
+++ b/common/vendor/file_contexts
@@ -13,6 +13,9 @@
 # LiveDisplay HAL
 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service-sysfs    u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
 
+# RadioConfig HAL
+/(vendor|system/vendor)/bin/hw/android\.hardware\.radio\.config@1\.1-service\.wrapper   u:object_r:hal_radio_config_default_exec:s0
+
 # USB HAL
 /(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.3-service\.basic u:object_r:hal_usb_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.1-service\.typec u:object_r:hal_usb_default_exec:s0
diff --git a/common/vendor/hal_radio_config_default.te b/common/vendor/hal_radio_config_default.te
new file mode 100644
index 0000000..dc9f8f9
--- /dev/null
+++ b/common/vendor/hal_radio_config_default.te
@@ -0,0 +1 @@
+allow hal_radio_config_default hal_lineage_backend_radio_config_hwservice:hwservice_manager find;
diff --git a/common/vendor/hwservice.te b/common/vendor/hwservice.te
new file mode 100644
index 0000000..791f7f4
--- /dev/null
+++ b/common/vendor/hwservice.te
@@ -0,0 +1 @@
+type hal_lineage_backend_radio_config_hwservice, hwservice_manager_type;
diff --git a/common/vendor/hwservice_contexts b/common/vendor/hwservice_contexts
new file mode 100644
index 0000000..492a808
--- /dev/null
+++ b/common/vendor/hwservice_contexts
@@ -0,0 +1,2 @@
+# The following hwservices are supposed to be registered by blobs through hexedit; Keep string length the same.
+lineage.hardware.radio.config::IRadioConfig                             u:object_r:hal_lineage_backend_radio_config_hwservice:s0
diff --git a/common/vendor/rild.te b/common/vendor/rild.te
new file mode 100644
index 0000000..50e5b8d
--- /dev/null
+++ b/common/vendor/rild.te
@@ -0,0 +1 @@
+add_hwservice(rild, hal_lineage_backend_radio_config_hwservice)