Menu

Why an Android app cannot hear a phone call, and the three ways around it
📰

Why an Android app cannot hear a phone call, and the three ways around it

DEV Community: mobile·Vedanshu Kumar·about 5 hours ago
#hyKO83Gm
#devtomobile#devto#dev#call#phone
Long article (564 words) — no AI summary yet.
Reading 0:00
15s threshold

An ordinary Android app cannot hear or speak into a phone call. The call's audio never passes through the part of the phone that apps can reach, and the one permission that would expose it is reserved for the system. To put an AI agent on a real call you need one of three routes: hardware that the phone treats as a headset, root access, or a number in the cloud.

Where the call's audio actually goes

During a cellular call the voice travels between the modem and the phone's audio chip. The application processor, where apps run, mostly sets the call up and gets out of the way. That is why a call keeps working when an app freezes, and it is also why an app that asks for the microphone during a call gets silence or its own side only.

Android does have a way to record call audio: the CAPTURE_AUDIO_OUTPUT permission and the voice-call audio sources. They are granted only to apps signed by the phone's maker or installed as part of the system.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.