From 1a4e0b998030bb86196559947f417ee6fe117644 Mon Sep 17 00:00:00 2001 From: Kenny Guy Date: Wed, 23 Apr 2014 21:00:45 +0100 Subject: Fix bug with getLauncherActivities ignoring packageName. Change-Id: Ica5817378a24cb4b68e2c99e37cd214d3fde8ba4 --- services/core/java/com/android/server/pm/LauncherAppsService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/pm/LauncherAppsService.java b/services/core/java/com/android/server/pm/LauncherAppsService.java index 27c7b39c6e7d..6030d4d2d40d 100644 --- a/services/core/java/com/android/server/pm/LauncherAppsService.java +++ b/services/core/java/com/android/server/pm/LauncherAppsService.java @@ -144,6 +144,7 @@ public class LauncherAppsService extends ILauncherApps.Stub { final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); + mainIntent.setPackage(packageName); long ident = Binder.clearCallingIdentity(); try { List apps = mPm.queryIntentActivitiesAsUser(mainIntent, 0, -- cgit v1.2.3-59-g8ed1b