[RESTRICT AUTOMERGE] Do not resume activity if behind a translucent task
The top-focusable activity resides in the RESUMED state while the app
process is newly created and attached. The behavior may enable UI
hijacking attacks against apps implementing authentication.
This CL disallows the system to resume the activity for the case if it
is not visible or is occluded by other translucent tasks.
Test: atest CtsWindowManagerDeviceTestCases:ActivityLifecycleTests
(cherry picked from commit 0a4f661ec6a18a0ddc47b6d9280a10b8d16c9457)
2 files changed