aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Jo <changyeon@google.com>2024-04-23 16:40:03 -0700
committerChangyeon Jo <changyeon@google.com>2024-04-23 23:51:26 +0000
commit2d2dec4dbb48731c2ed9f9208398090b1667abe2 (patch)
treeccaff39565b7f6fd1da286852773b3e8edff9f14
parent9e07c82fe2a4190914bdb49e45200dae3aed32a3 (diff)
downloadcuttlefish-2d2dec4dbb48731c2ed9f9208398090b1667abe2.tar.gz
Allow EVS HAL implementations to use mediametrics
The default EVS HAL implementation needs to interact with the mediametrics service for its camera stream emulations. Bug: 335901181 Test: Run a test described in the associated bug. Change-Id: Iff1e887df70c1d66d9bdc9f811100eb3fef0604e
-rw-r--r--shared/auto/sepolicy/evs/hal_evs_default.te4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/auto/sepolicy/evs/hal_evs_default.te b/shared/auto/sepolicy/evs/hal_evs_default.te
index e60e2a3f2..16950040e 100644
--- a/shared/auto/sepolicy/evs/hal_evs_default.te
+++ b/shared/auto/sepolicy/evs/hal_evs_default.te
@@ -45,3 +45,7 @@ binder_call(hal_evs_default, mediaserver)
# Allow to use OMX service.
hal_client_domain(hal_evs_default, hal_omx)
hal_client_domain(hal_evs_default, hal_codec2)
+
+# Allow to interact with mediametrics
+allow hal_evs_default mediametrics_service:service_manager find;
+binder_call(hal_evs_default, mediametrics)