Allow audioserver to access the package manager

The audioserver needs to know if an app allows its audio to be recorded.
This can not be done from the system server as there are native API that
do not go through it (aaudio, opensles).

Test: adb shell audiorecorder --target /data/file.raw
      play sound
      adb shell dumpsys media.audio_policy | sed -n '/Mix:/,/^$/p'
      adb shell dumpsys media.audio_policy | grep -i 'Package manager'
Bug: 111453086
Signed-off-by: Kevin Rocard <krocard@google.com>
Change-Id: I0a4021f76b5937c6191859892fefaaf47b77967f
This commit is contained in:
Kevin Rocard 2019-02-23 11:41:26 -08:00
parent 1e7a4e984d
commit 25f60574ee

View file

@ -34,6 +34,7 @@ allow audioserver activity_service:service_manager find;
allow audioserver appops_service:service_manager find;
allow audioserver batterystats_service:service_manager find;
allow audioserver external_vibrator_service:service_manager find;
allow audioserver package_native_service:service_manager find;
allow audioserver permission_service:service_manager find;
allow audioserver power_service:service_manager find;
allow audioserver scheduling_policy_service:service_manager find;