From 6701bc6f59fa2e9d292e835a20928f27bc71ca10 Mon Sep 17 00:00:00 2001 From: zyjhandsome Date: Wed, 28 Dec 2022 14:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=8A=E8=AE=BF=E9=97=AE=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=94=B3=E8=AF=B7=E3=80=8B>=20=E3=80=8AACL?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=A3=B0=E6=98=8E=E3=80=8B=E4=B8=AD=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E4=B8=80=E4=B8=AA`system=5Fcore`=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E6=9D=83=E9=99=90=E7=9A=84=E7=A4=BA=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zyjhandsome --- zh-cn/application-dev/security/accesstoken-guidelines.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/security/accesstoken-guidelines.md b/zh-cn/application-dev/security/accesstoken-guidelines.md index 54f6e9db5d..a09c9ab3e9 100644 --- a/zh-cn/application-dev/security/accesstoken-guidelines.md +++ b/zh-cn/application-dev/security/accesstoken-guidelines.md @@ -96,14 +96,15 @@ ## ACL权限声明 -应用在申请`system_basic`等级权限时,高于应用默认的`normal`等级。当应用需要申请权限项的等级高于应用默认的等级时,需要通过ACL方式进行声明使用。例如应用在申请访问用户公共目录下音乐类型的文件,需要申请` ohos.permission.WRITE_AUDIO`权限,该权限为`system_basic`等级,需要将该权限项配置到[HarmonyAppProvision配置文件](app-provision-structure.md)的`acl`字段中。 +应用在申请`system_basic`等级权限时,高于应用默认的`normal`等级。当应用需要申请权限项的等级高于应用默认的等级时,需要通过ACL方式进行声明使用。例如应用在申请访问用户公共目录下音乐类型的文件,需要申请` ohos.permission.WRITE_AUDIO`权限,该权限为`system_basic`等级;以及应用在申请截取屏幕图像功能,该权限为`system_core`等级,需要申请` ohos.permission.CAPTURE_SCREEN`权限。此时需要将相关权限项配置到[HarmonyAppProvision配置文件](app-provision-structure.md)的`acl`字段中。 ```json { // ... "acls":{ "allowed-acls":[ - "ohos.permission.WRITE_AUDIO" + "ohos.permission.WRITE_AUDIO", + "ohos.permission.CAPTURE_SCREEN" ] } } -- GitLab