From dcffb8b13269b2902ddda7e3f801398b7f38ab7f Mon Sep 17 00:00:00 2001 From: "Wan, Hao" Date: Tue, 13 Aug 2024 03:28:33 +0000 Subject: [PATCH] Enable AV1 encoder in DG2 Tracked-On: OAM-123201 Signed-off-by: Wan, Hao --- aafd/shell.te | 1 + codec2/msdk-codec2/codec2_hal_default.te | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 aafd/shell.te diff --git a/aafd/shell.te b/aafd/shell.te new file mode 100644 index 00000000..e67d67a1 --- /dev/null +++ b/aafd/shell.te @@ -0,0 +1 @@ +allow shell vendor_media_platform_prop:file { getattr open read map }; diff --git a/codec2/msdk-codec2/codec2_hal_default.te b/codec2/msdk-codec2/codec2_hal_default.te index b2b0a76e..19826aba 100644 --- a/codec2/msdk-codec2/codec2_hal_default.te +++ b/codec2/msdk-codec2/codec2_hal_default.te @@ -53,3 +53,5 @@ allow codec2_hal_default logd:unix_stream_socket connectto; allow codec2_hal_default hwservicemanager:binder call; allow codec2_hal_default tombstoned_crash_socket:sock_file write; +allow codec2_hal_default sysfs_gpu:dir search; +allow codec2_hal_default sysfs_gpu:file { getattr open read };