harmony 鸿蒙Application Permissions

  • 2025-06-12
  • 浏览 (3)

Application Permissions

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 and granted by the system. 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 permission that can be granted to normal applications.

The permissions are available only to normal enterprise applications, mobile device management (MDM) applications, and system 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.

The permissions are available only to MDM applications. When requesting such a permission, you need to determine the authorization mode first.

The permissions for system applications are classified into the following types:

  1. system_grant permissions available to system applications via ACL:

    The permissions are authorized by the system and can be requested via ACL. The ACL allows a system application or system service to have permissions beyond its Ability Privilege Level (APL). The requested permissions will be automatically granted when the application is installed.

  2. system_grant non-ACL permissions for system applications:

    The permissions cannot be requsted via ACL. You need to quey the application’s APL and determine whether the application can request the permissions. The requested permissions will be automatically granted when the application is installed.

  3. user_grant permissions available to system applications via ACL:

    The permissions can be requested via ACL and must be authorized by the user. After an application requests this type of permissions via ACL, the permissions must be authorized by the user in a dialog box during the running of the application.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Application Access Control

harmony 鸿蒙Access Control Overview

harmony 鸿蒙Application Permission Groups

harmony 鸿蒙Application Permission Management Overview

harmony 鸿蒙Requesting Restricted Permissions

harmony 鸿蒙Declaring Permissions

harmony 鸿蒙Workflow for Requesting Permissions

harmony 鸿蒙Requesting One-Time User Authorization

harmony 鸿蒙Using PasteButton

harmony 鸿蒙Open user_grant Permissions

0  赞