Improve intent:// handling when the user clicks on an intent link #7382
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Task/Issue URL:
Description
This PR improves intent validation logic by considering the package parameter when resolving activities. This is a follow up on the fix implemented in this PR: #7379
When the user is in a custom tab and clicks on a link that has an intent url, if there is no app to handle that intent, we are still considering it as an app link.
This is done because in that case there is a user initiated action and not a redirect. The current logic is not taking that scenarion into consideration. This improves the way this is handled, as instead of showing the error page, it open the google play store for that app.
This covers the edge case when the user is on a webpage that has an intent embeded in a link and the intent has a package but it cannot be handled by any app on the device.
Steps to test this PR
External link handling
<button onclick="window.open('intent://open/#Intent;scheme=dd;package=com.airbnb.android;end', '_syste')">Open other APP in STORE</button>UI changes