简体   繁体   English

从特定电话号码导入或拦截短信,Iphone

[英]import or intercept SMS from a specific phone number , Iphone

I want to import or intercept the SMS messages from a specific phone-number in my application.我想在我的应用程序中导入或拦截来自特定电话号码的 SMS 消息。 Is such a thing possible on an iphone, even a jailbreaked one?这样的事情在 iPhone 上是否可行,甚至是越狱的 iPhone?

The telephony stack mainly consists of one application binary called CommCenter .电话堆栈主要由一个名为CommCenter的应用程序二进制文件组成。

CommCenter communicates directly with the modem using a number of serial lines of which two are used for AT commands related to SMS transfers. CommCenter 使用多条串行线路直接与调制解调器通信,其中两条用于与 SMS 传输相关的 AT 命令。 It handles incoming SMS messages by itself without invoking any other process, besides when the device notifies the user about a newly arrived message after storing it in the SMS database.它自己处理传入的 SMS 消息,而不调用任何其他进程,除非设备在将新到达的消息存储在 SMS 数据库中后通知用户。
The user SMS application is only used for reading SMS messages stored in the database and for composing new messages and does not itself directly communicate with the modem.用户 SMS 应用程序仅用于读取存储在数据库中的 SMS 消息和编写新消息,它本身并不直接与调制解调器通信。

SMS messages are handled by the CommCenter process. SMS 消息由 CommCenter 进程处理。

The interface for CommCenter consists of sixteen virtual serial lines, CommCenter 的接口由 16 条虚拟串行线路组成,
/dev/dlci.h5-baseband.[0-15] and /dev/dlci.h5-baseband.[0-15]
/dev/dlci.spi-baseband.[0-15] on the 2G and the 3G iPhone, respectively. /dev/dlci.spi-baseband.[0-15]分别在 2G 和 3G iPhone 上。

Without root access, probably you can't get these informations.如果没有 root 访问权限,您可能无法获取这些信息。

Ref: http://www.usenix.org/参考: http://www.usenix.org/

No, it can't be possible with any public APIs.不,任何公共 API 都无法实现。

It's possible on jailbroken iPhones.在越狱的 iPhone 上是可能的。 You can see biteSMS is doing well in this manner.You need to be have on root.您可以看到 bitSMS 以这种方式运行良好。您需要拥有 root 权限。 Means you need to install your app as root app and you need a jailbroken device.意味着您需要将您的应用程序安装为根应用程序并且您需要一个越狱设备。 Then you can get access to SMS database from phone and then you can do sqlite operations on it.然后您可以通过手机访问短信数据库,然后您可以对其进行 sqlite 操作。 Search on google and stackoverflow you will get the path of the sms database.在google和stackoverflow上搜索你会得到sms数据库的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM