I am trying to use AudioRecord with AudioSource.VOICE_DOWNLINK on a Nexus 5X, Android 7.1 (my own build from AOSP).
I already went through the resolution stage - I moved my APK to privileged applications, making adjustments to AudioRecord in the Android source to stop throwing an exception from this source.
Now I get empty recording buffers during a phone call.
I know that there are many applications for recording calls, and they work on other devices. I also saw some applications that can perform some hacking at the root of the N5 and make it work.
I want to achieve the same in Nexus 5X - everything is fine for me, including changing the version of Android, changing Qualcomm drivers, device configuration files, etc. - basically everything that can be achieved in a custom ROM.
I tried to communicate with the platform code - hardware / qcom / audio / hal / voice.c, especially with the voice_check_and_set_incall_rec_usecase function, but still could not understand.
Also, the device / lge / bullhead / mixer _paths.xml was checked, the section related to the call record was found there:
<ctl name="MultiMedia1 Mixer VOC_REC_UL" value="0" /> <ctl name="MultiMedia1 Mixer VOC_REC_DL" value="0" /> <ctl name="MultiMedia8 Mixer VOC_REC_UL" value="0" /> <ctl name="MultiMedia8 Mixer VOC_REC_DL" value="0" />
But I also could not understand how this can be done.
android android-mediarecorder alsa android-audiorecord
SirKnigget May 6 '17 at 9:15 a.m. 2017-05-06 09:15
source share