Add minOccurs="0"
For privapp-permissions and oem-permissions elements, some xml files don't need to permission and deny-permission properties. So add the minOccurs="0" for these elements. Test: vts-tradefed run vts -m VtsValidatePermission Bug: 143251304 Change-Id: Ib93a40e646f9c65bd62d23396c12ea31f2d735d8
This commit is contained in:
@@ -126,12 +126,12 @@
|
||||
</xs:complexType>
|
||||
<xs:complexType name="privapp-permissions">
|
||||
<xs:sequence>
|
||||
<xs:element name="permission" maxOccurs="unbounded">
|
||||
<xs:element name="permission" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="deny-permission" maxOccurs="unbounded">
|
||||
<xs:element name="deny-permission" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
@@ -141,12 +141,12 @@
|
||||
</xs:complexType>
|
||||
<xs:complexType name="oem-permissions">
|
||||
<xs:sequence>
|
||||
<xs:element name="permission" maxOccurs="unbounded">
|
||||
<xs:element name="permission" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="deny-permission" maxOccurs="unbounded">
|
||||
<xs:element name="deny-permission" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="name" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
|
||||
Reference in New Issue
Block a user