The way to request permissions varies, depending on its applicable scope and authorization mode. Determine the appropriate way to request permissions based on actual situation.
The system provides the following permissions:
The permissions are available to all applications. The permissions requested by an application are automatically granted when the application is installed.
The permissions are available to all applications and granted by the user. The permissions requested by an application must be authorized by the user in a dialog box during the running of the application.
Restricted permissions are system_basic permissions that can be granted to normal applications.
Permissions for enterprise applications
The permissions are available only to normal enterprise applications, mobile device management (MDM) applications. The applications with the distribution type (app-distribution-type) of enterprise_normal (normal enterprise application) or enterprise_mdm (MDM application) can request this type of permissions. When requesting such a permission, you need to determine the authorization mode first.
Permissions for MDM applications
The permissions are available only to MDM applications. When requesting such a permission, you need to determine the authorization mode first.