Loading core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -12675,6 +12675,7 @@ package android.content.pm { method public boolean isDeviceUpgrading(); method public abstract boolean isInstantApp(); method public abstract boolean isInstantApp(@NonNull String); method @FlaggedApi("android.content.pm.quarantined_enabled") public boolean isPackageQuarantined(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method @FlaggedApi("android.content.pm.stay_stopped") public boolean isPackageStopped(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method public boolean isPackageSuspended(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method public boolean isPackageSuspended(); Loading Loading @@ -12913,6 +12914,7 @@ package android.content.pm { field public static final int MATCH_DIRECT_BOOT_UNAWARE = 262144; // 0x40000 field public static final int MATCH_DISABLED_COMPONENTS = 512; // 0x200 field public static final int MATCH_DISABLED_UNTIL_USED_COMPONENTS = 32768; // 0x8000 field @FlaggedApi("android.content.pm.quarantined_enabled") public static final long MATCH_QUARANTINED_COMPONENTS = 4294967296L; // 0x100000000L field public static final int MATCH_SYSTEM_ONLY = 1048576; // 0x100000 field public static final int MATCH_UNINSTALLED_PACKAGES = 8192; // 0x2000 field public static final long MAXIMUM_VERIFICATION_TIMEOUT = 3600000L; // 0x36ee80L core/java/android/content/pm/PackageManager.java +9 −3 Original line number Diff line number Diff line Loading @@ -1256,8 +1256,10 @@ public abstract class PackageManager { public static final long MATCH_ARCHIVED_PACKAGES = 1L << 32; /** * @hide * Querying flag: always match components of packages in quarantined state. * @see #isPackageQuarantined */ @FlaggedApi(android.content.pm.Flags.FLAG_QUARANTINED_ENABLED) public static final long MATCH_QUARANTINED_COMPONENTS = 0x100000000L; /** Loading Loading @@ -9902,12 +9904,16 @@ public abstract class PackageManager { /** * Query if an app is currently quarantined. * A misbehaving app can be quarantined by e.g. a system of another privileged entity. * Quarantined apps are similar to disabled, but still visible in e.g. Launcher. * Only activities of such apps can still be queried, but not services etc. * Quarantined apps can't be bound to, and won't receive broadcasts. * They can't be resolved, unless {@link #MATCH_QUARANTINED_COMPONENTS} specified. * * @return {@code true} if the given package is quarantined, {@code false} otherwise * @throws NameNotFoundException if the package could not be found. * * @hide */ @FlaggedApi(android.content.pm.Flags.FLAG_QUARANTINED_ENABLED) public boolean isPackageQuarantined(@NonNull String packageName) throws NameNotFoundException { throw new UnsupportedOperationException("isPackageQuarantined not implemented"); } Loading Loading
core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -12675,6 +12675,7 @@ package android.content.pm { method public boolean isDeviceUpgrading(); method public abstract boolean isInstantApp(); method public abstract boolean isInstantApp(@NonNull String); method @FlaggedApi("android.content.pm.quarantined_enabled") public boolean isPackageQuarantined(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method @FlaggedApi("android.content.pm.stay_stopped") public boolean isPackageStopped(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method public boolean isPackageSuspended(@NonNull String) throws android.content.pm.PackageManager.NameNotFoundException; method public boolean isPackageSuspended(); Loading Loading @@ -12913,6 +12914,7 @@ package android.content.pm { field public static final int MATCH_DIRECT_BOOT_UNAWARE = 262144; // 0x40000 field public static final int MATCH_DISABLED_COMPONENTS = 512; // 0x200 field public static final int MATCH_DISABLED_UNTIL_USED_COMPONENTS = 32768; // 0x8000 field @FlaggedApi("android.content.pm.quarantined_enabled") public static final long MATCH_QUARANTINED_COMPONENTS = 4294967296L; // 0x100000000L field public static final int MATCH_SYSTEM_ONLY = 1048576; // 0x100000 field public static final int MATCH_UNINSTALLED_PACKAGES = 8192; // 0x2000 field public static final long MAXIMUM_VERIFICATION_TIMEOUT = 3600000L; // 0x36ee80L
core/java/android/content/pm/PackageManager.java +9 −3 Original line number Diff line number Diff line Loading @@ -1256,8 +1256,10 @@ public abstract class PackageManager { public static final long MATCH_ARCHIVED_PACKAGES = 1L << 32; /** * @hide * Querying flag: always match components of packages in quarantined state. * @see #isPackageQuarantined */ @FlaggedApi(android.content.pm.Flags.FLAG_QUARANTINED_ENABLED) public static final long MATCH_QUARANTINED_COMPONENTS = 0x100000000L; /** Loading Loading @@ -9902,12 +9904,16 @@ public abstract class PackageManager { /** * Query if an app is currently quarantined. * A misbehaving app can be quarantined by e.g. a system of another privileged entity. * Quarantined apps are similar to disabled, but still visible in e.g. Launcher. * Only activities of such apps can still be queried, but not services etc. * Quarantined apps can't be bound to, and won't receive broadcasts. * They can't be resolved, unless {@link #MATCH_QUARANTINED_COMPONENTS} specified. * * @return {@code true} if the given package is quarantined, {@code false} otherwise * @throws NameNotFoundException if the package could not be found. * * @hide */ @FlaggedApi(android.content.pm.Flags.FLAG_QUARANTINED_ENABLED) public boolean isPackageQuarantined(@NonNull String packageName) throws NameNotFoundException { throw new UnsupportedOperationException("isPackageQuarantined not implemented"); } Loading