mediacodec_samsung: allow to write force_empty count

Bug: 294335163
Test: android.mediapc.cts.MultiDecoderPerfTest#test4kHbd[6_video/hevc_c2.exynos.hevc.decoder.secure_true]
Change-Id: I9c9dfcd8f103900b3e92e9bd8e1f350432f4b36a
This commit is contained in:
Jerry Huang 2023-08-11 18:02:19 +08:00
parent 7232d53128
commit 68c40b065f
3 changed files with 5 additions and 0 deletions

View File

@ -1 +1,2 @@
type sysfs_mfc, sysfs_type, fs_type;
type sysfs_force_empty, sysfs_type, fs_type;

View File

@ -1 +1,2 @@
genfscon sysfs /devices/platform/mfc/video4linux/video u:object_r:sysfs_mfc:s0
genfscon sysfs /kernel/vendor_mm/cma/vframe/force_empty u:object_r:sysfs_force_empty:s0

View File

@ -14,6 +14,9 @@ allow mediacodec_samsung gpu_device:chr_file rw_file_perms;
allow mediacodec_samsung sysfs_mfc:file r_file_perms;
allow mediacodec_samsung sysfs_mfc:dir r_dir_perms;
allow mediacodec_samsung sysfs_force_empty:dir r_file_perms;
allow mediacodec_samsung sysfs_force_empty:file rw_file_perms;
# can use graphics allocator
hal_client_domain(mediacodec_samsung, hal_graphics_allocator)