Version: 1.3
语言 : 中文
OpenHarmony permissions in Tuanjie
Request runtime permissions

Declare permissions for an application

OpenHarmony applications declare what permissions they require in their OpenHarmony App module. This page explains how to manage permissions for an OpenHarmony application. For a list of the possible permissions, refer to module.requestPermissions.

You can use one of the following methods to modify the OpenHarmony App module file and manage permissions:

  • Export the project and modify the OpenHarmony App module.json file in Deveco Studio.

Note: Depending on the Player Settings and Tuanjie APIs that the application uses, Tuanjie automatically adds some required permissions to the Tuanjie Library module. For more information, refer to Tuanjie-handled permissions.

Use Deveco Studio

To have complete control over which permissions are in the final OpenHarmony App module file, export the project and edit the OpenHarmony App module in Deveco Studio.

For more information, refer to Edit the OpenHarmony App module in Deveco Studio.

Other resource

OpenHarmony permissions in Tuanjie
Request runtime permissions