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:5f7b8f6bb890d39ed3370599048b4c117a74d6f3
Merged-In: I287cb5a32e24d4d6cbecf65271ae5159695ab477
Change-Id: I287cb5a32e24d4d6cbecf65271ae5159695ab477
1 file changed
tree: 3a3c4cd574898bb939dbb89ea4a4df5bb698f802
  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