如何从iPhone(xcode)获取短信? [英] How to get SMS from iPhone (xcode)?

查看:102
本文介绍了如何从iPhone(xcode)获取短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过很多帖子说这是不可能的.
但是,对我来说很奇怪的是,有可能越狱电话(这使Apple亏钱),可以发送文本或使用xcode接收请求(这可能是垃圾邮件),但无法读取文本.
你们中有人尝试这样做并成功了吗?
毕竟,iPhone确实会读取短信,因此数据就在其中,只是将其取出即可.
真的很感谢对此的任何想法.


问题是: 如何在iPhone上获取所有短信的内容?

I've seen many posts saying it's not possible.
However it is very strange to me that it's possible to jailbreak the phone (which makes Apple lose money), possible to send texts or get requests with xcode (which is potential spamming), but not possible to read texts.
Did any one of you try to do this and succeeded?
After all, iPhone does read the SMS'es, so data is somewhere in there, it's just the matter of getting it out.
Would really appreciate any thoughts about this.


The question is: How do I get Content of all text messages on the iPhone?

推荐答案

当然可以.由于越狱标签已应用于您的问题,所以我认为您可以编写需要越狱电话且不会提交到iTunes App Store的应用程序.

It most certainly is possible. Since the Jailbreak tag was applied to your question, I assume you're ok with writing an app that requires a jailbroken phone, and won't be submitted to the iTunes App Store.

如果是这样,请最近我对其他问题的回答.请参阅我发布的mostRecentSMS方法.这样只会读取最新的SMS,但是,如果您仅修改我的sqlite代码以循环遍历所有消息(行),则可以获取所需的任何SMS内容.

If so, look at my answer to this other question recently. See the mostRecentSMS method I posted. That only reads the newest SMS, but if you simply modify my sqlite code to loop over all messages (rows), you can get whatever SMS content you want.

(例如,取消注释我在此处显示的while循环:while (sqlite3_step(statement) == SQLITE_ROW)而不是使用if语句)

(e.g. uncomment the while loop I show there: while (sqlite3_step(statement) == SQLITE_ROW) instead of using the if statement)

这篇关于如何从iPhone(xcode)获取短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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