From 0d7ab6ea8b73af4ca4c03f9993c78933d20e367d Mon Sep 17 00:00:00 2001 From: Alice Yang Date: Wed, 4 Aug 2021 00:28:16 +0800 Subject: [PATCH] Add sepolicy to allow camera HAL to read display backlight Add sepolicy to allow camera HAL to read display backlight to use in gabc algorithm. Bug: 187917645 Test: build pass, go/p21-camera-test-checklist Change-Id: I628ee2dedd48dd1360d0818137ba9139ae194029 --- whitechapel/vendor/google/hal_camera_default.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/whitechapel/vendor/google/hal_camera_default.te b/whitechapel/vendor/google/hal_camera_default.te index 895080f6..fa8e5f2a 100644 --- a/whitechapel/vendor/google/hal_camera_default.te +++ b/whitechapel/vendor/google/hal_camera_default.te @@ -82,3 +82,7 @@ allow hal_camera_default apex_info_file:file r_file_perms; # Allow camera HAL to query current device clock frequencies. allow hal_camera_default sysfs_devfreq_cur:file r_file_perms; + +# allow camera HAL to read backlight of display +allow hal_camera_default sysfs_leds:dir r_dir_perms; +allow hal_camera_default sysfs_leds:file r_file_perms;