Implement granting of URI permissions from picker.

Now apps can have the user pick a contact and retrieve its data without
needing the READ_CONTACTS permission.

Also fix the intent filters for GET_CONTENT to work correctly (not require
a URI).

This is a manual cherry-pick of
https://android-git.corp.google.com/g/#change,64188

Bug: 3230253
Change-Id: I82ada3e1be000e02aa057a1ff2f64bb97e14bc26
2 files changed