Avoid putting a process with system dialog to cached state
There could be a non-persistent process showing a system dialog
(only platform signature permission INTERNAL_SYSTEM_WINDOW can use it).
With not excluding TYPE_SYSTEM_DIALOG
by onWindowSurfaceVisibilityChanged, it can utilize setHasOverlayUi
to keep the process in active state.
This doesn't change isSystemAlertWindowType because other places
may use it to handle permission checking.
Bug: 349049402
Flag: EXEMPT bugfix
Test: Create a test app with permission INTERNAL_SYSTEM_WINDOW and
show a TYPE_SYSTEM_DIALOG window without any other components.
`adb shell dumpsys activity lru` should not show the process
with cached state.
Change-Id: I6cb8bad5afd5a1311210645f784dd4d3fdc22c23
Loading
Please register or sign in to comment