In startActivityForAttachedApplicationIfNeeded of RootWindowContainer.java there is a possible way to overlay an app that believes it's still in the foreground when it is not due to a race condition. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is needed for exploitation.Product: AndroidVersions: Android-10 Android-11 Android-12 Android-12LAndroid ID: A-211481342