Enforce intents to match intent filters.

When an app registers an exported component in its manifest and adds an <intent-filter>, the component can be started by any intent - even those that do not match the intent filter. This has proven to be something that many developers find counterintuitive. Without checking the intent when the component is started, in some circumstances this can allow 3P apps to trigger internal-only functionality.

Bug: 161252188
Test: atest CtsContentTestCases:PackageManagerTest
Change-Id: Id37422d09db37b22bb5ee82bc1f829c5a33b3a9d
5 files changed