Update CallerUriReadAccessValidator to use the launching package name.

This is, essentially, asking the Framework whether the calling package
is able to grant the permission for the URI to itself. It aligns with
how the method is used by System UI in other places. This is also a more
stable way to perform the check.

Bug: b/435188844
Test: `sts-tradefed run sts-dynamic-develop -m CtsSecurityBulletinHostTestCases -t android.security.cts.Bug_435188844`
Flag: EXEMPT CVE_FIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:407215278800da119297dbf90dcfd7980725cfed
Merged-In: I287cb5a32e24d4d6cbecf65271ae5159695ab477
Change-Id: I287cb5a32e24d4d6cbecf65271ae5159695ab477
1 file changed
tree: 50e57e9ea1666c6b92e8d63a5c23792622d559f8
  1. aconfig/
  2. java/
  3. tests/
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. lint-baseline.xml
  8. OWNERS
  9. PREUPLOAD.cfg
  10. proguard.flags
  11. README.md
  12. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder