From 3518c9e7f8bdd83d074f761253857984e033dbd8 Mon Sep 17 00:00:00 2001 From: Changyeon Jo Date: Wed, 23 Mar 2022 12:35:28 +0000 Subject: [PATCH] Allow EVS HAL to use cardisplayproxyd This change adds selinux policies to allow EVS HAL implementations to use cardisplayproxyd, which implements a stable AIDL version of the automotive display proxy service interface. Bug: 170401743 Bug: 217271351 Test: Manually confirm that evs_app renders the camera preview through cardisplayproxyd Change-Id: Ia301b782c6c031fe8351bdcda5ce264da6b8aa4d --- vendor/hal_evs_default.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/hal_evs_default.te b/vendor/hal_evs_default.te index 176d611fc..59d6c391a 100644 --- a/vendor/hal_evs_default.te +++ b/vendor/hal_evs_default.te @@ -14,6 +14,10 @@ hal_client_domain(hal_evs_default, hal_graphics_composer) # allow to use automotive display service binder_call(hal_evs_default, automotive_display_service_server) allow hal_evs_default fwk_automotive_display_hwservice:hwservice_manager find; +allow hal_evs_default fwk_automotive_display_service:service_manager find; + +# allow to use hidl token service to retrieve HGBP object +allow hal_evs_default hidl_token_hwservice:hwservice_manager find; # allow to access data from surfaceflinger allow hal_evs_default surfaceflinger:fd use;