diff --git a/vendor/file_contexts b/vendor/file_contexts index 4e5393965..6dd8e4676 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -63,6 +63,7 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input@1\.0-service u:object_r:hal_tv_input_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.tuner@1\.0-service u:object_r:hal_tv_tuner_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.usb\.gadget@1\.1-service u:object_r:hal_usb_gadget_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator-service.example u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0 diff --git a/vendor/hal_usb_gadget_default.te b/vendor/hal_usb_gadget_default.te new file mode 100644 index 000000000..f1486b9e2 --- /dev/null +++ b/vendor/hal_usb_gadget_default.te @@ -0,0 +1,5 @@ +type hal_usb_gadget_default, domain; +hal_server_domain(hal_usb_gadget_default, hal_usb_gadget) + +type hal_usb_gadget_default_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(hal_usb_gadget_default)