Mitigate the app visibility gap

Combining the two SecurityException check in verifyCallingPackage
to mitigate the potential information leakage.

Bug: 205707373
Test: atest CtsAdminTestCases
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: manually using the PoC in the buganizer to ensure the symptom
      no longer exists.
Change-Id: Iebc4a8c0daf6a31a3863aed4e9d13d2a3ad28b78
1 file changed