目录

Development Preparations

Preparing the environment:

Applying for Qualification

Before you start developing an app, configure your project and app information in AppGallery Connect. including:

Requesting Permissions

Before applying for permissions, ensure that the basic principles for using permissions are met. Then, apply for the development permissions required by the app under requestPermissions in the module.json5 configuration file of the module of the project.

App Capability Required Permission
Hierarchical file management

ohos.permission.FILE_GUARD_MANAGER

ohos.permission.SET_FILE_GUARD_POLICY

Enterprise recovery key ohos.permission.ENTERPRISE_RECOVERY_KEY

For example:

"requestPermissions": [
  {
    "name": "ohos.permission.FILE_GUARD_MANAGER"
  },
  {
    "name": "ohos.permission.SET_FILE_GUARD_POLICY"
  },
  {
    "name": "ohos.permission.ENTERPRISE_RECOVERY_KEY"
  }
]