summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorKevin Hufnagle <khufnagle@google.com>2019-08-14 13:16:39 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-14 13:16:39 -0700
commit5f384789893a55bf0df42f63cdafa80eb6ca645d (patch)
treee3160245aae8ac6ef1283f628f4b2ef7db7145ee /core/java
parent671044115062c4ad1450f6a93a7061dcc997c3f8 (diff)
parenta5e5c177d1648dc5b2d8c5a944586a4e15dc4e04 (diff)
Merge "docs: Added desc. of launcher app criteria in Q" into qt-dev
am: a5e5c177d1 Change-Id: I1ce3cc6a79415f1168d514c702b5d4ff673f257e
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/content/pm/LauncherApps.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/content/pm/LauncherApps.java b/core/java/android/content/pm/LauncherApps.java
index 037a149bfe37..d58eb0df7d8d 100644
--- a/core/java/android/content/pm/LauncherApps.java
+++ b/core/java/android/content/pm/LauncherApps.java
@@ -507,6 +507,18 @@ public class LauncherApps {
* {@link Intent#CATEGORY_LAUNCHER}, for a specified user. Result may include
* synthesized activities like app details Activity injected by system.
*
+ * <p>As of <a href="/reference/android/os/Build.VERSION_CODES.html#Q">Android Q</a>, the
+ * launchable activities for a given app are included in the returned list unless the app
+ * satisfies at least one of the following conditions:</p>
+ * <ul>
+ * <li>The app is a system app.</li>
+ * <li>The app doesn't declare any <a href="/guide/topics/permissions/overview">permissions</a>.
+ * </li>
+ * <li>The <code>&lt;application&gt;</code> tag in the app's manifest file doesn't contain any
+ * child elements that represent
+ * <a href="/guide/components/fundamentals#DeclaringComponents">app components</a>.</li>
+ * </ul>
+ *
* @param packageName The specific package to query. If null, it checks all installed packages
* in the profile.
* @param user The UserHandle of the profile.