diff --git a/stub-app-projects/mp-harmony/entry/src/main/module.json5 b/stub-app-projects/mp-harmony/entry/src/main/module.json5 index 9d9c47d..c134355 100644 --- a/stub-app-projects/mp-harmony/entry/src/main/module.json5 +++ b/stub-app-projects/mp-harmony/entry/src/main/module.json5 @@ -67,7 +67,9 @@ }, { // PR-FRONTEND-VOICE-INPUT (2026-09-24): 元服务录音需要麦克风权限 + // user_grant 权限必须同时声明 reason 和 usedScene "name": "ohos.permission.MICROPHONE", + "reason": "$string:permission_microphone_reason", "usedScene": { "abilities": [ "EntryAbility" diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json index 9e41945..dec36a0 100644 --- a/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json +++ b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json @@ -4,6 +4,10 @@ "name": "module_desc", "value": "module description" }, + { + "name": "permission_microphone_reason", + "value": "用于语音搜索与语音输入功能,录制语音以识别用户需求" + }, { "name": "EntryAbility_desc", "value": "EntryAbility description"