grant-uri-permission
来源:互联网 发布:隐藏软件工具 编辑:程序博客网 时间:2024/06/06 09:06
<grant-uri-permission android:path="string" android:pathPattern="string" android:pathPrefix="string" />
<provider>
content:
URI. (The authority part of the URI identifies the content provider.) Granting permission is a way of enabling clients of the provider that don't normally have permission to access its data to overcome that restriction on a one-time basis.If a content provider's grantUriPermissions
attribute is "true
", permission can be granted for any the data under the provider's purview. However, if that attribute is "false
", permission can be granted only to data subsets that are specified by this element. A provider can contain any number of <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'sgrantUriPermissions
attribute.
android:path
android:pathPrefix
android:pathPattern
- A path identifying the data subset or subsets that permission can be granted for. The
path
attribute specifies a complete path; permission can be granted only to the particular data subset identified by that path. ThepathPrefix
attribute specifies the initial part of a path; permission can be granted to all data subsets with paths that share that initial part. ThepathPattern
attribute specifies a complete path, but one that can contain the following wildcards:- An asterisk ('
*
') matches a sequence of 0 to many occurrences of the immediately preceding character. A period followed by an asterisk ("
.*
") matches any sequence of 0 to many characters.
Because '
\
' 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 '*
' would be written as "\\*
" and a literal '\
' would be written as "\\\\
". 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
PATTERN_LITERAL
,PATTERN_PREFIX
, andPATTERN_SIMPLE_GLOB
in thePatternMatcher
class. - An asterisk ('
the grantUriPermissions
attribute of the <provider>
element
<赠款URI的权限 机器人:路径 = “ 字符串 ” 机器人:pathPattern = “ 串 ” 的android:pathPrefix = “ 字符串 ” />
<提供商>
内容:
URI。(URI的授权部分标识内容提供商。)授予的权限是使那些通常没有权限访问其数据,克服一次性基础上,该限制供应商的客户的一种方式。如果内容提供者的grantUriPermissions
属性为“ 真
”,权限可以授予任何提供者的权限下的数据。但是,如果该属性是“ 假
”,许可可以仅由该元素指定的数据的子集授权。提供者可以包含任意数量的<赠款URI的权限>
元素。每一个可以指定只有一条路径(只有三种可能的属性之一)。
有关权限如何授予信息,请参阅 <意图过滤器>
元素的 grantUriPermissions
属性。
机器人:路径
的android:pathPrefix
机器人:pathPattern
- 路径识别数据集或子集的权限可授予。该
路径
属性指定一个完整的路径; 许可只能由该路径标识的特定数据集授予。所述pathPrefix
属性指定的路径的初始部分; 权限可授予与共享,最初的部分路径的所有数据子集。该pathPattern
属性指定一个完整的路径,而是一个可以包含以下通配符:- 星号(“
*
”)匹配的0到紧接在前面的字符的许多事件的序列。 一个时期后跟一个星号(“
*
”)匹配的0至多个字符的任意序列。
因为'
\
'作为当字符串从XML读取(之前被解析为一个模式)转义字符,则需要仔细逃生:例如,一个字面'*
'会被写成“\\ *
“与字面'\
'会被写成”\\\\
“。这基本上是一样的,你需要建造,如果在Java代码中的字符串写什么。有关这些类型的模式的更多信息,请参阅的说明
PATTERN_LITERAL
,PATTERN_PREFIX
和PATTERN_SIMPLE_GLOB
在PatternMatcher
类。 - 星号(“
grantUriPermissions
的属性 <提供商>
元素- <grant-uri-permission>
- grant-uri-permission
- <path-permission> && <grant-uri-permission>
- AndroidManifest.xml——grant-uri-permission
- Android开发-API指南-<grant-uri-permission>
- AndroidManifest.xml文件详解(grant-uri-permission)
- AndroidMainfest.xml详解——<grant-uri-permission>
- Android API Guides 之 App Manifest(9) - <grant-uri-permission>
- Android Manifest标签之data, grant-uri-permission, instrumentation, intent-filter
- Android API Guides---App Manifest <grant-uri-permission> <instrumentation> <intent-filter>
- Grant permission to user in database
- SQL Server 2005 create user and grant permission
- grant
- GRANT
- grant
- application-specific permission settings do not grant Local Activation permission for the COM Server
- 关于Uri的java.lang.SecurityException: Permission Denial错误、(Android权限Uri.parse的详细资料)
- URI
- data
- 代码的坏味道
- hdu 3308-线段树基本区间合并
- 反射初体验
- C#实现冒泡排序
- grant-uri-permission
- 机器学习基础(四十二)—— 常用损失函数的设计
- H5 localStorge
- 最长不含重复的子串长度
- C++学习之旅-{共用体一游}
- 如何组织代码
- AWS的十年创新之路
- instrumentation
- Installing MySQL Server on CentOS