diff --git a/api/@ohos.account.distributedAccount.d.ts b/api/@ohos.account.distributedAccount.d.ts index 38a0fa43bd19d003d967e3f1c7759eefd2c32ec5..ae809f7f65391286b6b70347c0f596fe43235370 100644 --- a/api/@ohos.account.distributedAccount.d.ts +++ b/api/@ohos.account.distributedAccount.d.ts @@ -45,7 +45,7 @@ declare namespace distributedAccount { * * @since 7 * @return The distributed information of the current OS account. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.DISTRIBUTED_DATASYNC */ queryOsAccountDistributedInfo(callback: AsyncCallback): void; queryOsAccountDistributedInfo(): Promise; diff --git a/api/@ohos.account.osAccount.d.ts b/api/@ohos.account.osAccount.d.ts index 703c36b1f37f2cf19e6223ba85f07080dac6bfc9..20707b3af7b297c36ada4ee6bf0dae3c1f099f26 100644 --- a/api/@ohos.account.osAccount.d.ts +++ b/api/@ohos.account.osAccount.d.ts @@ -69,7 +69,7 @@ declare namespace osAccount { * @since 7 * @param localId Indicates the local ID of the OS account. * @return Returns {@code true} if the OS account is activated; returns {@code false} otherwise. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS/ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS */ isOsAccountActived(localId: number, callback: AsyncCallback): void; isOsAccountActived(localId: number): Promise; @@ -121,7 +121,7 @@ declare namespace osAccount { * @param localId Indicates the local ID of the OS account. * @return Returns {@code true} if the OS account has been verified successfully; * returns {@code false} otherwise. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS/ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. */ isOsAccountVerified(localId: number, callback: AsyncCallback): void; isOsAccountVerified(localId?: number): Promise; @@ -169,6 +169,7 @@ declare namespace osAccount { * @param localId Indicates the local ID of the OS account. * @param localName Indicates the local name to set for the OS account. * @return void. + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. * @systemapi Hide this for inner system use. */ setOsAccountName(localId: number, localName: string, callback: AsyncCallback): void; @@ -241,6 +242,7 @@ declare namespace osAccount { * @since 7 * @return Returns a list of OS accounts. * @systemapi Hide this for inner system use. + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. */ queryAllCreatedOsAccounts(callback: AsyncCallback>): void; queryAllCreatedOsAccounts(): Promise>; @@ -298,7 +300,7 @@ declare namespace osAccount { * @since 7 * @param localId Indicates the local ID of the OS account. * @return Returns the OS account information; returns {@code null} if the query fails. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS/ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION. + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION. * @systemapi Hide this for inner system use. */ queryOsAccountById(localId: number, callback: AsyncCallback): void; @@ -325,7 +327,7 @@ declare namespace osAccount { * * @since 7 * @return Returns the DVID if obtained; returns an empty string if no OHOS account has logged in. - * @permission ohos.permission.DISTRIBUTED_DATASYNC. + * @permission ohos.permission.DISTRIBUTED_DATASYNC or ohos.permission.MANAGE_LOCAL_ACCOUNTS */ getDistributedVirtualDeviceId(callback: AsyncCallback): void; getDistributedVirtualDeviceId(): Promise;