Documentation ¶
Index ¶
- func Download17Plus(device ios.DeviceEntry, baseDir string, version *semver.Version) (string, error)
- func DownloadImageFor(device ios.DeviceEntry, baseDir string) (string, error)
- func IsDevModeEnabled(device ios.DeviceEntry) (bool, error)
- func MatchAvailable(version string) string
- func MountImage(device ios.DeviceEntry, path string) error
- type DeveloperDiskImageMounter
- type ImageMounter
- type PersonalizedDeveloperDiskImageMounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download17Plus ¶ added in v1.0.124
func DownloadImageFor ¶
func DownloadImageFor(device ios.DeviceEntry, baseDir string) (string, error)
func IsDevModeEnabled ¶ added in v1.0.121
func IsDevModeEnabled(device ios.DeviceEntry) (bool, error)
Check if developer mode is enabled through the mobile_image_mounter service
func MatchAvailable ¶ added in v1.0.38
func MountImage ¶ added in v1.0.38
func MountImage(device ios.DeviceEntry, path string) error
Types ¶
type DeveloperDiskImageMounter ¶ added in v1.0.121
type DeveloperDiskImageMounter struct {
// contains filtered or unexported fields
}
DeveloperDiskImageMounter to mobile image mounter
func NewDeveloperDiskImageMounter ¶ added in v1.0.121
func NewDeveloperDiskImageMounter(device ios.DeviceEntry, version *semver.Version) (*DeveloperDiskImageMounter, error)
NewDeveloperDiskImageMounter returns a new mobile image mounter DeveloperDiskImageMounter for the given device
func (*DeveloperDiskImageMounter) Close ¶ added in v1.0.121
func (conn *DeveloperDiskImageMounter) Close() error
Close closes the underlying UsbMuxConnection
func (*DeveloperDiskImageMounter) ListImages ¶ added in v1.0.121
func (conn *DeveloperDiskImageMounter) ListImages() ([][]byte, error)
ListImages returns a list with signatures of installed developer images
func (*DeveloperDiskImageMounter) MountImage ¶ added in v1.0.121
func (conn *DeveloperDiskImageMounter) MountImage(imagePath string) error
MountImage installs a .dmg image from imagePath after checking that it is present and valid.
type ImageMounter ¶ added in v1.0.121
type ImageMounter interface { ListImages() ([][]byte, error) MountImage(imagePath string) error io.Closer }
ImageMounter mounts developer disk images to an iOS device, and give a list of already mounted images
func NewImageMounter ¶ added in v1.0.121
func NewImageMounter(device ios.DeviceEntry) (ImageMounter, error)
NewImageMounter creates a new ImageMounter depending on the version of the given device. For iOS 17+ devices a PersonalizedDeveloperDiskImageMounter is created, and for all other devices a DeveloperDiskImageMounter gets created
type PersonalizedDeveloperDiskImageMounter ¶ added in v1.0.121
type PersonalizedDeveloperDiskImageMounter struct {
// contains filtered or unexported fields
}
PersonalizedDeveloperDiskImageMounter allows mounting personalized developer disk images that are used starting with iOS 17. For personalized developer disk images a nonce gets queried from the device and needs to be signed by Apple to be able to mount the developer disk
func NewPersonalizedDeveloperDiskImageMounter ¶ added in v1.0.121
func NewPersonalizedDeveloperDiskImageMounter(entry ios.DeviceEntry, version *semver.Version) (PersonalizedDeveloperDiskImageMounter, error)
NewPersonalizedDeveloperDiskImageMounter creates a PersonalizedDeveloperDiskImageMounter for the device entry
func (PersonalizedDeveloperDiskImageMounter) Close ¶ added in v1.0.121
func (p PersonalizedDeveloperDiskImageMounter) Close() error
Close closes the connection to the image mounter service
func (PersonalizedDeveloperDiskImageMounter) ListImages ¶ added in v1.0.121
func (p PersonalizedDeveloperDiskImageMounter) ListImages() ([][]byte, error)
ListImages provides a list of signatures of the mounted personalized developer disk images
func (PersonalizedDeveloperDiskImageMounter) MountImage ¶ added in v1.0.121
func (p PersonalizedDeveloperDiskImageMounter) MountImage(imagePath string) error
MountImage mounts the personalized developer disk image present at imagePath. imagePath needs to point to the 'Restore' directory of the personalized developer disk image.
MountImage gets device identifiers and a nonce from the device first, which needs to be signed by Apple and after that the developer disk image is sent to the device with this signature to be able to mount it.