From 4a0259ff34acccae77ddb344e2f2eb500260892e Mon Sep 17 00:00:00 2001 From: Dan Moore Date: Fri, 28 Apr 2023 12:13:32 -0400 Subject: [PATCH] Allow sensor HAL access to thermal HAL The FIR temperature sensor must report an estimate of window temperature so that the BTS SaMD can determine if the boundary condition between the sensor and window is within accuracy specification. Test: logcat previously reported access denied to thermal HAL. Access is now granted and the Twindow elements are accessible. Bug: 276738070 Change-Id: I72846053840e36ba8d3d59df9ba580c6c416e867 --- vendor/hal_sensors_default.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/hal_sensors_default.te b/vendor/hal_sensors_default.te index b9f6a72b..ee1eea7f 100644 --- a/vendor/hal_sensors_default.te +++ b/vendor/hal_sensors_default.te @@ -17,6 +17,9 @@ binder_call(hal_sensors_default, hal_graphics_composer_default); # Allow sensor HAL to access the display service HAL allow hal_sensors_default hal_pixel_display_service:service_manager find; +# Allow sensor HAL to access the thermal service HAL +hal_client_domain(hal_sensors_default, hal_thermal); + # Allow reading of sensor registry persist files and camera persist files. allow hal_sensors_default mnt_vendor_file:dir search; allow hal_sensors_default persist_file:dir search;