Sanitize alternate intents.

Exclude ineligible alternate intents from cross-profile target
resolution.

Bug: 444443479
Test: manual testing with a test app
Test: new STS tests
Flag: EXEMPT CVE_FIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:224a40d0b2bdc8fb48bd0f4d456e7019f9d7294a
Merged-In: I85ece5179da3f4908870be96174be4ec4fd912e5
Change-Id: I85ece5179da3f4908870be96174be4ec4fd912e5
4 files changed