From 74ccbc44fcc363b755bc85f2d9296f09758718e6 Mon Sep 17 00:00:00 2001 From: liuxiyao223 Date: Tue, 1 Aug 2023 18:58:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2GET=5FPHONE=5FNUMBERS=20Signe?= =?UTF-8?q?d-off-by:=20liuxiyao223=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/application-dev/reference/apis/js-apis-sim.md | 4 ++-- zh-cn/application-dev/security/permission-list.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-sim.md b/zh-cn/application-dev/reference/apis/js-apis-sim.md index 0ef2ad336d..d57ae6d1e0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sim.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sim.md @@ -2732,7 +2732,7 @@ getSimTelephoneNumber\(slotId: number, callback: AsyncCallback\\): void **系统接口:** 此接口为系统接口。 -**需要权限**:ohos.permission.GET_TELEPHONY_STATE +**需要权限**:ohos.permission.GET_PHONE_NUMBERS **系统能力**:SystemCapability.Telephony.CoreService @@ -2775,7 +2775,7 @@ getSimTelephoneNumber\(slotId: number\): Promise\ **系统接口:** 此接口为系统接口。 -**需要权限**:ohos.permission.GET_TELEPHONY_STATE +**需要权限**:ohos.permission.GET_PHONE_NUMBERS **系统能力**:SystemCapability.Telephony.CoreService diff --git a/zh-cn/application-dev/security/permission-list.md b/zh-cn/application-dev/security/permission-list.md index c9514d960e..870b58f6e4 100644 --- a/zh-cn/application-dev/security/permission-list.md +++ b/zh-cn/application-dev/security/permission-list.md @@ -100,6 +100,18 @@ **起始版本**:8 +## ohos.permission.GET_PHONE_NUMBERS + +允许应用读取SIM卡MSISDN。 + +**权限级别**:system_basic + +**授权方式**:system_grant + +**ACL使能**:TRUE + +**起始版本**:10 + ## ohos.permission.REQUIRE_FORM 允许应用获取Ability Form。 -- GitLab