From 4caeb24fb35c367f34de43b24285e090f8ea79fa Mon Sep 17 00:00:00 2001 From: wuzi Date: Sat, 22 Feb 2025 16:23:54 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzi --- api/@ohos.settings.d.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 02129e5ad5..6b8f51703e 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1077,6 +1077,7 @@ 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. @@ -1125,7 +1126,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 +1140,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 +1154,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,6 +1250,7 @@ declare namespace settings { /** * Get value from settingsdata(synchronous method) * + * @permission 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. @@ -1278,7 +1281,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 +1295,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. -- Gitee From 570c7aeccadcfb1828a4cf83169482a123ca5aa5 Mon Sep 17 00:00:00 2001 From: wuzi Date: Sat, 22 Feb 2025 16:37:38 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzi --- api/@ohos.settings.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 6b8f51703e..4ab97a16f5 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1077,7 +1077,7 @@ declare namespace settings { /** * Get value from settingsdata * - * @permission [USER_SECURE] ohos.permission.MANAGE_SECURE_SETTINGS + * @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. @@ -1126,7 +1126,7 @@ declare namespace settings { /** * Set settingsdata value. * - * @permission ohos.permission.MANAGE_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. @@ -1140,7 +1140,7 @@ declare namespace settings { /** * Set settingsdata value. * - * @permission ohos.permission.MANAGE_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. @@ -1154,8 +1154,8 @@ declare namespace settings { /** * Set settingsdata value. * - * @permission [DEVICE_SHARED, USER_PROPRERTY] ohos.permission.MANAGE_SETTINGS - * or [USER_SECURE] 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. @@ -1250,7 +1250,7 @@ declare namespace settings { /** * Get value from settingsdata(synchronous method) * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission 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. @@ -1265,7 +1265,7 @@ declare namespace settings { /** * Set settingsdata value(synchronous method) * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS + * @permission ohos.permission.MANAGE_SECURE_SETTINGS. * @param { DataAbilityHelper } dataAbilityHelper Indicates dataAbilityHelper instance. * @param { string } name Indicates the name of the character string. * @param { string } value Indicates the value of the character string. @@ -1281,7 +1281,7 @@ declare namespace settings { /** * Set settingsdata value(synchronous method) * - * @permission ohos.permission.MANAGE_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. @@ -1295,8 +1295,8 @@ declare namespace settings { /** * Set settingsdata value(synchronous method) * - * @permission [DEVICE_SHARED, USER_PROPRERTY] ohos.permission.MANAGE_SETTINGS - * or [USER_SECURE] 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. -- Gitee From 94f9cbed35cec896ef5f38ad19be27302d041263 Mon Sep 17 00:00:00 2001 From: wuzi Date: Sat, 22 Feb 2025 17:18:39 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzi --- api/@ohos.settings.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 4ab97a16f5..bf4cc68c33 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1083,6 +1083,7 @@ declare namespace settings { * @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 @@ -1256,6 +1257,7 @@ declare namespace settings { * @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 -- Gitee From 459cec0656993a31ac3065d8643dd5001911c460 Mon Sep 17 00:00:00 2001 From: wuzi Date: Sat, 22 Feb 2025 17:21:39 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzi --- api/@ohos.settings.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index bf4cc68c33..858aa2b5e0 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1251,7 +1251,7 @@ declare namespace settings { /** * Get value from settingsdata(synchronous method) * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS. + * @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. -- Gitee From 55b90f0ef3d5885e56b66e5e5906db3d1aa02f0e Mon Sep 17 00:00:00 2001 From: wuzi Date: Fri, 14 Mar 2025 16:40:23 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuzi --- api/@ohos.settings.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 858aa2b5e0..5c8dbd0f0e 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -1267,7 +1267,7 @@ declare namespace settings { /** * Set settingsdata value(synchronous method) * - * @permission ohos.permission.MANAGE_SECURE_SETTINGS. + * @permission ohos.permission.MANAGE_SECURE_SETTINGS * @param { DataAbilityHelper } dataAbilityHelper Indicates dataAbilityHelper instance. * @param { string } name Indicates the name of the character string. * @param { string } value Indicates the value of the character string. -- Gitee