Access iOS filesystem without jailbreak?

瘦欲@ 提交于 2019-12-04 04:32:57

The MobileDeviceManager library brings us simple filesystem operations (it's an easy-to-use Objective-C wrapper around the MobileDevice framework you have come across).

The thing is that it doesn't support copying files from the device to the computer, only the other way around. So, in order to work around this issue, I've created a patch (GitHub gist) that you can merge into the included sample program to have it understand the copyFrom command.

You can install the ifuse tool, which is hosted here: https://github.com/libimobiledevice/ifuse

In order to compile this tool, you will need the a working set of Gnu-tools (make, libtool, etc).

#Don't worry - clang is still default
sudo port install gcc48 

NB: Update your .bash_profile (or similar) to include the following:

#Important - this is where your compiled libs will get installed to, so we need this
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/** 

The rest of this process should take a few minutes

Install fuse4x

sudo port install fuse4x

Build the dependencies:

Check out: https://github.com/libimobiledevice/libplist, cd into the checkout, and run:

./autogen.sh
./configure
make
sudo make install

Check out: https://github.com/libimobiledevice/libusbmuxd, cd into the checkout, and run:

./autogen.sh
./configure
make
sudo make install

Check out: https://github.com/libimobiledevice/libimobiledevice, cd into the checkout, and run:

./autogen.sh
./configure
make
sudo make install

(If you're on Linux you'll also need to install usbmuxd, after building libusbmuxd and libimobiledevice. . otherwise, for Windows and OSX . . . )

Now build iFuse:

Check out: https://github.com/libimobiledevice/ifuse

./autogen.sh
./configure
make
sudo make install

To use ifuse to access your app's documents directory:

Make a mount directory:

sudo mkdir -p /Volumes/myapp.app

Now mount the app's dir:

ifuse --container <appid> /Volumes/abced.app

Where app id is the name what's displayed in the bundle identifier . . example:

 ifuse --container mycompany.ABCED.com /Volumes/abced.app/

(Refer to the attached pic)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!