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
This commit is contained in:
Ajay Panicker 2018-02-27 11:43:23 -08:00
parent 969d8cc4dd
commit e32d94064f

View file

@ -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;