且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在iOS上阅读sms.db和call_history.db文件?

更新时间:2023-12-04 15:03:28

访问这些问题不是root权限,而是沙盒规则。只要您离开沙箱,就可以阅读它们。不知道为什么你的root应用程序无法读取它但它应该。除了沙箱之外没有其他限制。写入这些数据库需要root权限,但每个人都可以读取它们。我甚至记得从越狱手机上的常规AppStore应用程序中读取它们。越狱破坏了一些沙盒规则,因此你可以在文件系统的任何地方阅读。例如,这就是一些越狱探测器的工作方式。

Problem with accessing these is not root permissions but sandbox rules. As long as you're out of the sandbox you can read them. Don't know why your root application couldn't read it but it should. There is no other restrictions apart from the sandbox. Root permissions are needed to write to those databases but everybody can read them. I even rememeber reading them from inside of regular AppStore app on jailbroken phone. Jailbreak breaks some of the sandbox rules so you can read I think anywhere in the file system. That's how some jailbreak detectors work, for example.