You need to sign in or sign up before continuing.
未验证 提交 c9b5b41c 编写于 作者: Z zengyawen 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-abilityAccessCtrl.md.

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 1ab958d1
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
## 导入模块 ## 导入模块
``` ```js
import abilityAccessCtrl from '@ohos.abilityAccessCtrl' import abilityAccessCtrl from '@ohos.abilityAccessCtrl'
``` ```
...@@ -72,6 +72,8 @@ grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFl ...@@ -72,6 +72,8 @@ grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFl
授予应用user grant权限,使用Promise方式异步返回结果。 授予应用user grant权限,使用Promise方式异步返回结果。
此接口为系统接口。
**需要权限:** ohos.permission.GRANT_SENSITIVE_PERMISSIONS **需要权限:** ohos.permission.GRANT_SENSITIVE_PERMISSIONS
**系统能力:** SystemCapability.Security.AccessToken **系统能力:** SystemCapability.Security.AccessToken
...@@ -109,6 +111,8 @@ grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFl ...@@ -109,6 +111,8 @@ grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFl
授予应用user grant权限,使用callback回调异步返回结果。 授予应用user grant权限,使用callback回调异步返回结果。
此接口为系统接口。
**需要权限:** ohos.permission.GRANT_SENSITIVE_PERMISSIONS **需要权限:** ohos.permission.GRANT_SENSITIVE_PERMISSIONS
**系统能力:** SystemCapability.Security.AccessToken **系统能力:** SystemCapability.Security.AccessToken
...@@ -139,6 +143,8 @@ revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionF ...@@ -139,6 +143,8 @@ revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionF
撤销应用user grant权限,使用Promise方式异步返回结果。 撤销应用user grant权限,使用Promise方式异步返回结果。
此接口为系统接口。
**需要权限:** ohos.permission.REVOKE_SENSITIVE_PERMISSIONS **需要权限:** ohos.permission.REVOKE_SENSITIVE_PERMISSIONS
**系统能力:** SystemCapability.Security.AccessToken **系统能力:** SystemCapability.Security.AccessToken
...@@ -175,6 +181,8 @@ revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionF ...@@ -175,6 +181,8 @@ revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionF
撤销应用user grant权限,使用callback回调异步返回结果。 撤销应用user grant权限,使用callback回调异步返回结果。
此接口为系统接口。
**需要权限:** ohos.permission.REVOKE_SENSITIVE_PERMISSIONS **需要权限:** ohos.permission.REVOKE_SENSITIVE_PERMISSIONS
**系统能力:** SystemCapability.Security.AccessToken **系统能力:** SystemCapability.Security.AccessToken
...@@ -204,6 +212,8 @@ getPermissionFlags(tokenID: number, permissionName: string): Promise&lt;number&g ...@@ -204,6 +212,8 @@ getPermissionFlags(tokenID: number, permissionName: string): Promise&lt;number&g
获取指定应用的指定权限的flag,使用Promise方式异步返回结果。 获取指定应用的指定权限的flag,使用Promise方式异步返回结果。
此接口为系统接口。
**需要权限:** ohos.permission.GET_SENSITIVE_PERMISSIONS or GRANT_SENSITIVE_PERMISSIONS or REVOKE_SENSITIVE_PERMISSIONS **需要权限:** ohos.permission.GET_SENSITIVE_PERMISSIONS or GRANT_SENSITIVE_PERMISSIONS or REVOKE_SENSITIVE_PERMISSIONS
**系统能力:** SystemCapability.Security.AccessToken **系统能力:** SystemCapability.Security.AccessToken
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册