From 57d920f582153ffd6add91aa84f0043ca742a2ef Mon Sep 17 00:00:00 2001 From: Edmond Chung Date: Wed, 19 Apr 2023 11:18:14 -0700 Subject: [PATCH] Camera: Allow rw access to TEE devices This is to enable face authentication on P23 devices. Bug: 278898746 Test: Build, face authentication Change-Id: I75311770a9780e0d97a9240b589e4e4cd9e2dc56 --- vendor/hal_camera_default.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/hal_camera_default.te b/vendor/hal_camera_default.te index 666ad738..986ddd90 100644 --- a/vendor/hal_camera_default.te +++ b/vendor/hal_camera_default.te @@ -7,6 +7,8 @@ allow hal_camera_default lwis_device:chr_file rw_file_perms; # Face authentication code that is part of the camera HAL needs to allocate # dma_bufs and access the Trusted Execution Environment device node +allow hal_camera_default dmabuf_system_heap_device:chr_file r_file_perms; +allow hal_camera_default tee_device:chr_file rw_file_perms; # Allow the camera hal to access the EdgeTPU service and the # Android shared memory allocated by the EdgeTPU service for