有没有可能写一个新的“电话"?活动,如果是,那么如何? [英] Is it possible to write a new "phone" activity, and if yes then how?

查看:26
本文介绍了有没有可能写一个新的“电话"?活动,如果是,那么如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了说明问题,假设我想编写一个允许通话录音的应用.

To illustrate the problem, let's say I want to write an app that allows call recording.

我知道由于操作系统对系统当前电话活动的限制,我无法录制来电者和被叫者的音频.绕过此限制的唯一方法是破解"操作系统代码,这至少需要我的用户具有 root 访问权限.

I know that I can't record the caller and called audio due to the OS restrictions on the systems current phone activity. The only way to pass this restriction is by "hacking" the OS code, which will require in the minimum a root access from my users.

那么,是否可以不破解android手机活动,而是编写自己的一个活动,当来电意图上升时,用户将能够选择要启动的活动?

So, is it possible not to hack the android phone activity, but to write one of my own, that when an incoming call intent rises, the user will be able to choose which activity to launch ?

如果是这样,一些指针会很好:)

If so, a few pointers would be nice :)

谢谢.

推荐答案

我可能是错的,但我还没有看到任何可以在所有平台上工作的电话录音机,因为它似乎是硬件内核级问题而不是操作系统/API 问题.

I could be wrong, but I have not seen any phone recorders that work across all platforms because it seems to be a hardware kernel level issue and not an OS/API issue.

更换系统应用程序而言,无论如何您都必须将手机设为root才能执行此操作,除非我误解了你在问什么.

As far as replacing system applications you have to root the phone to do that anyway, unless I am misunderstanding what you are asking.

当然,所有 android 源 都可用,因此您可以随意浏览看看有没有遗漏的东西

Of course all the android source is available so you can poke around in that all you want and see if there is anything that has been missed

这篇关于有没有可能写一个新的“电话"?活动,如果是,那么如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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