From 658d4bd6734006ea74fd1ccbc181a22957753c35 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Mon, 31 Jan 2022 16:05:28 +0000 Subject: [PATCH] Grant permission for mediatranscoding hal_allocator for OMX platforms This is a port of If44653f436d4e5dcbd040af24f03b09ae8e7ac05 which made this change to prebuilts/api/31.0/private/mediatranscoding.te. This is required to pass CTS test. Test: run cts -m CtsMediaTranscodingTestCases -t android.media.mediatranscoding.cts.MediaTranscodingManagerTest#testAddingClientUids Bug: 207821225 Bug: 213141904 Change-Id: Iefe9f326572976e230eeeec74e612b6e20b31887 --- prebuilts/api/31.0/private/mediatranscoding.te | 1 + prebuilts/api/32.0/private/mediatranscoding.te | 1 + 2 files changed, 2 insertions(+) diff --git a/prebuilts/api/31.0/private/mediatranscoding.te b/prebuilts/api/31.0/private/mediatranscoding.te index 2a43cf9b5..073e81d78 100644 --- a/prebuilts/api/31.0/private/mediatranscoding.te +++ b/prebuilts/api/31.0/private/mediatranscoding.te @@ -19,6 +19,7 @@ hal_client_domain(mediatranscoding, hal_graphics_allocator) hal_client_domain(mediatranscoding, hal_configstore) hal_client_domain(mediatranscoding, hal_omx) hal_client_domain(mediatranscoding, hal_codec2) +hal_client_domain(mediatranscoding, hal_allocator) allow mediatranscoding mediaserver_service:service_manager find; allow mediatranscoding mediametrics_service:service_manager find; diff --git a/prebuilts/api/32.0/private/mediatranscoding.te b/prebuilts/api/32.0/private/mediatranscoding.te index 2a43cf9b5..073e81d78 100644 --- a/prebuilts/api/32.0/private/mediatranscoding.te +++ b/prebuilts/api/32.0/private/mediatranscoding.te @@ -19,6 +19,7 @@ hal_client_domain(mediatranscoding, hal_graphics_allocator) hal_client_domain(mediatranscoding, hal_configstore) hal_client_domain(mediatranscoding, hal_omx) hal_client_domain(mediatranscoding, hal_codec2) +hal_client_domain(mediatranscoding, hal_allocator) allow mediatranscoding mediaserver_service:service_manager find; allow mediatranscoding mediametrics_service:service_manager find;