From f74ee1fc3d29f92848319519cae6b06ba1d234b0 Mon Sep 17 00:00:00 2001 From: Konsta Date: Fri, 3 Feb 2023 11:56:36 +0200 Subject: [PATCH] sepolicy: add ffmpeg service * Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/7 * ABC OCD --- sepolicy/file_contexts | 3 +++ vendor.prop | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index e6d1f85..9218d20 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -10,6 +10,9 @@ /vendor/bin/hw/android\.hardware\.drm(@[0-9]+\.[0-9]+)?-service\.clearkey u:object_r:hal_drm_clearkey_exec:s0 /vendor/bin/hw/android\.hardware\.drm(@[0-9]+\.[0-9]+)?-service\.widevine u:object_r:hal_drm_widevine_exec:s0 +# FFmpeg +/vendor/bin/hw/android\.hardware\.media\.c2@1\.2-service-ffmpeg(.*)? u:object_r:mediacodec_exec:s0 + # Gatekeeper /vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service.software u:object_r:hal_gatekeeper_default_exec:s0 diff --git a/vendor.prop b/vendor.prop index 14eefd5..8480dda 100644 --- a/vendor.prop +++ b/vendor.prop @@ -39,10 +39,10 @@ ro.hardware.camera=libcamera debug.drm.mode.force=1920x1080 # FFmpeg -persist.ffmpeg_codec2.v4l2.h264=false -persist.ffmpeg_codec2.v4l2.h265=true persist.ffmpeg_codec2.rank.audio=16 persist.ffmpeg_codec2.rank.video=256 +persist.ffmpeg_codec2.v4l2.h264=false +persist.ffmpeg_codec2.v4l2.h265=true # Graphics ro.hardware.hwcomposer=drm