Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e45eb318 authored by Kevin Rocard's avatar Kevin Rocard
Browse files

Expose allowAudioPlaybackCapture to PackageManagerNative



Audio playback has both c++ and java API.
The flag is needed in the audio policy service in c++ to know if the app
can be captured by other apps.

Bug: 119500128
Test: dumpsys media.audio_policy
Change-Id: I949b5e31039b024a34a9646a18586cff5f8807ab
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent f8902d28
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -54,4 +54,9 @@ interface IPackageManagerNative {

    long getVersionCodeForPackage(in String packageName);

    /**
     * Return if each app, identified by its package name allows its audio to be recorded.
     * Unknown packages are mapped to false.
     */
    boolean[] isAudioPlaybackCaptureAllowed(in @utf8InCpp String[] packageNames);
}