diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 97d0854..41ff62e 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -551,8 +551,8 @@ #PQ hal /(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.pq@2\.2-service u:object_r:mtk_hal_pq_exec:s0 #MMS hal -/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mms@1\.2-service u:object_r:mtk_hal_mms_exec:s0 -/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mms@1\.2-service-lazy u:object_r:mtk_hal_mms_exec:s0 +/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mms@1\.3-service u:object_r:mtk_hal_mms_exec:s0 +/(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.mms@1\.3-service-lazy u:object_r:mtk_hal_mms_exec:s0 # Keymaster Attestation Hal /(system\/vendor|vendor)/bin/hw/vendor\.mediatek\.hardware\.keymaster_attestation@1\.1-service u:object_r:hal_keymaster_attestation_exec:s0 #ST NFC 1.2 hidl service diff --git a/non_plat/mtk_hal_mms.te b/non_plat/mtk_hal_mms.te index 12df5bf..8ebbcaf 100755 --- a/non_plat/mtk_hal_mms.te +++ b/non_plat/mtk_hal_mms.te @@ -51,3 +51,5 @@ allowxperm mtk_hal_mms proc_mtk_jpeg:file ioctl { JPG_BRIDGE_ENC_IO_DEINIT JPG_BRIDGE_ENC_IO_START }; +# Allow to use mms by JPEG with handle +allow mtk_hal_mms platform_app:fd use;