16e7c69efSopenharmony_ci# Access Permission Control
26e7c69efSopenharmony_ci
36e7c69efSopenharmony_ci### Introduction
46e7c69efSopenharmony_ci
56e7c69efSopenharmony_ciThis sample shows how `@ohos.abilityAccessCtrl` works to implement app permission control. The display effect is as follows:
66e7c69efSopenharmony_ci
76e7c69efSopenharmony_ci![](screenshots/device/main_en.png) ![](screenshots/device/dialog_en.png)
86e7c69efSopenharmony_ci
96e7c69efSopenharmony_ci### Concepts
106e7c69efSopenharmony_ci
116e7c69efSopenharmony_ciApplication access control: provides application permission management, including authentication, authorization, and authorization revocation.
126e7c69efSopenharmony_ci
136e7c69efSopenharmony_ci### Required Permissions
146e7c69efSopenharmony_ci
156e7c69efSopenharmony_ci- ohos.permission.GET_SENSITIVE_PERMISSIONS
166e7c69efSopenharmony_ci
176e7c69efSopenharmony_ci- ohos.permission.REVOKE_SENSITIVE_PERMISSIONS
186e7c69efSopenharmony_ci
196e7c69efSopenharmony_ci- ohos.permission.GRANT_SENSITIVE_PERMISSIONS
206e7c69efSopenharmony_ci
216e7c69efSopenharmony_ci- ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
226e7c69efSopenharmony_ci
236e7c69efSopenharmony_ci- ohos.permission.GET_BUNDLE_INFO
246e7c69efSopenharmony_ci
256e7c69efSopenharmony_ci- ohos.permission.MICROPHONE
266e7c69efSopenharmony_ci
276e7c69efSopenharmony_ci
286e7c69efSopenharmony_ci### Usage
296e7c69efSopenharmony_ci
306e7c69efSopenharmony_ci1. Open the app. A dialog box is displayed, asking you whether to grant the permission. Touch **Cancel**.
316e7c69efSopenharmony_ci
326e7c69efSopenharmony_ci2. The permission check screen is displayed. Touch the **Check Permission** button. A message is displayed, indicating that the permission is not granted.
336e7c69efSopenharmony_ci
346e7c69efSopenharmony_ci3. Close the app and open it again. A dialog box is displayed, asking you whether to grant the permission. Touch **OK**.
356e7c69efSopenharmony_ci
366e7c69efSopenharmony_ci4. The permission check screen is displayed. Touch the **Check Permission** button. A message is displayed, indicating that the permission has been granted.
376e7c69efSopenharmony_ci
386e7c69efSopenharmony_ci5. Close the app and open it again. No dialog box is displayed. Touch the **Check Permission** button. A message is displayed, indicating that the permission has been granted.
396e7c69efSopenharmony_ci
406e7c69efSopenharmony_ci### Constraints
416e7c69efSopenharmony_ci
426e7c69efSopenharmony_ci- This sample can only be run on standard-system devices.
436e7c69efSopenharmony_ci
446e7c69efSopenharmony_ci- Before building a project, you need to run **Make Module 'entry'**.
456e7c69efSopenharmony_ci
466e7c69efSopenharmony_ci- This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run.
476e7c69efSopenharmony_ci
486e7c69efSopenharmony_ci- The ohos.permission.GET_SENSITIVE_PERMISSIONS, ohos.permission.REVOKE_SENSITIVE_PERMISSIONS, and ohos.permission.GRANT_SENSITIVE_PERMISSIONS permissions used in this sample are of the system_core level. You need to configure signatures for these permissions. For details about the application permission level (APL), see [Permission List](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md).
49