diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index c36abe2..c734fab 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -88,6 +88,14 @@ "abilities": ["EntryAbility"], "when": "inuse" } + }, + { + "name": "ohos.permission.MICROPHONE", + "reason": "$string:reason_microphone", + "usedScene": { + "abilities": ["EntryAbility"], + "when": "inuse" + } } ] } diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 6516ee3..7881209 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -19,6 +19,10 @@ { "name": "reason_location", "value": "用于向游戏提供定位服务" + }, + { + "name": "reason_microphone", + "value": "用于按住说话录制语音消息" } ] } \ No newline at end of file