diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 02129e5ad597c0d01f70946bdf682fd2f7eb0141..5c8dbd0f0ee0e72e257a3bdf3de7c540a5e89508 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1077,11 +1077,13 @@ declare namespace settings { /** * Get value from settingsdata * + * @permission [USER_SECURE] ohos.permission.MANAGE_SECURE_SETTINGS. * @param { Context } context - Indicates the Context used to access the database. * @param { string } name - Indicates the name of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @returns { Promise } Returns the value of the character string in the domain if any is found; returns {@code * null} otherwise. + * @throws { BusinessError } 201 - Permission denied. * @syscap SystemCapability.Applications.Settings.Core * @StageModelOnly * @since 11 @@ -1125,7 +1127,7 @@ declare namespace settings { /** * Set settingsdata value. * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission ohos.permission.MANAGE_SETTINGS. * @param { Context } context - Indicates Context or dataAbilityHelper instance. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. @@ -1139,7 +1141,7 @@ declare namespace settings { /** * Set settingsdata value. * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission ohos.permission.MANAGE_SETTINGS. * @param { Context } context - Indicates Context or dataAbilityHelper instance. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. @@ -1153,7 +1155,8 @@ declare namespace settings { /** * Set settingsdata value. * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission [DEVICE_SHARED, USER_PROPRERTY] ohos.permission.MANAGE_SETTINGS. + * or [USER_SECURE] ohos.permission.MANAGE_SECURE_SETTINGS. * @param { Context } context - Indicates Context instance. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. @@ -1248,11 +1251,13 @@ declare namespace settings { /** * Get value from settingsdata(synchronous method) * + * @permission [USER_SECURE] ohos.permission.MANAGE_SECURE_SETTINGS. * @param { Context } context - Indicates Context instance * @param { string } name - Indicates the name of the character string. * @param { string } defValue - Indicates the default value of the character string. * @param { string } domainName - Indicates the name of the domain name to set. * @returns { string } Returns settingsdata value. + * @throws { BusinessError } 201 - Permission denied. * @syscap SystemCapability.Applications.Settings.Core * @StageModelOnly * @since 11 @@ -1278,7 +1283,7 @@ declare namespace settings { /** * Set settingsdata value(synchronous method) * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission ohos.permission.MANAGE_SETTINGS. * @param { Context } context - Indicates Context or dataAbilityHelper instance. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string. @@ -1292,7 +1297,8 @@ declare namespace settings { /** * Set settingsdata value(synchronous method) * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission [DEVICE_SHARED, USER_PROPRERTY] ohos.permission.MANAGE_SETTINGS. + * or [USER_SECURE] ohos.permission.MANAGE_SECURE_SETTINGS. * @param { Context } context - Indicates Context instance. * @param { string } name - Indicates the name of the character string. * @param { string } value - Indicates the value of the character string.