From 705172b4385d2d7c95f41e23fe0f1f2e8ddbd6cc Mon Sep 17 00:00:00 2001 From: huangyufei Date: Wed, 28 Sep 2022 20:22:02 +0800 Subject: [PATCH 1/5] =?UTF-8?q?call=E6=A8=A1=E5=9D=97=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.telephony.call.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index a0a6b2abaf..8bcfc1e10c 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -240,6 +240,7 @@ declare namespace call { function getCallIdListForConference(callId: number): Promise>; /** + * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 7 */ @@ -247,6 +248,7 @@ declare namespace call { function getCallWaitingStatus(slotId: number): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 7 */ @@ -360,6 +362,7 @@ declare namespace call { function setCallRestriction(slotId: number, info: CallRestrictionInfo): Promise; /** + * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -367,6 +370,7 @@ declare namespace call { function getCallTransferInfo(slotId: number, type: CallTransferType): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -809,4 +813,4 @@ declare namespace call { } } -export default call; \ No newline at end of file +export default call; -- Gitee From 1eff9c3d88dfde6c862723110e5d3ba27dd1d14f Mon Sep 17 00:00:00 2001 From: huangyufei Date: Thu, 29 Sep 2022 19:19:54 +0800 Subject: [PATCH 2/5] =?UTF-8?q?dts=E6=96=87=E4=BB=B6=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.telephony.call.d.ts | 7 +++++++ api/@ohos.telephony.radio.d.ts | 2 ++ api/@ohos.telephony.sim.d.ts | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index 8bcfc1e10c..b901752492 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -63,6 +63,7 @@ declare namespace call { * {@code CallState#CALL_STATE_OFFHOOK}. * In other cases, the system returns {@code CallState#CALL_STATE_IDLE}. * + * @permission ohos.permission.GET_TELEPHONY_STATE * @param callback Returns the call state. */ function getCallState(callback: AsyncCallback): void; @@ -95,6 +96,7 @@ declare namespace call { /** * Checks whether a phone number is on the emergency number list. * + * @permission ohos.permission.SET_TELEPHONY_STATE * @param phoneNumber Indicates the phone number to check. * @param callback Returns {@code true} if the phone number is on the emergency number list; * returns {@code false} otherwise. @@ -348,6 +350,7 @@ declare namespace call { function separateConference(callId: number): Promise; /** + * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -355,6 +358,7 @@ declare namespace call { function getCallRestrictionStatus(slotId: number, type: CallRestrictionType): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -436,6 +440,7 @@ declare namespace call { function updateImsCallMode(callId: number, mode: ImsCallMode): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -443,6 +448,7 @@ declare namespace call { function enableImsSwitch(slotId: number): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -450,6 +456,7 @@ declare namespace call { function disableImsSwitch(slotId: number): Promise; /** + * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index 6c15700681..6b7aacf15b 100644 --- a/api/@ohos.telephony.radio.d.ts +++ b/api/@ohos.telephony.radio.d.ts @@ -67,6 +67,7 @@ declare namespace radio { /** * Proactively requests to update location information. * + * @permission ohos.permission.LOCATION * @param { number } [ slotId ] - indicates the card slot index number. * @param { AsyncCallback } callback - the callback of sendUpdateCellLocationRequest. * @systemapi @@ -78,6 +79,7 @@ declare namespace radio { /** * Proactively requests to update location information. * + * @permission ohos.permission.LOCATION * @param { number } [ slotId ] - indicates the card slot index number. * @returns { Promise } the promise returned by the function. * @systemapi diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 475772a1af..2b7fa8996e 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -26,6 +26,7 @@ declare namespace sim { /** * Checks whether the SIM card in a specified slot is activated. * + * @permission ohos.permission.GET_TELEPHONY_STATE * @param slotId Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @param callback Returns {@code true} if the SIM card is activated; returns {@code false} otherwise. @@ -96,6 +97,7 @@ declare namespace sim { /** * Obtains the state of the SIM card in a specified slot. * + * @permission ohos.permission.GET_TELEPHONY_STATE * @param slotId Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @param callback Returns one of the following SIM card states: @@ -222,6 +224,7 @@ declare namespace sim { /** * Checks whether a SIM card is inserted in a specified slot. * + * @permission ohos.permission.GET_TELEPHONY_STATE * @param slotId Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param callback Returns true if a SIM card is inserted; return false otherwise. @@ -399,6 +402,7 @@ declare namespace sim { function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; /** + * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ -- Gitee From f26aa1e1093b13d2f68374586260f5a572bd5fa1 Mon Sep 17 00:00:00 2001 From: huangyufei Date: Fri, 30 Sep 2022 11:47:55 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=8E=BB=E6=8E=89IsEmergencyPhoneNumber?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.telephony.call.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index b901752492..aae19e5801 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -96,7 +96,6 @@ declare namespace call { /** * Checks whether a phone number is on the emergency number list. * - * @permission ohos.permission.SET_TELEPHONY_STATE * @param phoneNumber Indicates the phone number to check. * @param callback Returns {@code true} if the phone number is on the emergency number list; * returns {@code false} otherwise. -- Gitee From 98f659d5ec8c1400d7a0ad0d84b3c2da94b22965 Mon Sep 17 00:00:00 2001 From: huangyufei Date: Fri, 30 Sep 2022 15:30:23 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=8F=96=E6=B6=88hasSimCard,getSimState?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.telephony.sim.d.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 2b7fa8996e..5099cd57bc 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -97,7 +97,6 @@ declare namespace sim { /** * Obtains the state of the SIM card in a specified slot. * - * @permission ohos.permission.GET_TELEPHONY_STATE * @param slotId Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @param callback Returns one of the following SIM card states: @@ -224,7 +223,6 @@ declare namespace sim { /** * Checks whether a SIM card is inserted in a specified slot. * - * @permission ohos.permission.GET_TELEPHONY_STATE * @param slotId Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param callback Returns true if a SIM card is inserted; return false otherwise. -- Gitee From 72eec530cc546db5e744e140a54ed6a5e9fd77da Mon Sep 17 00:00:00 2001 From: huangyufei Date: Tue, 11 Oct 2022 17:18:30 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=92=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.telephony.call.d.ts | 16 ++++++++++++++-- api/@ohos.telephony.sim.d.ts | 1 - 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index aae19e5801..60ef25c819 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -63,7 +63,6 @@ declare namespace call { * {@code CallState#CALL_STATE_OFFHOOK}. * In other cases, the system returns {@code CallState#CALL_STATE_IDLE}. * - * @permission ohos.permission.GET_TELEPHONY_STATE * @param callback Returns the call state. */ function getCallState(callback: AsyncCallback): void; @@ -155,6 +154,7 @@ declare namespace call { * Hangups the foreground call. * * @param callId Indicates the identifier of the call to hangup. + * @permission ohos.permission.ANSWER_CALL * @systemapi Hide this for inner system use. * @since 7 */ @@ -174,6 +174,7 @@ declare namespace call { * * @param callId Indicates the identifier of the call to reject. * @param options Indicates the text message to reject. + * @permission ohos.permission.ANSWER_CALL * @systemapi Hide this for inner system use. * @since 7 */ @@ -185,6 +186,7 @@ declare namespace call { * Rejects the incoming call without callId. * * @param options Indicates the text message to reject. + * @permission ohos.permission.ANSWER_CALL * @systemapi Hide this for inner system use. * @since 9 */ @@ -192,6 +194,7 @@ declare namespace call { function reject(options: RejectMessageOptions, callback: AsyncCallback): void; /** + * @permission ohos.permission.ANSWER_CALL * @systemapi Hide this for inner system use. * @since 7 */ @@ -199,6 +202,7 @@ declare namespace call { function holdCall(callId: number): Promise; /** + * @permission ohos.permission.ANSWER_CALL * @systemapi Hide this for inner system use. * @since 7 */ @@ -206,6 +210,7 @@ declare namespace call { function unHoldCall(callId: number): Promise; /** + * @permission ohos.permission.ANSWER_CALL * @systemapi Hide this for inner system use. * @since 7 */ @@ -279,36 +284,42 @@ declare namespace call { function isInEmergencyCall(): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 7 */ function on(type: 'callDetailsChange', callback: Callback): void; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 7 */ function off(type: 'callDetailsChange', callback?: Callback): void; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ function on(type: 'callEventChange', callback: Callback): void; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ function off(type: 'callEventChange', callback?: Callback): void; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ function on(type: 'callDisconnectedCause', callback: Callback): void; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -319,6 +330,7 @@ declare namespace call { * * @param type Indicates the observer type. * @param callback Return the result of MMI code. + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 9 */ @@ -329,6 +341,7 @@ declare namespace call { * * @param type Indicates the observer type. * @param callback Return the result of MMI code. + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 9 */ @@ -455,7 +468,6 @@ declare namespace call { function disableImsSwitch(slotId: number): Promise; /** - * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 5099cd57bc..d12361514b 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -26,7 +26,6 @@ declare namespace sim { /** * Checks whether the SIM card in a specified slot is activated. * - * @permission ohos.permission.GET_TELEPHONY_STATE * @param slotId Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @param callback Returns {@code true} if the SIM card is activated; returns {@code false} otherwise. -- Gitee