From 1240fdefbbcb34c6f983468d60f037a80bdcb5ae Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Tue, 31 May 2022 17:59:26 +0800 Subject: [PATCH] Add policy to allow debug camera app (GCAEng and locally built GCANext) to access HAL to apply CPU/GPU boost on userdebug builds. Bug: 233998391 Test: Boost applied successfully for all flavors b/233998391#comment15. GCA. Change-Id: If339705cf4daec0f12e81c2c8efdc1eb4a063267 --- whitechapel_pro/debug_camera_app.te | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/whitechapel_pro/debug_camera_app.te b/whitechapel_pro/debug_camera_app.te index 7c14ef03..50379b54 100644 --- a/whitechapel_pro/debug_camera_app.te +++ b/whitechapel_pro/debug_camera_app.te @@ -15,4 +15,7 @@ userdebug_or_eng(` # Allows camera app to search for GXP firmware file. allow debug_camera_app vendor_fw_file:dir search; -') \ No newline at end of file + + # Allows camera app to access the PowerHAL. + hal_client_domain(debug_camera_app, hal_power) +')