diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index a0a6b2abafeef8e2c88bb600337284ca92bd7a74..60ef25c819f82db70555e4bdb38711e71b38a74f 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -154,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 */ @@ -173,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 */ @@ -184,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 */ @@ -191,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 */ @@ -198,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 */ @@ -205,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 */ @@ -240,6 +246,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 +254,7 @@ declare namespace call { function getCallWaitingStatus(slotId: number): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 7 */ @@ -276,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 */ @@ -316,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 */ @@ -326,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 */ @@ -346,6 +362,7 @@ declare namespace call { function separateConference(callId: number): Promise; /** + * @permission ohos.permission.GET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -353,6 +370,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 */ @@ -360,6 +378,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 +386,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 */ @@ -432,6 +452,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 */ @@ -439,6 +460,7 @@ declare namespace call { function enableImsSwitch(slotId: number): Promise; /** + * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. * @since 8 */ @@ -809,4 +831,4 @@ declare namespace call { } } -export default call; \ No newline at end of file +export default call; diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index 6c15700681d72bad69ebcd75f15e3b33db20b47a..6b7aacf15b8e92f58ed9b3bc8f3e368e8da64e12 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 475772a1af5de4499f2b86a86c88e9b4691d002a..d12361514b621879a21f690e19634872828442c5 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -399,6 +399,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 */