feat(录音): 声明 MICROPHONE 权限 + reason_microphone 文案(Task8)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
lanterngamescn
2026-06-27 17:29:53 +08:00
co-authored by Claude Opus 4.8
parent 4c02ef0dc4
commit cb8e398bfb
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -88,6 +88,14 @@
"abilities": ["EntryAbility"],
"when": "inuse"
}
},
{
"name": "ohos.permission.MICROPHONE",
"reason": "$string:reason_microphone",
"usedScene": {
"abilities": ["EntryAbility"],
"when": "inuse"
}
}
]
}
@@ -19,6 +19,10 @@
{
"name": "reason_location",
"value": "用于向游戏提供定位服务"
},
{
"name": "reason_microphone",
"value": "用于按住说话录制语音消息"
}
]
}