From 65009eda2e4bc9cf9ece48bba260a7692566459b Mon Sep 17 00:00:00 2001 From: zhangalong Date: Wed, 9 Mar 2022 10:12:34 +0800 Subject: [PATCH] fixed 4439d11 from https://gitee.com/zhang_along/resources/pulls/33 new permission definition for app accounts Signed-off-by:zhang_along Signed-off-by: zhangalong --- systemres/main/config.json | 9 +++++++++ systemres/main/resources/base/element/id_defined.json | 10 ++++++++++ systemres/main/resources/base/element/string.json | 8 ++++++++ systemres/main/resources/zh_CN/element/string.json | 8 ++++++++ 4 files changed, 35 insertions(+) diff --git a/systemres/main/config.json b/systemres/main/config.json index 238342d1..5b03f8cb 100644 --- a/systemres/main/config.json +++ b/systemres/main/config.json @@ -449,6 +449,15 @@ "label": "$string:ohos_lab_manage_local_accounts", "description": "$string:ohos_desc_manage_local_accounts" }, + { + "name": "ohos.permission.GET_ALL_APP_ACCOUNTS", + "grantMode": "system_grant", + "availableLevel": "system_basic", + "provisionEnable": false, + "distributedSceneEnable": false, + "label": "$string:ohos_get_all_app_accounts", + "description": "$string:ohos_desc_get_all_app_accounts" + }, { "name": "ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS", "grantMode": "system_grant", diff --git a/systemres/main/resources/base/element/id_defined.json b/systemres/main/resources/base/element/id_defined.json index a55af045..57e80c44 100644 --- a/systemres/main/resources/base/element/id_defined.json +++ b/systemres/main/resources/base/element/id_defined.json @@ -3760,6 +3760,16 @@ "type": "float", "name":"ohos_fa_text_size_huge", "order":751 + }, + { + "type": "string", + "name": "ohos_get_all_app_accounts", + "order": 752 + }, + { + "type": "string", + "name": "ohos_desc_get_all_app_accounts", + "order": 753 } ] } \ No newline at end of file diff --git a/systemres/main/resources/base/element/string.json b/systemres/main/resources/base/element/string.json index 74ec0537..48eafabb 100644 --- a/systemres/main/resources/base/element/string.json +++ b/systemres/main/resources/base/element/string.json @@ -300,10 +300,18 @@ "name": "ohos_lab_manage_local_accounts", "value": "Manage local accounts" }, + { + "name": "ohos_get_all_app_accounts", + "value": "Get all app accounts" + }, { "name": "ohos_desc_manage_local_accounts", "value": "Allows an application to add, delete, modify, and query local accounts." }, + { + "name": "ohos_desc_get_all_app_accounts", + "value": "Allows an application to get all app accounts." + }, { "name": "ohos_lab_interact_across_local_accounts", "value": "Multi-account mutual access" diff --git a/systemres/main/resources/zh_CN/element/string.json b/systemres/main/resources/zh_CN/element/string.json index 92580a5e..648c427f 100644 --- a/systemres/main/resources/zh_CN/element/string.json +++ b/systemres/main/resources/zh_CN/element/string.json @@ -292,10 +292,18 @@ "name": "ohos_lab_manage_local_accounts", "value": "管理本地账户" }, + { + "name": "ohos_get_all_app_accounts", + "value": "获取所有应用帐号" + }, { "name": "ohos_desc_manage_local_accounts", "value": "允许应用对本地账户的增删改查。" }, + { + "name": "ohos_desc_get_all_app_accounts", + "value": "允许获取所有应用帐号信息。" + }, { "name": "ohos_lab_interact_across_local_accounts", "value": "多账户间相互访问" -- Gitee