越狱的iPhone-超级用户特权 [英] Jailbroken iPhone - root privileges

查看:114
本文介绍了越狱的iPhone-超级用户特权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个可以管理越狱设备(例如SMS,Notes .db)上某些文件的应用程序,但是我在访问此类文件时遇到了问题.我还只是为了测试自己的技能,例如文件管理器之类的类似应用程序,并且我可以浏览几乎整个文件系统并访问除/var/mobile/Library/中的某些文件夹以外的所有内容.我得到了/var/mobile/Library的内容列表,但在诸如/var/mobile/Library/Notes/,/var/mobile/Library/SBSettings/等子目录中却什么也没有得到,最重要的是: /var/mobile/Library/SMS/或/Notes/不显示任何内容. 当然,当我使用Fugu通过SSH浏览设备时,我拥有了所有内容并可以访问所有内容(例如chmod)

I would like to make an app that will manage some files on jailbroken devices like SMS, Notes .db, but I have problems with accessing such files. I've also made just to test my skills, similar application like your file manager and I could browse almost whole file system and access everything except some folders in /var/mobile/Library/. I get a list of contents of /var/mobile/Library but I get nothing in subdirectories like /var/mobile/Library/Notes/, /var/mobile/Library/SBSettings/, and btw what is most important in my case: /var/mobile/Library/SMS/ or /Notes/ displays nothing. Of course when I browse my device by SSH using Fugu I got everything and have access to everything (like chmod i.e.)

如果您能给我一些建议或源代码,我应该怎么做,我想root的特权不仅可以访问这些文件,还可以更改它们的权限和名称. 我知道如何通常使用NSFileManager进行此类操作,但不能对////SMS/等以上目录中的文件进行操作.

I would be great if you please give me some advices or source code what should I do to have, I guess the root's privileges, not only to access those files, but also change their permissions and names. I know how to make such operations using typically NSFileManager, but not on files from the directories above like /.../SMS/.

我从未开发过严格需要越狱设备来执行给定任务的应用程序.我相信我将需要一些额外的库吗?是真的吗我可以使用Xcode还是可以开发其他应用程序.

I've never developed an application that strictly need jailbroken device to perform the given tasks. I believe I will need some extra libraries? Is it true? Can I use Xcode or there is something else to develop such apps.

我将非常感谢!

推荐答案

即使是越狱,通过Xcode或App Store安装的应用程序仍会被沙箱化.要获得对整个文件系统的只读访问权限,必须将应用程序安装在/Applications/中,而不是在/var/mobile/Applications/中.要获得对整个文件系统的写访问权,该应用程序还必须由root拥有,并使用setuid模式标记

Even when jailbroken, applications installed via Xcode or the App Store are still sandboxed. To get read-only access to the entire filesystem, an application has to be installed in /Applications/ instead of /var/mobile/Applications/. To get write access to the entire filesystem, the application would additionally have to be owned by root and be flagged with the setuid mode

这篇关于越狱的iPhone-超级用户特权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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