From f2790b44b45767ace42ed98cc5cfaf922d767276 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 29 May 2020 10:12:22 +0200 Subject: [PATCH] Add smcinvoke dev type. Should fix widevine on Redmi Note 9S --- sepolicy/file_contexts | 1 + sepolicy/qualcomm.te | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index cdd3e4f..23058ae 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -16,3 +16,4 @@ /efs u:object_r:efs_file:s0 +/dev/smcinvoke u:object_r:smcinvoke_device:s0 diff --git a/sepolicy/qualcomm.te b/sepolicy/qualcomm.te index fba8ed8..30a9a6c 100644 --- a/sepolicy/qualcomm.te +++ b/sepolicy/qualcomm.te @@ -24,3 +24,5 @@ allow ipacm hal_tetheroffload_hwservice:hwservice_manager { add }; type rpmb_device, file_type; allow tee rpmb_device:blk_file rw_file_perms; allowxperm tee rpmb_device:blk_file ioctl { 0xb300-0xbfff }; + +type smcinvoke_device, dev_type;