diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index a542df9e260568c213871fa9ef9172a32337fd07..ab008f50f7eb01bb4f7c98bc1fbd5f4cfc26ab94 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" @@ -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 b12dbd6e89f815c3f9fcb734295a2ac0a683b047..951b366495424224bef7d6875372d0ac6f2aceb9 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -19,6 +19,26 @@ { "name": "Video", "value": "录像" + }, + { + "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 ad90c55ca2e37008b2237731c3f87cafce4dfc00..e15d78bff5659a0c8f1cadec9d06e19475557348 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -19,6 +19,26 @@ { "name": "Video", "value": "Video" + }, + { + "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 d290e53d9f616ca79cb59c446ae7bb40259477c3..3f792ef6ee40368618bc001a10d809bcf1d7f067 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -19,6 +19,26 @@ { "name": "Video", "value": "录像" + }, + { + "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