From b8e9e0c4f0aa61309e870e816e09edcc47e34741 Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Sat, 21 Sep 2024 15:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=9B=B8=E6=9C=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=87=87=E9=9B=86=E4=BF=9D=E5=AD=98=E3=80=91=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BD=BF=E7=94=A8=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 4 ++-- entry/src/main/resources/base/element/string.json | 8 ++++++-- entry/src/main/resources/en_US/element/string.json | 8 ++++++-- entry/src/main/resources/zh_CN/element/string.json | 8 ++++++-- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index afb756a..54e265f 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -35,7 +35,7 @@ "requestPermissions": [ { "name": "ohos.permission.CAMERA", - "reason": "$string:reason", + "reason": "$string:reason_camera", "usedScene": { "abilities": [ "EntryAbility" @@ -45,7 +45,7 @@ }, { "name": "ohos.permission.MICROPHONE", - "reason": "$string:reason", + "reason": "$string:reason_microphone", "usedScene": { "abilities": [ "EntryAbility" diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index d9e6dd3..2c947e7 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -13,8 +13,12 @@ "value": "cameraDemo" }, { - "name": "reason", - "value": "test" + "name": "reason_camera", + "value": "Allow the app to use the camera for photo and video recording scenarios" + }, + { + "name": "reason_microphone", + "value": "Allow the app to use the microphone for video recording scenarios" }, { "name": "200px", diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 7d880a8..593b71c 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -13,8 +13,12 @@ "value": "cameraDemo" }, { - "name": "reason", - "value": "test" + "name": "reason_camera", + "value": "Allow the app to use the camera for photo and video recording scenarios" + }, + { + "name": "reason_microphone", + "value": "Allow the app to use the microphone for video recording scenarios" }, { "name": "200px", diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index 1908692..db1165c 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -13,8 +13,12 @@ "value": "cameraDemo" }, { - "name": "reason", - "value": "test" + "name": "reason_camera", + "value": "允许应用在拍照录像场景中使用相机" + }, + { + "name": "reason_microphone", + "value": "允许应用在录像场景中使用麦克风" }, { "name": "200px", -- Gitee