diff --git a/core/java/android/content/pm/LauncherApps.java b/core/java/android/content/pm/LauncherApps.java index 037a149bfe371..d58eb0df7d8d9 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. * + *
As of Android Q, the + * launchable activities for a given app are included in the returned list unless the app + * satisfies at least one of the following conditions:
+ *<application> tag in the app's manifest file doesn't contain any
+ * child elements that represent
+ * app components.