How to access the file system outside of the sandbox on an iOS device with jailbreak?

I am going to develop a simple application for jailbroken iOS devices. I would like to access the file system of the device outside the application sandbox and move some files (for example, from a directory to another).

How to do this using Xcode 3.1 or 4 compatible with OS version 3.1.3?

+2
source share
1 answer

Just use the NSFileManager. On a jailbreak device, this gives you full access to the file system - just give it the paths you want to communicate with. The contents of the directory can be obtained using the -contentsOfDirectoryAtPath:error: method and move files using -moveItemAtPath:toPath:error:

+1
source

Source: https://habr.com/ru/post/952154/


All Articles