common: Changes for android.hardware.usb@1.3-service.dual_role_usb HAL
Change-Id: Ic5d207e52e21dbc3232a1402276c6348e78859d8
diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts
index 35c0ae7..8cfc967 100644
--- a/common/vendor/file_contexts
+++ b/common/vendor/file_contexts
@@ -16,6 +16,7 @@
# 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
+/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.3-service\.dual_role_usb u:object_r:hal_usb_default_exec:s0
# Vibrator HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service\.lineage u:object_r:hal_vibrator_default_exec:s0
diff --git a/common/vendor/hal_usb_default.te b/common/vendor/hal_usb_default.te
index ed2c858..798f4b9 100644
--- a/common/vendor/hal_usb_default.te
+++ b/common/vendor/hal_usb_default.te
@@ -1,2 +1,7 @@
+allow hal_usb_default configfs:dir create_dir_perms;
+allow hal_usb_default configfs:file create_file_perms;
+
allow hal_usb_default proc_deny_new_usb:file w_file_perms;
+allow hal_usb_default sysfs_usb_data_enabled:file w_file_perms;
+
allow hal_usb_default self:capability sys_admin;