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

Commit a89d7f87 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Making api isPackageSuspended public

This allows apps to query suspended state of other apps.

Test: Builds, boots
existing tests:
atest GtsSuspendAppsTestCases

Bug: 112486945
Change-Id: I2c46f1d573df592ece06ef1dd5386338e1d21f00
parent 1ff73729
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11241,6 +11241,7 @@ package android.content.pm {
    method public abstract boolean hasSystemFeature(java.lang.String, int);
    method public abstract boolean isInstantApp();
    method public abstract boolean isInstantApp(java.lang.String);
    method public boolean isPackageSuspended(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException;
    method public boolean isPackageSuspended();
    method public abstract boolean isPermissionRevokedByPolicy(java.lang.String, java.lang.String);
    method public abstract boolean isSafeMode();
+0 −1
Original line number Diff line number Diff line
@@ -1115,7 +1115,6 @@ package android.content.pm {
    method public abstract void grantRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle);
    method public abstract int installExistingPackage(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException;
    method public abstract int installExistingPackage(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException;
    method public boolean isPackageSuspended(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException;
    method public java.util.List<android.content.pm.ResolveInfo> queryBroadcastReceiversAsUser(android.content.Intent, int, android.os.UserHandle);
    method public abstract void registerDexModule(java.lang.String, android.content.pm.PackageManager.DexModuleRegisterCallback);
    method public abstract void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
+1 −3
Original line number Diff line number Diff line
@@ -5647,10 +5647,8 @@ public abstract class PackageManager {
     * @return {@code true} if the given package is suspended, {@code false} otherwise
     * @throws NameNotFoundException if the package could not be found.
     *
     * @see #setPackagesSuspended(String[], boolean, PersistableBundle, PersistableBundle, String)
     * @hide
     * @see #isPackageSuspended()
     */
    @SystemApi
    public boolean isPackageSuspended(String packageName) throws NameNotFoundException {
        throw new UnsupportedOperationException("isPackageSuspended not implemented");
    }