diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index afb756abc55771d5480d20b893ef51739fbdb567..54e265f61ece6bd1931f63415367ee4ce0db5880 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 d9e6dd33511401634158f96f013bf05e73a94359..2c947e77d708ed5f9b809947dd05314cb84c4dd3 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 7d880a88a2bb73f25219e811412a52214ae9926b..593b71c68dde5edfbc6fe7a92617fc7c784d5939 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 1908692b7a42a27f046a3a9e22c8d48576686d97..db1165c149f95237dc6ce602686f0210b60dd165 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",