hikey: Add Bluetooth HAL sepolicy am: f66707691e am: 8b5021d19b
am: d63e9e2025

Change-Id: Ia2c294097b57c8447de04bfb8eb4679093f616db
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index dc808fa..5379f90 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -6,3 +6,4 @@
 /dev/hci_tty           u:object_r:hci_attach_dev:s0
 /dev/ttyAMA1           u:object_r:hci_attach_dev:s0
 /system/bin/uim        u:object_r:hci_attach_exec:s0
+/system/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.hikey      u:object_r:hal_bluetooth_hikey_exec:s0
diff --git a/sepolicy/hal_bluetooth_hikey.te b/sepolicy/hal_bluetooth_hikey.te
new file mode 100644
index 0000000..f16f9fb
--- /dev/null
+++ b/sepolicy/hal_bluetooth_hikey.te
@@ -0,0 +1,6 @@
+type hal_bluetooth_hikey, domain;
+type hal_bluetooth_hikey_exec, exec_type, file_type;
+
+hal_impl_domain(hal_bluetooth_hikey, hal_bluetooth)
+
+init_daemon_domain(hal_bluetooth_hikey)