Proper PendingIntent.queryIntentComponents implementation

PendingIntent.queryIntentComponents currently does not take the pending
intent creator UID into account when performing component resolution.
This will return incorrect results, since explicit intents with
non-matching intent filter can only be resolved if the sender is the
same UID as the target component.

Bug: 238415222
Bug: 271845008
Test: atest CtsContentTestCases:PackageManagerTest
(cherry picked from
Merged-In: Ib4e1c04c8de4e9bcee35d584dfb213954ec65449
Change-Id: Ib4e1c04c8de4e9bcee35d584dfb213954ec65449
4 files changed