Can I access the audio output of an Android device in order to modify it before the user hears it?

♀尐吖头ヾ 提交于 2019-12-11 01:04:40

问题


The scenario is that any app or the system creates an audio output which is then routed to the speaker of the Android device. Now, I would like to get access to this audio stream before it reaches the user (of course, with the permission of said user). Is there a way to do this?

I checked out a previous topic on this as well but was wondering if things have changed in the past year with Android: How can I intercept the audio stream on an android device?

Thanks in advance


回答1:


No. You can not do this.

It would be a pretty major security loop hole, would allow your app to directly impact the operation of other apps in non lifecycle appropriate ways, and directly negate multiple contracts the Android system depends on for orderly operation.



来源:https://stackoverflow.com/questions/28441515/can-i-access-the-audio-output-of-an-android-device-in-order-to-modify-it-before

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!