Android 4.0 ICS 中的呼叫音频流修改 [英] Call Audio Stream Modification in Android 4.0 ICS

查看:23
本文介绍了Android 4.0 ICS 中的呼叫音频流修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在从事一个项目,该项目将从呼叫流修改中受益匪浅.这被反复说/假设是无法实现的,因为大多数人认为通话音频的硬件循环与设备的主 MCU 完全断开.

I've been working on a project that would greatly benefit from call-stream modification. This has been repeatedly said/assumed to be unachievable, as most people believe that the hardware loop for the in-call audio is completely disconnected from the main MCU of the device.

已收到诸如 将音频流式传输到电话 Android 之类的问题回答说无法访问音频.我同意 Android API 绝对不可能做到这一点,但是完全不清楚硬件是否完全断开连接.

Questions like Stream audio to a phone call Android have received answers stating that it is impossible to access the audio. I agree that this is definitely impossible from the Android API, but it is completely unclear whether the hardware ACTUALLY is disconnected completely.

stackoverflow 用户artsylar"表示,他们能够修改 Android 操作系统的框架层"以将录制的音频注入呼叫流中,这将是向前迈出的一大步(参见 在正在进行的通话中播放音频剪辑,artsylar 对所选答案的评论).假设artsylar的成功是有效的,那么肯定有一种方法可以通过修改框架来控制呼叫流音频(我假设Android源中的电话基础框架).

The stackoverflow user 'artsylar' said that they were able to modify the 'framework layer' of Android OS to inject recorded audio into call streams, which would be a huge step forward (see Play an audio clip onto an ongoing call, artsylar's comment on the selected answer). Assuming artsylar's success is valid, there definitely is a way to control the call stream audio by modifying the framework (I assume the telephony base framework in the Android source).

基本上,我完全同意从应用层修改或控制调用流是不可能的.但是,我对在框架或无线电接口层中自定义 Android OS 感兴趣;Artsylar 似乎取得了成功,但在公开文献中没有解释如何成功.鉴于 Android 技术的当前状态,有人可以澄清上述内容,以实际确定是否可以通过修改核心 Android 操作系统来控制通话音频,以及实现此目标的好方法吗?

Basically, I completely agree that modifying or controlling the call-stream is impossible from the application layer. However, I am interested in customizing the Android OS in framework or Radio Interface Layer; artsylar seems to have had success, but there is no explanation in open-literature on how. Given the current state of Android technology, could anyone clarify the above to actually establish whether controlling call audio is possible by modifying the core Android OS, and a good path to accomplish this goal?

我相信对这个问题的最终澄清对开源社区非常有价值.

I believe that a final clarification on this issue would be of great value to the open-source community.

谢谢!

推荐答案

在某些平台(例如,Qualcomm 的 MSM8960 和 APQ8064)上,技术上可以将音频注入语音呼叫上行链路.支持存在于硬件级别和设备驱动程序级别.但要使该功能可用于普通应用程序,您必须创建一个自定义 Android ROM,在其中您已在 Android 的 Java 层和本机层中添加了所有必要的用户空间部分.

It's technically possible to inject audio into the voice call uplink on some platforms (Qualcomm's MSM8960 and APQ8064, for example). Support exists at the hardware level and at the device driver level. But to make that functionality available to normal applications you'd have to create a custom Android ROM where you've added all the necessary user-space parts in both the Java layers and native layers of Android.

所以简短的回答是:不,作为应用程序开发人员没有标准的方法来执行此操作(无论您使用 SDK 还是 NDK).
如果您为 OEM 工作或通过其他方式能够构建和刷新您自己的 Android ROM,您可能可以通过询问您的平台供应商来获得所需的信息.

So the short answer is: no, there's no standard way of doing this as an app developer (doesn't matter if you use the SDK or NDK).
If you're working for an OEM or by some other means are able to build and flash your own Android ROMs you can probably get the information you need by asking your platform vendor.

这篇关于Android 4.0 ICS 中的呼叫音频流修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆