Commit Message: - Adds the API to PackageManager (PM) to allow checking for resolved activity for an intent with a specific type. - Addresses a security vulnerability where the intent could declare its own type after the check. - Prevents the intent type from being checked twice by using the new API in . - Updates other call sites of to pass the resolved type from the intent. - Checks the launch package instead of the calling package. - Sanitizes intent selector and received intent. Bug ID: 403565650, 407763772, 397216638 Test: Manually tested Cherry-Picked From: Link to original commit Files Changed: - - - - -