Skip to content

[MIUI 12/Android 10] No audio on incoming calls with visible number when screen is locked (Regression v1.11.1) #814

@yoda65

Description

@yoda65

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.11.1

Affected Android/Custom ROM version

Android 10 / MIUI 12.0.1

Affected device model

Xiaomi mi note 10 pro

How did you install the app?

GitHub releases

Steps to reproduce the bug

  1. Install Fossify Phone v1.11.1 on a Xiaomi device with MIUI 12 (Android 10).
  2. Ensure the phone screen is LOCKED.
  3. Receive an incoming call from a VISIBLE number (saved contact or displayed number).
  4. Answer the call.

Control Test Matrix (tested on v1.11.1):

  • Call from MASKED/PRIVATE number + Screen LOCKED -> Audio WORKS.
  • Call from MASKED/PRIVATE number + Screen UNLOCKED -> Audio WORKS.
  • Call from VISIBLE number + Screen UNLOCKED -> Audio WORKS.
  • Call from VISIBLE number + Screen LOCKED -> Audio FAILS (Muted). : BUG!

Expected behavior

Audio (microphone and speaker) should work immediately upon answering, in all four scenarios listed above. This is the standard behavior observed in version 1.2.0 (version i use for 2 years)

Actual behavior

In the specific scenario where the screen is LOCKED and the incoming number is VISIBLE, the call connects (timer runs) but the audio channel remains muted (no input, no output).
The other three scenarios function correctly.
Setting battery optimization to "No restrictions" reduces the frequency of the bug but does not eliminate it completely on v1.11.1.

Screenshots/Screen recordings

No response

Additional information

  • Device: Xiaomi Mi Note 10 Pro
  • OS: Android 10
  • UI: MIUI 12.0.1
  • Affected Version: 1.11.1
  • Last Working Version on my phone: 1.2.0 (Confirmed Regression)

Technical Hypothesis:
The bug appears to be a race condition involving "Wake Locks" on MIUI.

  • Visible numbers trigger a database lookup (contact name/photo) before audio initialization.
  • Masked numbers skip this lookup.
    The delay introduced by the lookup on a locked screen (deep sleep) seems to cause the audio initialization to fail or occur too late. Version 1.2.0 does not exhibit this timing sensitivity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not workingneeds triageIssue is not yet ready for PR authors to take up

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions