From 6f21f83c672af237827e0335cd566c1ce4810735 Mon Sep 17 00:00:00 2001 From: SamarV-121 Date: Wed, 14 Sep 2022 22:40:29 +0530 Subject: [PATCH] sepolicy: basic: non_plat: Allow mediacodec to read vendor_mtk_hdr_video_prop Change-Id: I2d2f602a298f2967b798ac00ce73dac1ec84bb18 --- basic/non_plat/mediacodec.te | 1 + basic/non_plat/property.te | 2 ++ basic/non_plat/property_contexts | 1 + 3 files changed, 4 insertions(+) diff --git a/basic/non_plat/mediacodec.te b/basic/non_plat/mediacodec.te index a43f6c9..fc0847e 100644 --- a/basic/non_plat/mediacodec.te +++ b/basic/non_plat/mediacodec.te @@ -149,3 +149,4 @@ set_prop(mediacodec, vendor_mtk_video_prop) get_prop(mediacodec, vendor_mtk_crossmount_prop) get_prop(mediacodec, vendor_mtk_deinterlace_prop) get_prop(mediacodec, vendor_mtk_omx_core_prop) +get_prop(mediacodec, vendor_mtk_hdr_video_prop) diff --git a/basic/non_plat/property.te b/basic/non_plat/property.te index b274d2b..5382f77 100644 --- a/basic/non_plat/property.te +++ b/basic/non_plat/property.te @@ -127,6 +127,7 @@ vendor_restricted_prop(vendor_debug_logger_prop) vendor_restricted_prop(vendor_mtk_crossmount_prop) vendor_restricted_prop(vendor_mtk_deinterlace_prop) vendor_restricted_prop(vendor_mtk_omx_core_prop) +vendor_restricted_prop(vendor_mtk_hdr_video_prop) # Properties with can be read by all domains typeattribute vendor_mtk_aal_ro_prop mtk_core_property_type; @@ -208,3 +209,4 @@ typeattribute vendor_debug_logger_prop mtk_core_property_type; typeattribute vendor_mtk_crossmount_prop mtk_core_property_type; typeattribute vendor_mtk_deinterlace_prop mtk_core_property_type; typeattribute vendor_mtk_omx_core_prop mtk_core_property_type; +typeattribute vendor_mtk_hdr_video_prop mtk_core_property_type; diff --git a/basic/non_plat/property_contexts b/basic/non_plat/property_contexts index 4918de7..53a3b7b 100644 --- a/basic/non_plat/property_contexts +++ b/basic/non_plat/property_contexts @@ -403,3 +403,4 @@ persist.vendor.xfrm_support u:object_r:vendor_mtk_xfrm_support_prop:s0 mtk.vendor.omx.core.log u:object_r:vendor_mtk_omx_core_prop:s0 ro.mtk_crossmount_support u:object_r:vendor_mtk_crossmount_prop:s0 ro.mtk_deinterlace_support u:object_r:vendor_mtk_deinterlace_prop:s0 +ro.vendor.mtk_hdr_video_support u:object_r:vendor_mtk_hdr_video_prop:s0