Allow audioserver to access Bluetooth Properties
Now that Bluetooth supports delay reporting, audioserver needs
access to Bluetooth Properties in order to determine whether the
feature is enabled or disabled.
Bug: 32755225
Test: Enable the property and see that there was no error accessing it
Change-Id: I519d49deb2df4efb3cc2cce9c6d497db18b50c13
diff --git a/private/audioserver.te b/private/audioserver.te
index b6deb28..a0779b3 100644
--- a/private/audioserver.te
+++ b/private/audioserver.te
@@ -36,6 +36,9 @@
allow audioserver power_service:service_manager find;
allow audioserver scheduling_policy_service:service_manager find;
+# Grant access to the "persist.bluetooth.enabledelayreports" property
+get_prop(audioserver, bluetooth_prop);
+
# Grant access to audio files to audioserver
allow audioserver audio_data_file:dir ra_dir_perms;
allow audioserver audio_data_file:file create_file_perms;