# pms\_interface.h ## **Overview** **Related Modules:** [PMS](PMS.md) **Description:** Declares interfaces for managing permissions. The interfaces can be used to authenticate native APIs, query, grant, and revoke permissions, and grant runtime permissions. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Functions

Function Name

Description

CheckPermission (int taskID, const char *permissionName)

int 

Checks whether the caller (generally a third-party application) has a specified permission of a system service API.

QueryPermission (const char *identifier, PermissionSaved **permissions, int *permNum)

int 

Queries all permissions requested by the application and checks whether these permissions are granted.

GrantPermission (const char *identifier, const char *permName)

int 

Grants a specified permission to the application.

RevokePermission (const char *identifier, const char *permName)

int 

Revokes a specified permission from the application.

GrantRuntimePermission (int taskID, const char *permissionName)

int 

Grants a specified runtime permission to an application.

RequestPermission (int taskID, const char *permissionName)

int 

Requests a specified permission.