1<?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="exceptions"> 22 <xs:complexType> 23 <xs:sequence> 24 <xs:element name="exception" type="exception" maxOccurs="unbounded"/> 25 </xs:sequence> 26 </xs:complexType> 27 </xs:element> 28 <xs:complexType name="exception"> 29 <xs:sequence> 30 <xs:element name="permission" type="permission" maxOccurs="unbounded"/> 31 </xs:sequence> 32 <xs:attribute name="package" type="xs:string"/> 33 <xs:attribute name="sha256-cert-digest" type="xs:string"/> 34 <xs:attribute name="brand" type="xs:string"/> 35 </xs:complexType> 36 <xs:complexType name="permission"> 37 <xs:attribute name="name" type="xs:string"/> 38 <xs:attribute name="fixed" type="xs:boolean"/> 39 </xs:complexType> 40</xs:schema> 41