我可以在哪里使用iPhone应用程序在iPhone中找到sms.db文件 [英] where can i find sms.db file in my iphone using iPhone app
本文介绍了我可以在哪里使用iPhone应用程序在iPhone中找到sms.db文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个要求,就是我需要在iPhone应用程序中阅读短信。我知道这只有在越狱的iPhone中才有可能。我的iPhone也是越狱设备。但我无法获取sms.db文件。我在哪里可以找到短信数据库,可以帮助我,给我一些示例源代码。
I have requirement that is i need to read sms message using in my iphone app. I know this only possible in jailbroken iPhone. My iPhone also jailbroken device. but i not able to get sms.db file. where can i find sms database can any one help me, give me some sample source code.
推荐答案
sms.db
文件位于 /private/var/mobile/Library/SMS/sms.db中。
您可以通过任何收藏夹进行访问程序(例如iPhone Explorer)并浏览到此位置。
sms.db
file is located in /private/var/mobile/Library/SMS/sms.db.
You can simply access it through any favorite program (such as iPhone Explorer) and browse to this location.
示例代码:
NSString* path = @"/var/mobile/Library/SMS";
NSError* error = nil;
NSArray* files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:&error];
这篇关于我可以在哪里使用iPhone应用程序在iPhone中找到sms.db文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文