INPUT_CONTENT_GRANT_READ_URI_PERMISSION
When this flag is used, the editor will be able to request temporary access permissions to the content URI contained in the InputContentInfoCompat object, in a similar manner that has been recommended in Sharing Files.
Make sure that the content provider owning the Uri sets the grantUriPermissions attribute in its manifest or included the <grant-uri-permissions>
tag.
Supported only on API >= 25.
On API <= 24 devices, IME developers need to ensure that the content URI is accessible only from the target application, for example, by generating a URL with a unique name that others cannot guess. IME developers can also rely on the following information of the target application to do additional access checks in their ContentProvider.
- On API >= 23 packageName is guaranteed to not be spoofed, which can later be compared with getCallingPackage in the ContentProvider.
- getUid is guaranteed to not be spoofed, which can later be compared with getCallingUid in the ContentProvider.