Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33bca5b1 authored by Sundong Ahn's avatar Sundong Ahn
Browse files

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
parent c0c28a26
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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>