blob: 543504764ee385b1d42c08a683c41bb0eeea8d40 [file] [log] [blame]
Sundong Ahne8f894d2019-01-03 11:52:04 +09001<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<!-- TODO: define a targetNamespace. Note that it will break retrocompatibility -->
17<xs:schema version="2.0"
18 elementFormDefault="qualified"
19 attributeFormDefault="unqualified"
20 xmlns:xs="http://www.w3.org/2001/XMLSchema">
21 <xs:element name="permissions">
22 <xs:complexType>
Sundong Ahn560de692019-03-27 15:02:28 +090023 <xs:choice minOccurs="0" maxOccurs="unbounded">
24 <xs:element name="group" type="group"/>
25 <xs:element name="permission" type="permission"/>
26 <xs:element name="assign-permission" type="assign-permission"/>
27 <xs:element name="split-permission" type="split-permission"/>
28 <xs:element name="library" type="library"/>
29 <xs:element name="feature" type="feature"/>
30 <xs:element name="unavailable-feature" type="unavailable-feature"/>
31 <xs:element name="allow-in-power-save-except-idle" type="allow-in-power-save-except-idle"/>
32 <xs:element name="allow-in-power-save" type="allow-in-power-save"/>
33 <xs:element name="allow-in-data-usage-save" type="allow-in-data-usage-save"/>
34 <xs:element name="allow-unthrottled-location" type="allow-unthrottled-location"/>
35 <xs:element name="allow-ignore-location-settings" type="allow-ignore-location-settings"/>
36 <xs:element name="allow-implicit-broadcast" type="allow-implicit-broadcast"/>
37 <xs:element name="app-link" type="app-link"/>
38 <xs:element name="system-user-whitelisted-app" type="system-user-whitelisted-app"/>
39 <xs:element name="system-user-blacklisted-app" type="system-user-blacklisted-app"/>
40 <xs:element name="default-enabled-vr-app" type="default-enabled-vr-app"/>
41 <xs:element name="backup-transport-whitelisted-service" type="backup-transport-whitelisted-service"/>
42 <xs:element name="disabled-until-used-preinstalled-carrier-associated-app" type="disabled-until-used-preinstalled-carrier-associated-app"/>
43 <xs:element name="disabled-until-used-preinstalled-carrier-app" type="disabled-until-used-preinstalled-carrier-app"/>
44 <xs:element name="privapp-permissions" type="privapp-permissions"/>
45 <xs:element name="oem-permissions" type="oem-permissions"/>
46 <xs:element name="hidden-api-whitelisted-app" type="hidden-api-whitelisted-app"/>
47 <xs:element name="allow-association" type="allow-association"/>
48 <xs:element name="bugreport-whitelisted" type="bugreport-whitelisted"/>
Ricky Wai825d3e92019-12-18 15:16:17 +000049 <xs:element name="app-data-isolation-whitelisted-app" type="app-data-isolation-whitelisted-app"/>
Sundong Ahn560de692019-03-27 15:02:28 +090050 </xs:choice>
Sundong Ahne8f894d2019-01-03 11:52:04 +090051 </xs:complexType>
52 </xs:element>
53 <xs:complexType name="group">
54 <xs:attribute name="gid" type="xs:int"/>
55 </xs:complexType>
56 <xs:complexType name="permission">
57 <xs:attribute name="name" type="xs:string"/>
58 </xs:complexType>
59 <xs:complexType name="assign-permission">
60 <xs:attribute name="name" type="xs:string"/>
61 <xs:attribute name="uid" type="xs:int"/>
62 </xs:complexType>
63 <xs:complexType name="split-permission">
Sundong Ahne8f894d2019-01-03 11:52:04 +090064 <xs:sequence>
65 <xs:element name="library" maxOccurs="unbounded">
66 <xs:complexType>
67 <xs:attribute name="name" type="xs:string"/>
68 </xs:complexType>
69 </xs:element>
70 </xs:sequence>
Sundong Ahn046b3e52019-03-27 15:23:25 +090071 <xs:attribute name="name" type="xs:string"/>
72 <xs:attribute name="targetSdk" type="xs:int"/>
Sundong Ahne8f894d2019-01-03 11:52:04 +090073 </xs:complexType>
74 <xs:complexType name="library">
75 <xs:attribute name="name" type="xs:string"/>
76 <xs:attribute name="file" type="xs:string"/>
77 <xs:attribute name="dependency" type="xs:string"/>
78 </xs:complexType>
79 <xs:complexType name="feature">
80 <xs:attribute name="name" type="xs:string"/>
81 <xs:attribute name="notLowRam" type="xs:string"/>
Sundong Ahn51a4e9f2019-03-27 15:14:34 +090082 <xs:attribute name="version" type="xs:int"/>
Sundong Ahne8f894d2019-01-03 11:52:04 +090083 </xs:complexType>
84 <xs:complexType name="unavailable-feature">
85 <xs:attribute name="name" type="xs:string"/>
86 </xs:complexType>
87 <xs:complexType name="allow-in-power-save-except-idle">
88 <xs:attribute name="package" type="xs:string"/>
89 </xs:complexType>
90 <xs:complexType name="allow-in-power-save">
91 <xs:attribute name="package" type="xs:string"/>
92 </xs:complexType>
93 <xs:complexType name="allow-in-data-usage-save">
94 <xs:attribute name="package" type="xs:string"/>
95 </xs:complexType>
96 <xs:complexType name="allow-unthrottled-location">
97 <xs:attribute name="package" type="xs:string"/>
98 </xs:complexType>
99 <xs:complexType name="allow-ignore-location-settings">
100 <xs:attribute name="package" type="xs:string"/>
101 </xs:complexType>
102 <xs:complexType name="allow-implicit-broadcast">
103 <xs:attribute name="action" type="xs:string"/>
104 </xs:complexType>
105 <xs:complexType name="app-link">
106 <xs:attribute name="package" type="xs:string"/>
107 </xs:complexType>
108 <xs:complexType name="system-user-whitelisted-app">
109 <xs:attribute name="package" type="xs:string"/>
110 </xs:complexType>
111 <xs:complexType name="system-user-blacklisted-app">
112 <xs:attribute name="package" type="xs:string"/>
113 </xs:complexType>
114 <xs:complexType name="default-enabled-vr-app">
115 <xs:attribute name="package" type="xs:string"/>
116 <xs:attribute name="class" type="xs:string"/>
117 </xs:complexType>
118 <xs:complexType name="backup-transport-whitelisted-service">
119 <xs:attribute name="service" type="xs:string"/>
120 </xs:complexType>
121 <xs:complexType name="disabled-until-used-preinstalled-carrier-associated-app">
122 <xs:attribute name="package" type="xs:string"/>
123 <xs:attribute name="carrierAppPackage" type="xs:string"/>
124 </xs:complexType>
125 <xs:complexType name="disabled-until-used-preinstalled-carrier-app">
126 <xs:attribute name="package" type="xs:string"/>
127 </xs:complexType>
128 <xs:complexType name="privapp-permissions">
Sundong Ahne8f894d2019-01-03 11:52:04 +0900129 <xs:sequence>
Sundong Ahn33bca5b2019-12-20 16:33:46 +0900130 <xs:element name="permission" minOccurs="0" maxOccurs="unbounded">
Sundong Ahne8f894d2019-01-03 11:52:04 +0900131 <xs:complexType>
132 <xs:attribute name="name" type="xs:string"/>
133 </xs:complexType>
134 </xs:element>
Sundong Ahn33bca5b2019-12-20 16:33:46 +0900135 <xs:element name="deny-permission" minOccurs="0" maxOccurs="unbounded">
Sundong Ahne8f894d2019-01-03 11:52:04 +0900136 <xs:complexType>
137 <xs:attribute name="name" type="xs:string"/>
138 </xs:complexType>
139 </xs:element>
140 </xs:sequence>
Sundong Ahn046b3e52019-03-27 15:23:25 +0900141 <xs:attribute name="package" type="xs:string"/>
Sundong Ahne8f894d2019-01-03 11:52:04 +0900142 </xs:complexType>
143 <xs:complexType name="oem-permissions">
Sundong Ahne8f894d2019-01-03 11:52:04 +0900144 <xs:sequence>
Sundong Ahn33bca5b2019-12-20 16:33:46 +0900145 <xs:element name="permission" minOccurs="0" maxOccurs="unbounded">
Sundong Ahne8f894d2019-01-03 11:52:04 +0900146 <xs:complexType>
147 <xs:attribute name="name" type="xs:string"/>
148 </xs:complexType>
149 </xs:element>
Sundong Ahn33bca5b2019-12-20 16:33:46 +0900150 <xs:element name="deny-permission" minOccurs="0" maxOccurs="unbounded">
Sundong Ahne8f894d2019-01-03 11:52:04 +0900151 <xs:complexType>
152 <xs:attribute name="name" type="xs:string"/>
153 </xs:complexType>
154 </xs:element>
155 </xs:sequence>
Sundong Ahn046b3e52019-03-27 15:23:25 +0900156 <xs:attribute name="package" type="xs:string"/>
Sundong Ahne8f894d2019-01-03 11:52:04 +0900157 </xs:complexType>
158 <xs:complexType name="hidden-api-whitelisted-app">
159 <xs:attribute name="package" type="xs:string"/>
160 </xs:complexType>
161 <xs:complexType name="allow-association">
162 <xs:attribute name="target" type="xs:string"/>
163 <xs:attribute name="allowed" type="xs:string"/>
164 </xs:complexType>
Ricky Wai825d3e92019-12-18 15:16:17 +0000165 <xs:complexType name="app-data-isolation-whitelisted-app">
166 <xs:attribute name="package" type="xs:string"/>
167 </xs:complexType>
Sundong Ahne8f894d2019-01-03 11:52:04 +0900168 <xs:complexType name="bugreport-whitelisted">
169 <xs:attribute name="package" type="xs:string"/>
170 </xs:complexType>
171</xs:schema>