From 5bbb8fe00a2e30259a57a6de88e7e1397206176c Mon Sep 17 00:00:00 2001 From: Patrick Baumann Date: Fri, 15 May 2020 16:24:12 -0700 Subject: [PATCH] Doc update re use of MATCH_UNINSTALLED flag This change updates the docs for the MATCH_UNINSTALLED flag to note that without the QUERY_ALL_PACKAGES permission, uninstalled packages will not be returned. Bug: 149846504 Test: builds Change-Id: Id0c5b7f29172bd334dc1b2a32ce1f4eb7b1f0bd3 --- core/java/android/content/pm/PackageManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 1e9cddbb684ad..a4fae5d88e83d 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -383,6 +383,9 @@ public abstract class PackageManager { *

* Note: this flag may cause less information about currently installed * applications to be returned. + *

+ * Note: use of this flag requires the android.permission.QUERY_ALL_PACKAGES + * permission to see uninstalled packages. */ public static final int MATCH_UNINSTALLED_PACKAGES = 0x00002000;