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

Commit e5d10051 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add permission and permission.xsd"

parents d05e13d0 e8f894d0
Loading
Loading
Loading
Loading

core/xsd/Android.bp

0 → 100644
+6 −0
Original line number Diff line number Diff line
xsd_config {
    name: "permission",
    srcs: ["permission.xsd"],
    api_dir: "schema",
    package_name: "com.android.xml.permission",
}
+166 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project

         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at

                    http://www.apache.org/licenses/LICENSE-2.0

         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
-->
<!-- TODO: define a targetNamespace. Note that it will break retrocompatibility -->
<xs:schema version="2.0"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="permissions">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="group" type="group" maxOccurs="unbounded"/>
                <xs:element name="permission" type="permission" maxOccurs="unbounded"/>
                <xs:element name="assign-permission" type="assign-permission" maxOccurs="unbounded"/>
                <xs:element name="split-permission" type="split-permission" maxOccurs="unbounded"/>
                <xs:element name="library" type="library" maxOccurs="unbounded"/>
                <xs:element name="feature" type="feature" maxOccurs="unbounded"/>
                <xs:element name="unavailable-feature" type="unavailable-feature" maxOccurs="unbounded"/>
                <xs:element name="allow-in-power-save-except-idle" type="allow-in-power-save-except-idle" maxOccurs="unbounded"/>
                <xs:element name="allow-in-power-save" type="allow-in-power-save" maxOccurs="unbounded"/>
                <xs:element name="allow-in-data-usage-save" type="allow-in-data-usage-save" maxOccurs="unbounded"/>
                <xs:element name="allow-unthrottled-location" type="allow-unthrottled-location" maxOccurs="unbounded"/>
                <xs:element name="allow-ignore-location-settings" type="allow-ignore-location-settings" maxOccurs="unbounded"/>
                <xs:element name="allow-implicit-broadcast" type="allow-implicit-broadcast" maxOccurs="unbounded"/>
                <xs:element name="app-link" type="app-link" maxOccurs="unbounded"/>
                <xs:element name="system-user-whitelisted-app" type="system-user-whitelisted-app" maxOccurs="unbounded"/>
                <xs:element name="system-user-blacklisted-app" type="system-user-blacklisted-app" maxOccurs="unbounded"/>
                <xs:element name="default-enabled-vr-app" type="default-enabled-vr-app" maxOccurs="unbounded"/>
                <xs:element name="backup-transport-whitelisted-service" type="backup-transport-whitelisted-service" maxOccurs="unbounded"/>
                <xs:element name="disabled-until-used-preinstalled-carrier-associated-app" type="disabled-until-used-preinstalled-carrier-associated-app" maxOccurs="unbounded"/>
                <xs:element name="disabled-until-used-preinstalled-carrier-app" type="disabled-until-used-preinstalled-carrier-app" maxOccurs="unbounded"/>
                <xs:element name="privapp-permissions" type="privapp-permissions" maxOccurs="unbounded"/>
                <xs:element name="oem-permissions" type="oem-permissions" maxOccurs="unbounded"/>
                <xs:element name="hidden-api-whitelisted-app" type="hidden-api-whitelisted-app" maxOccurs="unbounded"/>
                <xs:element name="allow-association" type="allow-association" maxOccurs="unbounded"/>
                <xs:element name="bugreport-whitelisted" type="bugreport-whitelisted" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:complexType name="group">
        <xs:attribute name="gid" type="xs:int"/>
    </xs:complexType>
    <xs:complexType name="permission">
        <xs:attribute name="name" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="assign-permission">
        <xs:attribute name="name" type="xs:string"/>
        <xs:attribute name="uid" type="xs:int"/>
    </xs:complexType>
    <xs:complexType name="split-permission">
        <xs:attribute name="name" type="xs:string"/>
        <xs:attribute name="targetSdk" type="xs:int"/>
        <xs:sequence>
            <xs:element name="library" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="library">
        <xs:attribute name="name" type="xs:string"/>
        <xs:attribute name="file" type="xs:string"/>
        <xs:attribute name="dependency" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="feature">
        <xs:attribute name="name" type="xs:string"/>
        <xs:attribute name="notLowRam" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="unavailable-feature">
        <xs:attribute name="name" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-in-power-save-except-idle">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-in-power-save">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-in-data-usage-save">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-unthrottled-location">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-ignore-location-settings">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-implicit-broadcast">
        <xs:attribute name="action" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="app-link">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="system-user-whitelisted-app">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="system-user-blacklisted-app">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="default-enabled-vr-app">
        <xs:attribute name="package" type="xs:string"/>
        <xs:attribute name="class" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="backup-transport-whitelisted-service">
        <xs:attribute name="service" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="disabled-until-used-preinstalled-carrier-associated-app">
        <xs:attribute name="package" type="xs:string"/>
        <xs:attribute name="carrierAppPackage" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="disabled-until-used-preinstalled-carrier-app">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="privapp-permissions">
        <xs:attribute name="package" type="xs:string"/>
        <xs:sequence>
            <xs:element name="permission" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string"/>
                </xs:complexType>
            </xs:element>
            <xs:element name="deny-permission" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="oem-permissions">
        <xs:attribute name="package" type="xs:string"/>
        <xs:sequence>
            <xs:element name="permission" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string"/>
                </xs:complexType>
            </xs:element>
            <xs:element name="deny-permission" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="hidden-api-whitelisted-app">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="allow-association">
        <xs:attribute name="target" type="xs:string"/>
        <xs:attribute name="allowed" type="xs:string"/>
    </xs:complexType>
    <xs:complexType name="bugreport-whitelisted">
        <xs:attribute name="package" type="xs:string"/>
    </xs:complexType>
</xs:schema>
+1 −0
Original line number Diff line number Diff line
Please see the [README](https://android.googlesource.com/platform/system/tools/xsdc/+/refs/heads/master/README.md) for details regarding the Configfile as API.
+242 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package com.android.xml.permission {

  public class AllowAssociation {
    ctor public AllowAssociation();
    method public String getAllowed();
    method public String getTarget();
    method public void setAllowed(String);
    method public void setTarget(String);
  }

  public class AllowIgnoreLocationSettings {
    ctor public AllowIgnoreLocationSettings();
    method public String get_package();
    method public void set_package(String);
  }

  public class AllowImplicitBroadcast {
    ctor public AllowImplicitBroadcast();
    method public String getAction();
    method public void setAction(String);
  }

  public class AllowInDataUsageSave {
    ctor public AllowInDataUsageSave();
    method public String get_package();
    method public void set_package(String);
  }

  public class AllowInPowerSave {
    ctor public AllowInPowerSave();
    method public String get_package();
    method public void set_package(String);
  }

  public class AllowInPowerSaveExceptIdle {
    ctor public AllowInPowerSaveExceptIdle();
    method public String get_package();
    method public void set_package(String);
  }

  public class AllowUnthrottledLocation {
    ctor public AllowUnthrottledLocation();
    method public String get_package();
    method public void set_package(String);
  }

  public class AppLink {
    ctor public AppLink();
    method public String get_package();
    method public void set_package(String);
  }

  public class AssignPermission {
    ctor public AssignPermission();
    method public String getName();
    method public int getUid();
    method public void setName(String);
    method public void setUid(int);
  }

  public class BackupTransportWhitelistedService {
    ctor public BackupTransportWhitelistedService();
    method public String getService();
    method public void setService(String);
  }

  public class BugreportWhitelisted {
    ctor public BugreportWhitelisted();
    method public String get_package();
    method public void set_package(String);
  }

  public class DefaultEnabledVrApp {
    ctor public DefaultEnabledVrApp();
    method public String get_class();
    method public String get_package();
    method public void set_class(String);
    method public void set_package(String);
  }

  public class DisabledUntilUsedPreinstalledCarrierApp {
    ctor public DisabledUntilUsedPreinstalledCarrierApp();
    method public String get_package();
    method public void set_package(String);
  }

  public class DisabledUntilUsedPreinstalledCarrierAssociatedApp {
    ctor public DisabledUntilUsedPreinstalledCarrierAssociatedApp();
    method public String getCarrierAppPackage();
    method public String get_package();
    method public void setCarrierAppPackage(String);
    method public void set_package(String);
  }

  public class Feature {
    ctor public Feature();
    method public String getName();
    method public String getNotLowRam();
    method public void setName(String);
    method public void setNotLowRam(String);
  }

  public class Group {
    ctor public Group();
    method public int getGid();
    method public void setGid(int);
  }

  public class HiddenApiWhitelistedApp {
    ctor public HiddenApiWhitelistedApp();
    method public String get_package();
    method public void set_package(String);
  }

  public class Library {
    ctor public Library();
    method public String getDependency();
    method public String getFile();
    method public String getName();
    method public void setDependency(String);
    method public void setFile(String);
    method public void setName(String);
  }

  public class OemPermissions {
    ctor public OemPermissions();
    method public java.util.List<com.android.xml.permission.OemPermissions.DenyPermission> getDenyPermission();
    method public java.util.List<com.android.xml.permission.OemPermissions.Permission> getPermission();
    method public String get_package();
    method public void set_package(String);
  }

  public static class OemPermissions.DenyPermission {
    ctor public OemPermissions.DenyPermission();
    method public String getName();
    method public void setName(String);
  }

  public static class OemPermissions.Permission {
    ctor public OemPermissions.Permission();
    method public String getName();
    method public void setName(String);
  }

  public class Permission {
    ctor public Permission();
    method public String getName();
    method public void setName(String);
  }

  public class Permissions {
    ctor public Permissions();
    method public java.util.List<com.android.xml.permission.AllowAssociation> getAllowAssociation();
    method public java.util.List<com.android.xml.permission.AllowIgnoreLocationSettings> getAllowIgnoreLocationSettings();
    method public java.util.List<com.android.xml.permission.AllowImplicitBroadcast> getAllowImplicitBroadcast();
    method public java.util.List<com.android.xml.permission.AllowInDataUsageSave> getAllowInDataUsageSave();
    method public java.util.List<com.android.xml.permission.AllowInPowerSave> getAllowInPowerSave();
    method public java.util.List<com.android.xml.permission.AllowInPowerSaveExceptIdle> getAllowInPowerSaveExceptIdle();
    method public java.util.List<com.android.xml.permission.AllowUnthrottledLocation> getAllowUnthrottledLocation();
    method public java.util.List<com.android.xml.permission.AppLink> getAppLink();
    method public java.util.List<com.android.xml.permission.AssignPermission> getAssignPermission();
    method public java.util.List<com.android.xml.permission.BackupTransportWhitelistedService> getBackupTransportWhitelistedService();
    method public java.util.List<com.android.xml.permission.BugreportWhitelisted> getBugreportWhitelisted();
    method public java.util.List<com.android.xml.permission.DefaultEnabledVrApp> getDefaultEnabledVrApp();
    method public java.util.List<com.android.xml.permission.DisabledUntilUsedPreinstalledCarrierApp> getDisabledUntilUsedPreinstalledCarrierApp();
    method public java.util.List<com.android.xml.permission.DisabledUntilUsedPreinstalledCarrierAssociatedApp> getDisabledUntilUsedPreinstalledCarrierAssociatedApp();
    method public java.util.List<com.android.xml.permission.Feature> getFeature();
    method public java.util.List<com.android.xml.permission.Group> getGroup();
    method public java.util.List<com.android.xml.permission.HiddenApiWhitelistedApp> getHiddenApiWhitelistedApp();
    method public java.util.List<com.android.xml.permission.Library> getLibrary();
    method public java.util.List<com.android.xml.permission.OemPermissions> getOemPermissions();
    method public java.util.List<com.android.xml.permission.Permission> getPermission();
    method public java.util.List<com.android.xml.permission.PrivappPermissions> getPrivappPermissions();
    method public java.util.List<com.android.xml.permission.SplitPermission> getSplitPermission();
    method public java.util.List<com.android.xml.permission.SystemUserBlacklistedApp> getSystemUserBlacklistedApp();
    method public java.util.List<com.android.xml.permission.SystemUserWhitelistedApp> getSystemUserWhitelistedApp();
    method public java.util.List<com.android.xml.permission.UnavailableFeature> getUnavailableFeature();
  }

  public class PrivappPermissions {
    ctor public PrivappPermissions();
    method public java.util.List<com.android.xml.permission.PrivappPermissions.DenyPermission> getDenyPermission();
    method public java.util.List<com.android.xml.permission.PrivappPermissions.Permission> getPermission();
    method public String get_package();
    method public void set_package(String);
  }

  public static class PrivappPermissions.DenyPermission {
    ctor public PrivappPermissions.DenyPermission();
    method public String getName();
    method public void setName(String);
  }

  public static class PrivappPermissions.Permission {
    ctor public PrivappPermissions.Permission();
    method public String getName();
    method public void setName(String);
  }

  public class SplitPermission {
    ctor public SplitPermission();
    method public java.util.List<com.android.xml.permission.SplitPermission.Library> getLibrary();
    method public String getName();
    method public int getTargetSdk();
    method public void setName(String);
    method public void setTargetSdk(int);
  }

  public static class SplitPermission.Library {
    ctor public SplitPermission.Library();
    method public String getName();
    method public void setName(String);
  }

  public class SystemUserBlacklistedApp {
    ctor public SystemUserBlacklistedApp();
    method public String get_package();
    method public void set_package(String);
  }

  public class SystemUserWhitelistedApp {
    ctor public SystemUserWhitelistedApp();
    method public String get_package();
    method public void set_package(String);
  }

  public class UnavailableFeature {
    ctor public UnavailableFeature();
    method public String getName();
    method public void setName(String);
  }

  public class XmlParser {
    ctor public XmlParser();
    method public static com.android.xml.permission.Permissions read(java.io.InputStream) throws javax.xml.datatype.DatatypeConfigurationException, java.io.IOException, org.xmlpull.v1.XmlPullParserException;
    method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
    method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
  }

}
+0 −0

Empty file added.

Loading