From 312afc0f51c87af5bac4f2819d245e0fb54e89b5 Mon Sep 17 00:00:00 2001 From: wuxiaodan Date: Thu, 14 Nov 2024 16:48:53 +0800 Subject: [PATCH] wxd 1114 Signed-off-by: wuxiaodan --- .../client/hap/entry/src/main/config.json | 8 ++++---- .../entry/src/main/resources/base/element/string.json | 6 +++++- .../client/hap/entry/src/ohosTest/config.json | 8 ++++---- .../src/ohosTest/resources/base/element/string.json | 7 +++++-- .../server/entry/src/main/module.json | 10 +++++----- .../entry/src/main/resources/base/element/string.json | 4 ++++ .../client/entry/src/main/module.json | 8 ++++---- .../entry/src/main/resources/base/element/string.json | 4 ++++ .../server/entry/src/main/module.json | 10 +++++----- .../entry/src/main/resources/base/element/string.json | 4 ++++ 10 files changed, 44 insertions(+), 25 deletions(-) diff --git a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/config.json b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/config.json index aaeac8c..bf7fbe7 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/config.json +++ b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/config.json @@ -50,28 +50,28 @@ "reqPermissions": [ { "name": "ohos.permission.DISTRIBUTED_DATASYNC", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.ACCESS_SERVICE_DM", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_BUNDLE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } diff --git a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/resources/base/element/string.json b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/resources/base/element/string.json index 5ce99fb..2be3144 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/resources/base/element/string.json +++ b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/main/resources/base/element/string.json @@ -23,7 +23,11 @@ { "name": "TestAbility_label", "value": "label" - } + }, + { + "name": "perssion_reason", + "value": "reason" + } ] diff --git a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/config.json b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/config.json index c289644..c32ccc3 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/config.json +++ b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/config.json @@ -74,28 +74,28 @@ "reqPermissions": [ { "name": "ohos.permission.DISTRIBUTED_DATASYNC", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.ACCESS_SERVICE_DM", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_BUNDLE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } diff --git a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/resources/base/element/string.json b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/resources/base/element/string.json index 5ce99fb..46f7991 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/resources/base/element/string.json +++ b/distributeddatamgr/jstest/distributed_kv_store/client/hap/entry/src/ohosTest/resources/base/element/string.json @@ -23,8 +23,11 @@ { "name": "TestAbility_label", "value": "label" - } - + }, + { + "name": "perssion_reason", + "value": "reason" + } ] } diff --git a/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/module.json b/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/module.json index 451e9ae..ae273bc 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/module.json +++ b/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/module.json @@ -53,35 +53,35 @@ "requestPermissions": [ { "name": "ohos.permission.GET_BUNDLE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.DISTRIBUTED_DATASYNC", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.ACCESS_SERVICE_DM", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } diff --git a/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/resources/base/element/string.json b/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/resources/base/element/string.json index 12e818f..2c7c27a 100644 --- a/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/resources/base/element/string.json +++ b/distributeddatamgr/jstest/distributed_kv_store/server/entry/src/main/resources/base/element/string.json @@ -35,6 +35,10 @@ { "name": "MainAbility9_label", "value": "label" + }, + { + "name": "perssion_reason", + "value": "reason" } ] } diff --git a/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/module.json b/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/module.json index ea41cb3..66302d3 100644 --- a/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/module.json +++ b/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/module.json @@ -48,28 +48,28 @@ "requestPermissions": [ { "name": "ohos.permission.GET_BUNDLE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.DISTRIBUTED_DATASYNC", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.ACCESS_SERVICE_DM", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } diff --git a/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/resources/base/element/string.json b/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/resources/base/element/string.json index ecaf36f..809abc7 100644 --- a/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/resources/base/element/string.json +++ b/distributeddatamgr/jstest/distributed_kv_store_stage/client/entry/src/main/resources/base/element/string.json @@ -87,6 +87,10 @@ { "name": "MainAbility7_label", "value": "label" + }, + { + "name": "perssion_reason", + "value": "reason" } ] } diff --git a/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/module.json b/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/module.json index acf1329..1fe6562 100644 --- a/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/module.json +++ b/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/module.json @@ -53,35 +53,35 @@ "requestPermissions": [ { "name": "ohos.permission.GET_BUNDLE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.DISTRIBUTED_DATASYNC", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.ACCESS_SERVICE_DM", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } }, { "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", - "reason":"perssion_reason", + "reason":"$string:perssion_reason", "usedScene":{ "when":"inuse" } diff --git a/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/resources/base/element/string.json b/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/resources/base/element/string.json index c98a30d..9126cac 100644 --- a/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/resources/base/element/string.json +++ b/distributeddatamgr/jstest/distributed_kv_store_stage/server/entry/src/main/resources/base/element/string.json @@ -35,6 +35,10 @@ { "name": "MainAbility9_label", "value": "label" + }, + { + "name": "perssion_reason", + "value": "reason" } ] }