Skip to content
Snippets Groups Projects
Commit b54d87f8 authored by Joel Galenson's avatar Joel Galenson
Browse files

Allow audioserver to access audio_device on non-Treble devices.

This should fix audio on non-Treble devices.

Bug: 75949883
Test: Built policy.
Merged-In: I90a4648aaf975d59be36afd5f62c88a015af10f7
Change-Id: I90a4648aaf975d59be36afd5f62c88a015af10f7
(cherry picked from commit 6e8bfa2d)
parent 5fbec4b6
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,9 @@ allow audioserver audio_data_file:file create_file_perms; ...@@ -46,6 +46,9 @@ allow audioserver audio_data_file:file create_file_perms;
# allow access to ALSA MMAP FDs for AAudio API # allow access to ALSA MMAP FDs for AAudio API
allow audioserver audio_device:chr_file { read write }; allow audioserver audio_device:chr_file { read write };
not_full_treble(`allow audioserver audio_device:dir r_dir_perms;')
not_full_treble(`allow audioserver audio_device:chr_file rw_file_perms;')
# For A2DP bridge which is loaded directly into audioserver # For A2DP bridge which is loaded directly into audioserver
unix_socket_connect(audioserver, bluetooth, bluetooth) unix_socket_connect(audioserver, bluetooth, bluetooth)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment