From cb8e398bfb56af0219a3778e09fabfc38fafaca9 Mon Sep 17 00:00:00 2001 From: lanterngamescn Date: Sat, 27 Jun 2026 17:29:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BD=95=E9=9F=B3):=20=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=20MICROPHONE=20=E6=9D=83=E9=99=90=20+=20reason=5Fmicrophone=20?= =?UTF-8?q?=E6=96=87=E6=A1=88(Task8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- entry/src/main/module.json5 | 8 ++++++++ entry/src/main/resources/base/element/string.json | 4 ++++ 2 files changed, 12 insertions(+) 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