device_google_zuma/vendor/hal_bluetooth_btlinux.te
Brian Duddie 858f999657 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
2023-09-27 00:08:19 +00:00

13 lines
567 B
Text

# Allow access to always-on compute device node
allow hal_bluetooth_btlinux aoc_device:chr_file rw_file_perms;
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)