简体   繁体   English

如何访问iPhone SMS数据库?

[英]How to access iPhone SMS db?

我是iPhone技术的初学者,所以我不知道如何访问iPhone SMS数据库?

您可以访问iPhone数据库来访问移动库路径,并使用该路径附加SMS.db文件,您将可以访问iPhone SMS。

If you are working in JailBreak Phone,you can access the SMS by using this path :- 如果您在JailBreak Phone中工作,则可以使用以下路径访问SMS:

/private/var/mobile/Library/SMS/sms.db /private/var/mobile/Library/SMS/sms.db

You can't access SMS db programmatically. 您不能以编程方式访问SMS数据库。 There is no public API Provided by Apple . Apple没有提供公共API

The easiest way is to make a backup of the iPhone in iTunes, then access the backup file location, explained here: https://support.apple.com/en-gb/HT204215 最简单的方法是在iTunes中对iPhone进行备份,然后访问备份文件的位置,在这里说明: https : //support.apple.com/zh-cn/HT204215

Once you are in the backup folder, you can search for the sms.db file by its hashed filename - 3d0d7e5fb2ce288813306e4d4636395e047a3d28 for sms.db 进入备份文件夹后,您可以通过其哈希文件名搜索sms.db文件-3d0d7e5fb2ce288813306e4d4636395e047a3d28查找sms.db

When you find the file, copy and paste the file somewhere else - you can rename the new copy sms.db if you want. 找到文件后,将文件复制并粘贴到其他位置-如果需要,可以重命名新的副本sms.db。 It's a SQLite db so open in the editor of your choice. 这是一个SQLite数据库,因此在您选择的编辑器中打开。 In theory you can edit the db, replace the original file in the backup and then restore it to your iPhone. 从理论上讲,您可以编辑数据库,替换备份中的原始文件,然后将其还原到iPhone。

A list of other interesting files in the iTunes backup can be found here: https://www.iphonebackupextractor.com/blog/iphone-backup-location-all-files-extension/ iTunes备份中其他有趣文件的列表可以在这里找到: https : //www.iphonebackupextractor.com/blog/iphone-backup-location-all-files-extension/

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

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