diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 72b5a86..11d21e0 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -572,6 +572,8 @@ /(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.keymaster_attestation@1\.1-service u:object_r:hal_keymaster_attestation_exec:s0 #ST NFC 1.1 hidl service /(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 ############################# diff --git a/non_plat/mtk_hal_wifi.te b/non_plat/mtk_hal_wifi.te new file mode 100755 index 0000000..4740f38 --- /dev/null +++ b/non_plat/mtk_hal_wifi.te @@ -0,0 +1,5 @@ +type mtk_hal_wifi, domain; +hal_server_domain(mtk_hal_wifi, hal_wifi) + +type mtk_hal_wifi_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(mtk_hal_wifi) diff --git a/non_plat/system_server.te b/non_plat/system_server.te index 6c0e8a4..be0c133 100644 --- a/non_plat/system_server.te +++ b/non_plat/system_server.te @@ -192,3 +192,8 @@ allow system_server mtk_thermal_config_prop:property_service set; # Purpose : perfmgr permission allow system_server proc_perfmgr:dir {read search}; allow system_server proc_perfmgr:file {open read ioctl}; + +# Date : W18.22 +# Operation : MTK wifi hal migration +# Purpose : MTK wifi hal interface permission +binder_call(system_server, mtk_hal_wifi)