From 05e12dba34981ee86e3a899d61f94c4b2411b826 Mon Sep 17 00:00:00 2001
From: Mikhail Naganov <mnaganov@google.com>
Date: Fri, 6 Apr 2018 14:52:15 -0700
Subject: [PATCH] Add shell:fifo_file permission for audioserver

Bug: 73405145
Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioRecordTest#testRecordNoDataForIdleUids
Change-Id: I09bdb74c9ecc317ea090643635ca26165efa423a
(cherry picked from commit c5815891f87eee9fd4d1442aecfa6fb60bdf3ad6)
Merged-In: I09bdb74c9ecc317ea090643635ca26165efa423a
---
 private/audioserver.te | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/private/audioserver.te b/private/audioserver.te
index b7d5320e2..471fcbed2 100644
--- a/private/audioserver.te
+++ b/private/audioserver.te
@@ -52,9 +52,10 @@ not_full_treble(`allow audioserver audio_device:chr_file rw_file_perms;')
 # For A2DP bridge which is loaded directly into audioserver
 unix_socket_connect(audioserver, bluetooth, bluetooth)
 
-# Allow shell commands from ADB for CTS testing/dumping
+# Allow shell commands from ADB and shell for CTS testing/dumping
 allow audioserver adbd:fd use;
 allow audioserver adbd:unix_stream_socket { read write };
+allow audioserver shell:fifo_file { read write };
 
 # Allow shell commands from ADB for CTS testing/dumping
 userdebug_or_eng(`
-- 
GitLab