From c86905b31f59a5b8db7238feebd70bc535e659f1 Mon Sep 17 00:00:00 2001 From: Ytai Ben-Tsvi Date: Thu, 26 Mar 2020 16:00:51 -0700 Subject: [PATCH] Allow audio HAL to access application shared memory Bug: 151190218 Change-Id: I430ebe60e192803a3cc699477db83d1a33f8c62e Merged-In: I430ebe60e192803a3cc699477db83d1a33f8c62e --- public/hal_audio.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/hal_audio.te b/public/hal_audio.te index bb9eec42c..d54b2b250 100644 --- a/public/hal_audio.te +++ b/public/hal_audio.te @@ -17,6 +17,9 @@ allow hal_audio shell:fifo_file write; allow hal_audio dumpstate:fd use; allow hal_audio dumpstate:fifo_file write; +# Needed to allow sound trigger hal to access shared memory from apps. +allow hal_audio_server appdomain:fd use; + # allow hal audio to use vnbinder vndbinder_use(hal_audio)