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

Commit e23fab0b authored by Yegor Malyshev's avatar Yegor Malyshev Committed by Automerger Merge Worker
Browse files

Merge "Make ApplicationInfo.isAudioPlaybackCaptureAllowed() public" into main am: 3349e645

parents 9c287dbe 3349e645
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -12163,6 +12163,7 @@ package android.content.pm {
    method public int getMemtagMode();
    method public int getMemtagMode();
    method public int getNativeHeapZeroInitialized();
    method public int getNativeHeapZeroInitialized();
    method public int getRequestRawExternalStorageAccess();
    method public int getRequestRawExternalStorageAccess();
    method @FlaggedApi("android.content.pm.audio_playback_capture_allowance") public boolean isAudioPlaybackCaptureAllowed();
    method public boolean isProfileable();
    method public boolean isProfileable();
    method public boolean isProfileableByShell();
    method public boolean isProfileableByShell();
    method public boolean isResourceOverlay();
    method public boolean isResourceOverlay();
+1 −2
Original line number Original line Diff line number Diff line
@@ -2327,9 +2327,8 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
     * Whether an app allows its playback audio to be captured by other apps.
     * Whether an app allows its playback audio to be captured by other apps.
     *
     *
     * @return {@code true} if the app indicates that its audio can be captured by other apps.
     * @return {@code true} if the app indicates that its audio can be captured by other apps.
     *
     * @hide
     */
     */
    @FlaggedApi(Flags.FLAG_AUDIO_PLAYBACK_CAPTURE_ALLOWANCE)
    public boolean isAudioPlaybackCaptureAllowed() {
    public boolean isAudioPlaybackCaptureAllowed() {
        return (privateFlags & PRIVATE_FLAG_ALLOW_AUDIO_PLAYBACK_CAPTURE) != 0;
        return (privateFlags & PRIVATE_FLAG_ALLOW_AUDIO_PLAYBACK_CAPTURE) != 0;
    }
    }
+9 −0
Original line number Original line Diff line number Diff line
@@ -284,3 +284,12 @@ flag {
    description: "Feature flag to enable the feature to retrieve package info without installation with a file descriptor."
    description: "Feature flag to enable the feature to retrieve package info without installation with a file descriptor."
    bug: "340879905"
    bug: "340879905"
}
}

flag {
    name: "audio_playback_capture_allowance"
    is_exported: true
    namespace: "package_manager_service"
    description: "Feature flag to enable the feature to retrieve info about audio playback capture allowance at manifest level."
    bug: "362425551"
    is_fixed_read_only: true
}
 No newline at end of file