fix:鸿蒙元服务麦克风权限补充 reason 字段
ohos.permission.MICROPHONE 是 user_grant 权限,必须同时声明 reason 和 usedScene,缺失导致 hvigor 报 00303218 配置错误、 entry:default@PreBuild 失败。 补充 reason 引用,并新增 permission_microphone_reason 字符串资源。 其余 INTERNET / GET_NETWORK_INFO / VIBRATE 均为 system_grant,无需改动。
This commit is contained in:
@@ -67,7 +67,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// PR-FRONTEND-VOICE-INPUT (2026-09-24): 元服务录音需要麦克风权限
|
// PR-FRONTEND-VOICE-INPUT (2026-09-24): 元服务录音需要麦克风权限
|
||||||
|
// user_grant 权限必须同时声明 reason 和 usedScene
|
||||||
"name": "ohos.permission.MICROPHONE",
|
"name": "ohos.permission.MICROPHONE",
|
||||||
|
"reason": "$string:permission_microphone_reason",
|
||||||
"usedScene": {
|
"usedScene": {
|
||||||
"abilities": [
|
"abilities": [
|
||||||
"EntryAbility"
|
"EntryAbility"
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
"name": "module_desc",
|
"name": "module_desc",
|
||||||
"value": "module description"
|
"value": "module description"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "permission_microphone_reason",
|
||||||
|
"value": "用于语音搜索与语音输入功能,录制语音以识别用户需求"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "EntryAbility_desc",
|
"name": "EntryAbility_desc",
|
||||||
"value": "EntryAbility description"
|
"value": "EntryAbility description"
|
||||||
|
|||||||
Reference in New Issue
Block a user