From ad42045b877c37ee88ca270b9ceb42c4d5ab34a9 Mon Sep 17 00:00:00 2001 From: Erik Staats Date: Mon, 2 Aug 2021 15:47:37 -0700 Subject: [PATCH] Allow sensor HAL to read AoC dumpstate. Bug: 194021578 Test: Simulated communication failure and verified AoC services state log. Test: See details in testing done comment in https://googleplex-android-review.git.corp.google.com/15444398 . Change-Id: I76f376577abad26fe86b5ecb6a570716381227f0 --- usf/sensor_hal.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usf/sensor_hal.te b/usf/sensor_hal.te index e8368b9c..e071b9bc 100644 --- a/usf/sensor_hal.te +++ b/usf/sensor_hal.te @@ -46,6 +46,9 @@ usf_low_latency_transport(hal_sensors_default) # Allow sensor HAL to reset AOC. allow hal_sensors_default sysfs_aoc_reset:file rw_file_perms; +# Allow sensor HAL to read AoC dumpstate. +allow hal_sensors_default sysfs_aoc_dumpstate:file r_file_perms; + # # Suez type enforcements. #