From 858f9996573ecb76cb62f1fbd920cc54a554fdd1 Mon Sep 17 00:00:00 2001 From: Brian Duddie Date: Tue, 26 Sep 2023 16:50:08 -0700 Subject: [PATCH] bluetooth: Allow triggering AOC reset from BT HAL Supports debugging and recovery from fatal errors that do not trigger AOC SSR on their own. Bug: 300076774 Test: trigger SSR from BT HAL Change-Id: I795b2c1830625e2cf05a9aa63c6f7ef273b01a87 --- vendor/hal_bluetooth_btlinux.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/hal_bluetooth_btlinux.te b/vendor/hal_bluetooth_btlinux.te index c496ea0b..3b7c8209 100644 --- a/vendor/hal_bluetooth_btlinux.te +++ b/vendor/hal_bluetooth_btlinux.te @@ -5,5 +5,9 @@ allow hal_bluetooth_btlinux device:dir r_dir_perms; allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms; allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms; +# Allow triggering AOC reset +allow hal_bluetooth_btlinux sysfs_aoc:dir search; +allow hal_bluetooth_btlinux sysfs_aoc_reset:file rw_file_perms; + # allow the HAL to call cccdktimesync registered callbacks binder_call(hal_bluetooth_btlinux, vendor_cccdktimesync_app)