From e32d94064f4a9a6b358c10086132624ca3ab46ca Mon Sep 17 00:00:00 2001 From: Ajay Panicker <apanicke@google.com> Date: Tue, 27 Feb 2018 11:43:23 -0800 Subject: [PATCH] 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 --- private/audioserver.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private/audioserver.te b/private/audioserver.te index b6deb280e..a0779b383 100644 --- a/private/audioserver.te +++ b/private/audioserver.te @@ -36,6 +36,9 @@ allow audioserver permission_service:service_manager find; 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; -- GitLab