pms_interface.h
Overview
Related Modules:
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
CheckPermission (int taskID, 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 taskID, const char permissionName) |
|
RequestPermission (int taskID, const char permissionName) |