gpt4 book ai didi

ios - 无需越狱即可访问 iOS 文件系统?

转载 作者:可可西里 更新时间:2023-11-01 03:28:49 24 4
gpt4 key购买 nike

我想编写/使用一个可以访问 iOS 文件系统(非越狱)的开源脚本。在越狱设备上,我使用 ssh/scp 访问设备,从设备传输数据。目的是将 iOS 文件系统 的某些部分(比如 /var/mobile/Applications/xxx-xxxx/Documents)复制到 Mac,从 非越狱设备使用一些脚本。我看到像 iFunBox 这样的工具能够做到这一点。想知道它能做到这一点。

我遇到了 mobiledevice.h但无法真正理解如何使用它。

此外,我更愿意通过 USB 完成此操作。对于越狱设备,我使用 tcprelay.py用于执行 usb 隧道。有什么东西可以用于非越狱设备吗?

最佳答案

您可以安装此处托管的 ifuse 工具:https://github.com/libimobiledevice/ifuse

为了编译该工具,您需要一组工作的 Gnu 工具(make、libtool 等)。

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

注意:更新您的 .bash_profile(或类似文件)以包括以下内容:

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

此过程的其余部分应该需要几分钟时间

安装fuse4x

sudo port install fuse4x

构建依赖项:

checkout :https://github.com/libimobiledevice/libplist , cd 进入结帐,然后运行:

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

checkout :https://github.com/libimobiledevice/libusbmuxd , cd 进入结帐,然后运行:

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

checkout :https://github.com/libimobiledevice/libimobiledevice , cd 进入结帐,然后运行:

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

(如果你在 Linux 上,你还需要在构建 libusbmuxd 和 libimobiledevice 之后安装 usbmuxd。。否则,对于 Windows 和 OSX ......)

现在构建 iFuse:

checkout :https://github.com/libimobiledevice/ifuse

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

使用 ifuse 访问您应用的文档目录:

制作挂载目录:

sudo mkdir -p /Volumes/myapp.app

现在挂载应用程序的目录:

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

其中 app id 是 bundle identifier 中显示的名称。 . 示例:

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

(引用附图)

enter image description here

关于ios - 无需越狱即可访问 iOS 文件系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18037591/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com