# PMS - [Overview](#section458050375165625) - [Summary](#section2001005409165625) - [Files](#files) - [Functions](#func-members) - [Details](#section211281568165625) - [Function](#section1914856096165625) - [CheckPermission\(\)](#gaaaf2b952db3d8336c9b2309eaf67d1f7) - [CheckSelfPermission\(\)](#ga099c9ba42ace42091cbd15d9d7f202fb) - [GrantPermission\(\)](#gad6c5889b56e196477152bbf4ce9f462c) - [GrantRuntimePermission\(\)](#ga5e1343c802844acc6b2d95181ca36b66) - [QueryPermission\(\)](#gab279d23a1850f03e73de08b25e734679) - [RevokePermission\(\)](#ga75cad2f174190a59d40e963481ddcbd7) ## **Overview** **Description:** Manages permissions. This module provides interfaces for managing permissions of third-party applications. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Files
CheckPermission (int uid, const char *permissionName) |
Checks whether the caller (generally a third-party application) has a specified permission of a system service API. |
CheckSelfPermission (const char *permissionName) |
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) |
Queries all permissions requested by the application and checks whether these permissions are granted. |
GrantPermission (const char *identifier, const char *permName) |
|
RevokePermission (const char *identifier, const char *permName) |
|
GrantRuntimePermission (int uid, const char *permissionName) |
| uid | Indicates the process uid of the caller. The range is [0, INT_MAX]. |
| permissionName | Indicates the pointer to the permission name. For details, see the developer documentation. |
| permissionName | Indicates the pointer to the permission name. For details, see the developer documentation. |
| identifier | Indicates the pointer to the application bundle name. |
| permName | Indicates the pointer to the permission name. For details, see the developer documentation. |
| uid | Indicates the user ID of the application. The range is [0, INT_MAX]. |
| permissionName | Indicates the pointer to the permission name. For details, see the developer documentation. |
| identifier | Indicates the pointer to the application bundle name. |
| permissions | Indicates the double pointer to the array of permissions. You need to pass the PermissionSaved pointer and release it after finishing using it. |
| permNum | Indicates the pointer to the number of permissions in the array, which is an integer. |
| identifier | Indicates the pointer to the application bundle name. |
| permName | Indicates the pointer to the permission name. For details, see the developer documentation. |