简体   繁体   English

越狱iPhone - root权限

[英]Jailbroken iPhone - root privileges

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. 我想制作一个应用程序来管理越狱设备上的一些文件,如SMS,Notes .db,但我在访问这些文件时遇到问题。 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/. 我也只是为了测试我的技能,类似于文件管理器的应用程序,我可以浏览几乎整个文件系统并访问除/ 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. 我得到了/ var / mobile / Library的内容列表,但我在/ var / mobile / Library / Notes /,/ var / mobile / Library / SBSettings /等子目录中什么都没有得到,以及btw在我的情况下最重要的是: / var / mobile / Library / SMS /或/ Notes /什么都不显示。 Of course when I browse my device by SSH using Fugu I got everything and have access to everything (like chmod ie) 当然,当我使用Fugu通过SSH浏览我的设备时,我得到了所有内容并且可以访问所有内容(例如chmod ie)

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. 如果你能给我一些建议或源代码,我会很高兴我应该做什么,我想root的权限,不仅要访问这些文件,还要更改他们的权限和名称。 I know how to make such operations using typically NSFileManager, but not on files from the directories above like /.../SMS/. 我知道如何使用典型的NSFileManager进行此类操作,但不知道如上所述目录中的文件,如/.../SMS/。

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还是有其他东西来开发这样的应用程序。

I would be very grateful! 我会很感激!

Even when jailbroken, applications installed via Xcode or the App Store are still sandboxed. 即使在越狱时,通过Xcode或App Store安装的应用程序仍然是沙箱。 To get read-only access to the entire filesystem, an application has to be installed in /Applications/ instead of /var/mobile/Applications/ . 要获得对整个文件系统的只读访问权限,必须在/Applications/而不是/var/mobile/Applications/安装/Applications/ /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 要获得对整个文件系统的写访问权限,应用程序还必须由root拥有并使用setuid模式进行标记

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

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