From 976be5cc88591c7ee3f64eec4f042e79f8c342b9 Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Mon, 23 Sep 2024 22:15:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E7=94=9F=E6=80=81=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=9B=B8=E6=9C=BA=E5=AE=9E=E7=8E=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=BA=A7=E7=9B=B8=E6=9C=BA=E4=BD=93=E9=AA=8C=E3=80=91=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=9D=83=E9=99=90=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 2 +- entry/src/main/resources/base/element/string.json | 4 ++++ entry/src/main/resources/en_US/element/string.json | 4 ++++ entry/src/main/resources/zh_CN/element/string.json | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index a542df9..8e401ef 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -35,7 +35,7 @@ "requestPermissions": [ { "name": "ohos.permission.CAMERA", - "reason": "$string:EntryAbility_desc", + "reason": "$string:reason_camera", "usedScene": { "abilities": [ "EntryAbility" diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index b12dbd6..5ba3484 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -19,6 +19,10 @@ { "name": "Video", "value": "录像" + }, + { + "name": "reason_camera", + "value": "Used for third-party camera development scenarios" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index ad90c55..63e2f5c 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -19,6 +19,10 @@ { "name": "Video", "value": "Video" + }, + { + "name": "reason_camera", + "value": "Used for third-party camera development scenarios" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index d290e53..4ae73f6 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -19,6 +19,10 @@ { "name": "Video", "value": "录像" + }, + { + "name": "reason_camera", + "value": "用于三方相机开发场景" } ] } \ No newline at end of file -- Gitee From 10d594cbc661657c83c8788618f7490b7f5c7729 Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Sat, 28 Sep 2024 18:40:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E7=94=9F=E6=80=81=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=9B=B8=E6=9C=BA=E5=AE=9E=E7=8E=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=BA=A7=E7=9B=B8=E6=9C=BA=E4=BD=93=E9=AA=8C=E3=80=91=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=9D=83=E9=99=90=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 8 ++++---- .../src/main/resources/base/element/string.json | 16 ++++++++++++++++ .../src/main/resources/en_US/element/string.json | 16 ++++++++++++++++ .../src/main/resources/zh_CN/element/string.json | 16 ++++++++++++++++ 4 files changed, 52 insertions(+), 4 deletions(-) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 8e401ef..ab008f5 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -44,7 +44,7 @@ }, { "name": "ohos.permission.MICROPHONE", - "reason": "$string:EntryAbility_desc", + "reason": "$string:reason_microphone", "usedScene": { "abilities": [ "EntryAbility" @@ -53,7 +53,7 @@ }, { "name": "ohos.permission.MEDIA_LOCATION", - "reason": "$string:EntryAbility_desc", + "reason": "$string:reason_media_location", "usedScene": { "abilities": [ "EntryAbility" @@ -62,7 +62,7 @@ }, { "name": "ohos.permission.WRITE_IMAGEVIDEO", - "reason": "$string:EntryAbility_desc", + "reason": "$string:reason_write_imagevideo", "usedScene": { "abilities": [ "EntryAbility" @@ -71,7 +71,7 @@ }, { "name": "ohos.permission.READ_IMAGEVIDEO", - "reason": "$string:EntryAbility_desc", + "reason": "$string:reason_read_imagevideo", "usedScene": { "abilities": [ "EntryAbility" diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 5ba3484..951b366 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -23,6 +23,22 @@ { "name": "reason_camera", "value": "Used for third-party camera development scenarios" + }, + { + "name": "reason_microphone", + "value": "For third-party camera recording scenarios" + }, + { + "name": "reason_media_location", + "value": "For third-party camera to access media information scenarios" + }, + { + "name": "reason_write_imagevideo", + "value": "For third-party camera to save media files" + }, + { + "name": "reason_read_imagevideo", + "value": "For third-party camera to read media files" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 63e2f5c..e15d78b 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -23,6 +23,22 @@ { "name": "reason_camera", "value": "Used for third-party camera development scenarios" + }, + { + "name": "reason_microphone", + "value": "For third-party camera recording scenarios" + }, + { + "name": "reason_media_location", + "value": "For third-party camera to access media information scenarios" + }, + { + "name": "reason_write_imagevideo", + "value": "For third-party camera to save media files" + }, + { + "name": "reason_read_imagevideo", + "value": "For third-party camera to read media files" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index 4ae73f6..3f792ef 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -23,6 +23,22 @@ { "name": "reason_camera", "value": "用于三方相机开发场景" + }, + { + "name": "reason_microphone", + "value": "用于三方相机录像场景" + }, + { + "name": "reason_media_location", + "value": "用于三方相机获取媒体信息场景" + }, + { + "name": "reason_write_imagevideo", + "value": "用于三方相机保存媒体文件" + }, + { + "name": "reason_read_imagevideo", + "value": "用于三方相机读取媒体文件" } ] } \ No newline at end of file -- Gitee