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:

+ * + * * @param packageName The specific package to query. If null, it checks all installed packages * in the profile. * @param user The UserHandle of the profile.