page.title=<grant-uri-permission> parent.title=The AndroidManifest.xml File parent.link=manifest-intro.html @jd:body
<grant-uri-permission android:path="string" android:pathPattern="string" android:pathPrefix="string" />
<provider>
If a content provider's grantUriPermissions
attribute is "{@code true}", permission can be granted for any the data under
the provider's purview. However, if that attribute is "{@code false}", permission
can be granted only to data subsets that are specified by this element.
A provider can contain any number of {@code <grant-uri-permission>} elements.
Each one can specify only one path (only one of the three possible attributes).
For information on how permission is granted, see the
<intent-filter>
element's
grantUriPermissions
attribute.
A period followed by an asterisk ("{@code .*}") matches any sequence of 0 to many characters.
Because '{@code \}' is used as an escape character when the string is read from XML (before it is parsed as a pattern), you will need to double-escape: For example, a literal '{@code *}' would be written as "{@code \\*}" and a literal '{@code \}' would be written as "{@code \\\\}". This is basically the same as what you would need to write if constructing the string in Java code.
For more information on these types of patterns, see the descriptions of {@link android.os.PatternMatcher#PATTERN_LITERAL}, {@link android.os.PatternMatcher#PATTERN_PREFIX}, and {@link android.os.PatternMatcher#PATTERN_SIMPLE_GLOB} in the {@link android.os.PatternMatcher} class.
grantUriPermissions
attribute of the
<provider>
element