openharmony 鸿蒙 app-permissions

2025-06-12 浏览 (1)

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:

  • Open system_grant 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.

  • Open user_grant permissions

    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

    Restricted permissions are system_basic permission 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, 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.

  • 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.

你可能感兴趣的鸿蒙文章

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

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/MdvmWI