- uri
- The uri that is being checked.
- pid
- The process ID being checked against. Must be > 0.
- uid
- The user ID being checked against. A uid of 0 is the root user, which will pass every permission check.
- modeFlags
- The type of access to grant. May be one or both of Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION.
Documentation for this section has not yet been entered.
Determine whether a particular process and user ID has been granted permission to access a specific URI. This only checks for permissions that have been explicitly granted -- if the given process/uid has more general access to the URI's content provider then this check will always fail.