Split visibility check

Fix the visibility check condition and create a separate return case for
persistent system processes.

Bug: 296478951
Test: atest BackgroundActivityLaunchTest
Change-Id: If3a594f7f1d7d82a39d143500cbe2b101da9eaaf
1 file changed