feat(录音): 声明 MICROPHONE 权限 + reason_microphone 文案(Task8)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
4c02ef0dc4
commit
cb8e398bfb
@@ -88,6 +88,14 @@
|
|||||||
"abilities": ["EntryAbility"],
|
"abilities": ["EntryAbility"],
|
||||||
"when": "inuse"
|
"when": "inuse"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ohos.permission.MICROPHONE",
|
||||||
|
"reason": "$string:reason_microphone",
|
||||||
|
"usedScene": {
|
||||||
|
"abilities": ["EntryAbility"],
|
||||||
|
"when": "inuse"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,10 @@
|
|||||||
{
|
{
|
||||||
"name": "reason_location",
|
"name": "reason_location",
|
||||||
"value": "用于向游戏提供定位服务"
|
"value": "用于向游戏提供定位服务"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "reason_microphone",
|
||||||
|
"value": "用于按住说话录制语音消息"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user