Call recording via MIC on Samsung devices (Android 7.0)

I have a simple Android application that records a call and works fine on Android 6 + Samsung devices (both with MIC source and VOICE_COMMUNICATION). But as soon as Samsung devices upgraded to Nougat (for example, S7 / S7 Edge), these methods for recording a call failed :( MIC records only my voice, but not the voice of the opponent, and VOICE_COMMUNICATION does not work at all.

Can anyone advise what can be done here?

+5
source share
1 answer

same problem. still looking for an answer.

I have a samsung s7. Firstly, I opened the unlocked tape recorder (in the dialer) and it works. Thus, Android 7 (and samsung) can record calls without internal actions inside Android. But at the same time, I read that developers cannot access recording calls from a higher level. There seems to be only one way to achieve our goals: changing the version of Android Android or capturing the sound stream before it hits the speaker. Correct me if I am wrong.

+2
source

Source: https://habr.com/ru/post/1266858/


All Articles