Fix security vulnerability allowing apps to start from background

Bug: 317048338
Test: Using the steps in b/317048338#comment12
Change-Id: Ia91199fdb23beed27bde687fdca8fe5d3a5a4759
2 files changed