From d6e9c94908055486cde47c6c1442535cb2085544 Mon Sep 17 00:00:00 2001 From: Phil Burk <philburk@google.com> Date: Tue, 18 Apr 2017 14:57:41 -0700 Subject: [PATCH] sepolicy: allow AAudio apps to use FDs from the audio HAL The API does not expose the FD directly. But they are used by libaaudio.so linked with the app. Needed for low latency audio. Bug: 37167970 Test: NativeOboe touch to tone latency app Change-Id: I92372eff44d856e9aff399dc9c64fd18524fdc44 Signed-off-by: Phil Burk <philburk@google.com> --- private/app.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private/app.te b/private/app.te index a9d89649e..f1bf1fca3 100644 --- a/private/app.te +++ b/private/app.te @@ -279,6 +279,9 @@ get_prop({ appdomain -isolated_app }, hwservicemanager_prop); # Allow app access to mediacodec (IOMX HAL) binder_call({ appdomain -isolated_app }, mediacodec) +# Allow AAudio apps to use shared memory file descriptors from the HAL +allow { appdomain -isolated_app } hal_audio:fd use; + # Allow app to access shared memory created by camera HAL1 allow { appdomain -isolated_app } hal_camera:fd use; -- GitLab