Lessica / attach-and-detach

Mount .dmg on iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attach & Detach

I found this from Comex, and async_wake_ios, another modified version. I just wrote a build script to make it a package :-)

You can mount iOS Developer Disk Image without Xcode. Tested on Checkra1n 0.9.7 and iOS 13.3.

Build

./build.sh

Usage

# 1. attach an image
attach DeveloperDiskImage.dmg

Example:

iPhone:~ root# attach DeveloperDiskImage.dmg
/dev/disk6
# 2. create mount point
mkdir -p /mnt/dmg

# 3. mount disk
mount_hfs -o ro /dev/disk6 /mnt/dmg

Example (ignore such error):

iPhone:~ root# mount_hfs -o ro /dev/disk6 /mnt/dmg
mount_hfs: Could not create property for re-key environment check: No such file or directory
iPhone:~ root# ls /mnt/dmg/
Applications/  Library/  System/  usr/
# 4. umount disk
umount /mnt/dmg

# 5. detach dmg
detach /dev/disk6

About

Mount .dmg on iOS


Languages

Language:C 80.1%Language:Objective-C 19.7%Language:Shell 0.2%