Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Android: denying the microphone permission exits the app silently

未关闭 适合新手
#3,846 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
android, cpp

调研方向

从 src/main.cpp:833-841 开始,跟踪 RECORD_AUDIO 被拒绝后立即返回的 Android 权限拒绝路径。在 Android 上复现该行为并检查 logcat;完成的标准是应用在退出前报告缺少麦克风权限,并按照 issue 中的描述处理退出状态行为。

由索引模型根据 Issue 内容生成。

描述

AI

MY LLM WROTE:

As promised in #2570 — on Android, denying the RECORD_AUDIO permission exits the app with no message of any kind: no window, no dialog, no toast. The user taps the icon and stays on their home screen.

It is deliberate (src/main.cpp:833-841, a bare return 0), and the exit status is 0, so nothing marks it as a failure. The trap is that Android sets USER_FIXED on an explicit deny, which suppresses the permission dialog on every later launch — so the app is then permanently unstartable with no in-app way back and no explanation.

Reproduced 8/8 on two builds (mainline 3.12.3dev-1f9667ec and a PR build), Android 16 / arm64 / Qt 5.15.2, one device. exit app 0 appears in logcat ~200 ms after the library loads.

A message naming the microphone permission before exiting would fix it. Non-zero exit status would help tooling too.

@ann0see — you suggested denied permissions cause bad states on all platforms. Likely, but I only tested Android, and this mechanism is Android-specific, so I'd treat the desktop cases as separate.

主要语言
C
星标
1.1k
派生
248
平均合并
2 天 22 小时
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jamulussoftware/jamulus 的其他 Issue

查看 jamulussoftware/jamulus 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。