From 6ccf81104b851d5afd4ab892bcb90164408cf080 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 5 Nov 2021 20:40:54 -0400 Subject: [PATCH] Fix video crashing on apps targetting Android 11, on some Mediatek devices (like Redmi 9) Address SELinux denials for MTK's IMms, which is needed by its GL impl. --- sepolicy/private/mtk_hal_mms.te | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sepolicy/private/mtk_hal_mms.te diff --git a/sepolicy/private/mtk_hal_mms.te b/sepolicy/private/mtk_hal_mms.te new file mode 100644 index 0000000..a60bd2b --- /dev/null +++ b/sepolicy/private/mtk_hal_mms.te @@ -0,0 +1,6 @@ +attribute hal_mms_server; +binder_call({appdomain -isolated_app}, hal_mms_server) +binder_call(hal_mms_server, {appdomain -isolated_app}) + +type mtk_hal_mms_hwservice, hwservice_manager_type; +allow { appdomain -isolated_app } mtk_hal_mms_hwservice:hwservice_manager find;