From 5ee628f0ce74f04087a9d0602445b8fb90b68f31 Mon Sep 17 00:00:00 2001 From: Changyeon Jo Date: Mon, 29 Jul 2019 09:07:42 -0700 Subject: [PATCH] Update sepolicy for EVS v1.x Modify vendor file context and hal_evs_server policy to enable EVS v1.1 service. Change-Id: I1e717b3209200300005c3fa7f91423589505a41c Signed-off-by: Changyeon Jo --- public/hal_evs.te | 2 +- vendor/file_contexts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/hal_evs.te b/public/hal_evs.te index bf2e38b53..789333af7 100644 --- a/public/hal_evs.te +++ b/public/hal_evs.te @@ -2,4 +2,4 @@ hwbinder_use(hal_evs_client) hwbinder_use(hal_evs_server) binder_call(hal_evs_client, hal_evs_server) binder_call(hal_evs_server, hal_evs_client) -allow hal_evs_client hal_evs_hwservice:hwservice_manager find; +hal_attribute_hwservice(hal_evs, hal_evs_hwservice) diff --git a/vendor/file_contexts b/vendor/file_contexts index 0a3e2d942..85f12b238 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -4,7 +4,7 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.atrace@1\.0-service u:object_r:hal_atrace_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.audio(@2\.0-|\.)service u:object_r:hal_audio_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.audiocontrol@1\.0-service u:object_r:hal_audiocontrol_default_exec:s0 -/(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.evs@1\.0-service u:object_r:hal_evs_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.evs@1\.[0-9]-service u:object_r:hal_evs_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle@2\.0-service u:object_r:hal_vehicle_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.0-service u:object_r:hal_bluetooth_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.0-service\.btlinux u:object_r:hal_bluetooth_btlinux_exec:s0