AOSP -- WindowManager: No home screen found for Intent

I’m trying to bring my work up to date with the current master branch of AOSP, and I’m running into the following error, which is somewhat perplexing since there don’t seem to be any significant results on any search engines.

10-07 23:54:22.136   557  1184 E WindowManager: No home screen found for Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x100 }
10-07 23:54:22.136   557  1184 E WindowManager: java.lang.Throwable
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.RootWindowContainer.resolveHomeActivity(RootWindowContainer.java:1577)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.RootWindowContainer.startHomeOnTaskDisplayArea(RootWindowContainer.java:1519)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.RootWindowContainer.resumeHomeActivity(RootWindowContainer.java:1677)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.ActivityStack.resumeNextFocusableActivityWhenStackIsEmpty(ActivityStack.java:1994)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:1559)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:1511)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities(RootWindowContainer.java:2337)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities(RootWindowContainer.java:2286)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.ActivityRecord.destroyed(ActivityRecord.java:2997)
10-07 23:54:22.136   557  1184 E WindowManager: 	at com.android.server.wm.ActivityTaskManagerService.activityDestroyed(ActivityTaskManagerService.java:1906)
10-07 23:54:22.136   557  1184 E WindowManager: 	at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1982)
10-07 23:54:22.136   557  1184 E WindowManager: 	at android.os.Binder.execTransactInternal(Binder.java:1162)
10-07 23:54:22.136   557  1184 E WindowManager: 	at android.os.Binder.execTransact(Binder.java:1126)

The error comes from here; https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/server/wm/RootWindowContainer.java#1577

Anyone have any ideas? Maybe @jstultz ?

Sorry, I don’t right off. From a brief look at it, it seems like the code is looking for a package that it isn’t finding. You might want to compare the product packages lists from cuttlefish or db845c/hikey960?

Maybe check etc/permissions/android.software.xml to ensure you’ve got the line:

    <feature name="android.software.home_screen" />

Thanks. I think that helped!

Something strange is definitely going on. I do have that line, but I get this interesting situation;

db820c:/ # pm query-activities --brief -a android.intent.action.MAIN -c android.intent.category.HOME
No activities found
db820c:/ #

So its not picking up the launcher, which is installed.

New Android versions are always lots of fun :slight_smile: