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

Commit 475f9a3d authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Make MATCH_ANY_USER system api

to allow for some privileged apps to use it.

Also fixed the javadoc to mention the correct permission.

Test: API already exercised by Settings and PackageInstaller
Bug: 31000380
Change-Id: I5fc810dfe9f8d2b64d01bbaaa0bd26ebef4e8de1
parent 7169dfd0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10527,6 +10527,7 @@ package android.content.pm {
    field public static final int INTENT_FILTER_VERIFICATION_SUCCESS = 1; // 0x1
    field public static final int MASK_PERMISSION_FLAGS = 255; // 0xff
    field public static final int MATCH_ALL = 131072; // 0x20000
    field public static final int MATCH_ANY_USER = 4194304; // 0x400000
    field public static final int MATCH_DEFAULT_ONLY = 65536; // 0x10000
    field public static final int MATCH_DIRECT_BOOT_AWARE = 524288; // 0x80000
    field public static final int MATCH_DIRECT_BOOT_UNAWARE = 262144; // 0x40000
+2 −1
Original line number Diff line number Diff line
@@ -436,9 +436,10 @@ public abstract class PackageManager {

    /**
     * Allows querying of packages installed for any user, not just the specific one. This flag
     * is only meant for use by apps that have INTERACT_ACROSS_USERS_FULL permission.
     * is only meant for use by apps that have INTERACT_ACROSS_USERS permission.
     * @hide
     */
    @SystemApi
    public static final int MATCH_ANY_USER = 0x00400000;

    /**