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

Commit 9330cc33 authored by Atneya Nair's avatar Atneya Nair
Browse files

Add audio capture flag to PackageState

Since we are migrating checking this to within SystemServer, this flag
should be accessible in PackageState.

Test: compiles
Bug: 380150343
Flag: EXEMPT trivial
Change-Id: I592b0b66d77f3a382052dfbab0dd3ef10eb21be4
parent 2f33ac5d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -811,6 +811,10 @@ public class PackageSetting extends SettingBase implements PackageStateInternal
                != 0;
    }

    public boolean isAudioPlaybackCaptureAllowed() {
        return (getPrivateFlags() & ApplicationInfo.PRIVATE_FLAG_ALLOW_AUDIO_PLAYBACK_CAPTURE) != 0;
    }

    public SigningDetails getSigningDetails() {
        return signatures.mSigningDetails;
    }
+6 −0
Original line number Diff line number Diff line
@@ -468,6 +468,12 @@ public interface PackageState {
     */
    boolean isVendor();

    /**
     * @see ApplicationInfo#PRIVATE_FLAG_ALLOW_AUDIO_PLAYBACK_CAPTURE
     * @hide
     */
    boolean isAudioPlaybackCaptureAllowed();

    /**
     * The name of the APEX module containing this package, if it is an APEX or APK-in-APEX.
     * @hide