From 1fea6b374f612ca8cedc17de873526f0f7c42a4e Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 7 May 2013 18:47:38 -0700 Subject: The default home intent needs CATEGORY_DEFAULT Because the resolve activity always assumes CATEGORY_DEFAULT, there are odd cases where apps with malformed intent filters wind up interfering with users' ability to specify a preferred launcher app. Bug 8805220 Change-Id: I4c1295dc844e442eec6efd603ce11b673879dd5a --- services/java/com/android/server/am/ActivityManagerService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 1d17da967c5d..2adcf01b33e1 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -2298,6 +2298,7 @@ public final class ActivityManagerService extends ActivityManagerNative intent.setComponent(mTopComponent); if (mFactoryTest != SystemServer.FACTORY_TEST_LOW_LEVEL) { intent.addCategory(Intent.CATEGORY_HOME); + intent.addCategory(Intent.CATEGORY_DEFAULT); } ActivityInfo aInfo = resolveActivityInfo(intent, STOCK_PM_FLAGS, userId); -- cgit v1.2.3-59-g8ed1b