From 202a5b3d22cfa218f6b0d02b33da89a313f85625 Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 06:56:13 +0000 Subject: [PATCH 01/10] update Media/ImageEditorTemplate/entry/src/main/config.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/config.json | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/Media/ImageEditorTemplate/entry/src/main/config.json b/Media/ImageEditorTemplate/entry/src/main/config.json index 25c9d0a7..b82cc796 100644 --- a/Media/ImageEditorTemplate/entry/src/main/config.json +++ b/Media/ImageEditorTemplate/entry/src/main/config.json @@ -48,13 +48,34 @@ ], "reqPermissions": [ { - "name": "ohos.permission.MEDIA_LOCATION" + "name": "ohos.permission.MEDIA_LOCATION", + "reason": "$string:reason", + "usedScene": { + "ability": [ + "MainAbility" + ], + "when": "inuse" + } }, { - "name": "ohos.permission.READ_MEDIA" + "name": "ohos.permission.READ_MEDIA", + "reason": "$string:reason", + "usedScene": { + "ability": [ + "MainAbility" + ], + "when": "inuse" + } }, { - "name": "ohos.permission.WRITE_MEDIA" + "name": "ohos.permission.WRITE_MEDIA", + "reason": "$string:reason", + "usedScene": { + "ability": [ + "MainAbility" + ], + "when": "inuse" + } } ], "js": [ -- Gitee From ad89a6f46ef525dc599075a933061e57939d34a7 Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 06:57:04 +0000 Subject: [PATCH 02/10] update Media/ImageEditorTemplate/entry/src/main/resources/base/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/base/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Media/ImageEditorTemplate/entry/src/main/resources/base/element/string.json b/Media/ImageEditorTemplate/entry/src/main/resources/base/element/string.json index c3b006ea..6ca8660c 100644 --- a/Media/ImageEditorTemplate/entry/src/main/resources/base/element/string.json +++ b/Media/ImageEditorTemplate/entry/src/main/resources/base/element/string.json @@ -11,6 +11,10 @@ { "name": "MainAbility_label", "value": "ImageEditor" + }, + { + "name": "reason", + "value": "save image" } ] } \ No newline at end of file -- Gitee From 0a9846d29ec0d7c44475b0d0bffb4e4c3da2a29e Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 06:57:26 +0000 Subject: [PATCH 03/10] update Media/ImageEditorTemplate/entry/src/main/resources/en_US/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/en_US/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Media/ImageEditorTemplate/entry/src/main/resources/en_US/element/string.json b/Media/ImageEditorTemplate/entry/src/main/resources/en_US/element/string.json index c3b006ea..6ca8660c 100644 --- a/Media/ImageEditorTemplate/entry/src/main/resources/en_US/element/string.json +++ b/Media/ImageEditorTemplate/entry/src/main/resources/en_US/element/string.json @@ -11,6 +11,10 @@ { "name": "MainAbility_label", "value": "ImageEditor" + }, + { + "name": "reason", + "value": "save image" } ] } \ No newline at end of file -- Gitee From 8c78635e4a00abfd2c09b5dc93f21013ea1ea907 Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 06:58:01 +0000 Subject: [PATCH 04/10] update Media/ImageEditorTemplate/entry/src/main/resources/zh_CN/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/zh_CN/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Media/ImageEditorTemplate/entry/src/main/resources/zh_CN/element/string.json b/Media/ImageEditorTemplate/entry/src/main/resources/zh_CN/element/string.json index f48ebf91..ab95a480 100644 --- a/Media/ImageEditorTemplate/entry/src/main/resources/zh_CN/element/string.json +++ b/Media/ImageEditorTemplate/entry/src/main/resources/zh_CN/element/string.json @@ -11,6 +11,10 @@ { "name": "MainAbility_label", "value": "图片编辑" + }, + { + "name": "reason", + "value": "保存图片" } ] } \ No newline at end of file -- Gitee From e7068ab79b90f5a5084dc1411dc8270cdf975cfd Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 06:59:33 +0000 Subject: [PATCH 05/10] update NetworkManagement/NewsDataArkTS/entry/src/main/module.json5. Signed-off-by: haolihi <1252445494@qq.com> --- .../NewsDataArkTS/entry/src/main/module.json5 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NetworkManagement/NewsDataArkTS/entry/src/main/module.json5 b/NetworkManagement/NewsDataArkTS/entry/src/main/module.json5 index 8c1924b1..751e3351 100644 --- a/NetworkManagement/NewsDataArkTS/entry/src/main/module.json5 +++ b/NetworkManagement/NewsDataArkTS/entry/src/main/module.json5 @@ -39,7 +39,14 @@ ], "requestPermissions": [ { - "name": "ohos.permission.INTERNET" + "name": "ohos.permission.INTERNET", + "reason": "$string:reason", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "inuse" + } } ] } -- Gitee From b62de927538742d83086d0d1088d70bf7ed1c264 Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 07:00:06 +0000 Subject: [PATCH 06/10] update NetworkManagement/NewsDataArkTS/entry/src/main/resources/base/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/base/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetworkManagement/NewsDataArkTS/entry/src/main/resources/base/element/string.json b/NetworkManagement/NewsDataArkTS/entry/src/main/resources/base/element/string.json index 4fd717ee..688a1603 100644 --- a/NetworkManagement/NewsDataArkTS/entry/src/main/resources/base/element/string.json +++ b/NetworkManagement/NewsDataArkTS/entry/src/main/resources/base/element/string.json @@ -47,6 +47,10 @@ { "name": "prompt_message", "value": "No more data" + }, + { + "name": "reason", + "value": "internet" } ] } \ No newline at end of file -- Gitee From cbbc715926712aa361e73d3722c6b83d15a2e4cd Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 07:00:23 +0000 Subject: [PATCH 07/10] update NetworkManagement/NewsDataArkTS/entry/src/main/resources/en_US/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/en_US/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetworkManagement/NewsDataArkTS/entry/src/main/resources/en_US/element/string.json b/NetworkManagement/NewsDataArkTS/entry/src/main/resources/en_US/element/string.json index 4fd717ee..688a1603 100644 --- a/NetworkManagement/NewsDataArkTS/entry/src/main/resources/en_US/element/string.json +++ b/NetworkManagement/NewsDataArkTS/entry/src/main/resources/en_US/element/string.json @@ -47,6 +47,10 @@ { "name": "prompt_message", "value": "No more data" + }, + { + "name": "reason", + "value": "internet" } ] } \ No newline at end of file -- Gitee From 4f8b45a59e991e6d278aa064e835455f025c4332 Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 07:01:00 +0000 Subject: [PATCH 08/10] update NetworkManagement/NewsDataArkTS/entry/src/main/resources/zh_CN/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/zh_CN/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetworkManagement/NewsDataArkTS/entry/src/main/resources/zh_CN/element/string.json b/NetworkManagement/NewsDataArkTS/entry/src/main/resources/zh_CN/element/string.json index c1c47b94..3a32cbf0 100644 --- a/NetworkManagement/NewsDataArkTS/entry/src/main/resources/zh_CN/element/string.json +++ b/NetworkManagement/NewsDataArkTS/entry/src/main/resources/zh_CN/element/string.json @@ -47,6 +47,10 @@ { "name": "prompt_message", "value": "没有更多数据了" + }, + { + "name": "reason", + "value": "网络" } ] } \ No newline at end of file -- Gitee From e7c5352458202fddf04873a4aa2fd3900809138a Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 07:02:33 +0000 Subject: [PATCH 09/10] update CommonEventAndNotification/AlarmClock/entry/src/main/module.json5. Signed-off-by: haolihi <1252445494@qq.com> --- .../AlarmClock/entry/src/main/module.json5 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CommonEventAndNotification/AlarmClock/entry/src/main/module.json5 b/CommonEventAndNotification/AlarmClock/entry/src/main/module.json5 index 38c9995f..4e7bddf3 100644 --- a/CommonEventAndNotification/AlarmClock/entry/src/main/module.json5 +++ b/CommonEventAndNotification/AlarmClock/entry/src/main/module.json5 @@ -35,7 +35,14 @@ ], "requestPermissions": [ { - "name": "ohos.permission.PUBLISH_AGENT_REMINDER" + "name": "ohos.permission.PUBLISH_AGENT_REMINDER", + "reason": "$string:reason", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "inuse" + } } ] } -- Gitee From e044b0b487e2e04387831e5f5eb55b9a1ba70c8a Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Mon, 31 Jul 2023 07:03:16 +0000 Subject: [PATCH 10/10] update CommonEventAndNotification/AlarmClock/entry/src/main/resources/base/element/string.json. Signed-off-by: haolihi <1252445494@qq.com> --- .../entry/src/main/resources/base/element/string.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CommonEventAndNotification/AlarmClock/entry/src/main/resources/base/element/string.json b/CommonEventAndNotification/AlarmClock/entry/src/main/resources/base/element/string.json index b3d9b333..aa5acf07 100644 --- a/CommonEventAndNotification/AlarmClock/entry/src/main/resources/base/element/string.json +++ b/CommonEventAndNotification/AlarmClock/entry/src/main/resources/base/element/string.json @@ -59,6 +59,10 @@ { "name": "main_page_title_font_family", "value": "HarmonyHeiTi-Bold" + }, + { + "name": "reason", + "value": "通知" } ] } \ No newline at end of file -- Gitee