拦截,阅读和取消短信 [英] Intercept, read and cancel SMS message

查看:183
本文介绍了拦截,阅读和取消短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一种方式来钩SmsManager的或更低级别的机制,这样我可以拦截,阅读并取消所有外发的短信在发送之前。

I am looking for a way to hook SMSManager or a lower level mechanism such that I can intercept, read and cancel any outgoing SMS messages before they are sent.

推荐答案

显然,这不是你想要听到的,而Android根本就没有设计成允许第三方应用程序来干扰对方或过度乘坐用户的自由的选择。

Obviously this isn't what you want to hear, but Android is simply not designed to permit 3rd party applications to interfere with each other or over-ride the user's free choice.

它不提供一个钩类型的机构为基本功能硬拦截,短修改机器人的本身安装在设备上的构建

It does not provide a "hook" type of mechanism for hard interception of basic functionality, short of modifying the build of Android itself installed on the device.

设备管理员接口不包含任何调节的短信。

The device administrator interfaces do not include anything for regulating sms.

是的,偶尔人做的产品利用各种黑客的方法来完成这样的事情在一定程度上,但他们违背了该平台的设计,因此无论是不可靠的或可能打破时,各种漏洞修复式的改进发到Android。或者,他们配备了限制范围,例如更换主屏幕,并因此限制了什么是很容易启动 - 但只是只要是主屏幕应用程序仍处于选中状态,并且不能够调节意图的其他来源

Yes, occasionally people make products utilizing various "hack" methods to accomplish such things to some extent, but they are contrary to the design of the platform and thus either unreliable or likely to break when various "bug fix" type improvements are made to android. Or they come with limitation in scope, for example replacing the home screen and thus limiting what is easily launched - but only so long as that home screen app remains selected, and not being able to regulate other sources of intents.

您可能会发现心中的想法,你决定要运行它有足够的吸引力,但熊,除非它是一个未来推出的API 打算做这种事情你最有可能是利用一个监督中它很可能会很快纠正了平台的设计。

You may find an idea attractive enough that you decide to run with it, but bear in mind that unless it's a future introduction to the API intended for doing this kind of thing you would most likely be leveraging an oversight in the design of the platform which it's quite likely will soon be corrected.

这篇关于拦截,阅读和取消短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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