[ALPS03885057] Add label for MTK USB HIDL 1.1

[Detail]
Add label and sepolicy for "android.hardware.usb@1.1-service-mediatek"

MTK-Commit-Id: 7d1f78831d049318d4623d33065136303639d856

Change-Id: I72d88642485097ef42bdf38938e22eeaae1eb2e3
CR-Id: ALPS03885057
Feature: USB TYPE-C
This commit is contained in:
Eddie Hung 2020-01-18 10:02:32 +08:00
parent dd694722fa
commit 6a0e7e04f2
2 changed files with 13 additions and 3 deletions

View File

@ -575,7 +575,8 @@
/(system\/vendor|vendor)/bin/hw/android\.hardware\.nfc@1\.1-service-st u:object_r:hal_nfc_default_exec:s0
# MTK Wifi Hal
/(system\/vendor|vendor)/bin/hw/android\.hardware\.wifi@1\.0-service-mediatek u:object_r:mtk_hal_wifi_exec:s0
# MTK USB hal
/(system\/vendor|vendor)/bin/hw/android\.hardware\.usb@1\.1-service-mediatek u:object_r:mtk_hal_usb_exec:s0
#############################
# System/bin files

View File

@ -1,2 +1,11 @@
allow hal_usb_default sysfs_dual_role_usb20:dir search;
type mtk_hal_usb, domain;
hal_server_domain(mtk_hal_usb, hal_usb)
type mtk_hal_usb_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(mtk_hal_usb)
allow hal_usb_default sysfs_dual_role_usb20:dir {search read};
allow hal_usb_default sysfs_dual_role_usb20:file {open read getattr};
allow mtk_hal_usb sysfs_dual_role_usb20:dir {search read};
allow mtk_hal_usb sysfs_dual_role_usb20:file {open read getattr};