From 74bdc8089b1a54f69bab28c51ecea0c0b70e3175 Mon Sep 17 00:00:00 2001 From: Chungjui Fan Date: Tue, 3 Jan 2023 15:41:03 +0000 Subject: [PATCH] Add sepolicy to allow lights to access display Avc denied logs in b/264023021#comment2 Bug: 264023021 Change-Id: Ib8527aa6cb65511488495e58bca51287107d6d53 Signed-off-by: Chungjui Fan --- vendor/hal_lights.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/hal_lights.te b/vendor/hal_lights.te index ac536de..7c43a93 100644 --- a/vendor/hal_lights.te +++ b/vendor/hal_lights.te @@ -2,4 +2,6 @@ allow hal_light_default sysfs_leds:dir search; allow hal_light_default sysfs_leds:file rw_file_perms; allow hal_light_default mnt_vendor_file:dir search; allow hal_light_default persist_file:dir search; +allow hal_light_default hal_pixel_display_service:service_manager find; +binder_call(hal_light_default, hal_graphics_composer_default); r_dir_file(hal_light_default, persist_leds_file);