Versions in this module Expand all Collapse all v1 v1.0.122 Apr 28, 2024 v1.0.121 Apr 27, 2024 Changes in this version + const Lockdownport + func ByteCountDecimal(b int64) string + func ConnectToHttp2(device DeviceEntry, port int) (*http.HttpConnection, error) + func ConnectToHttp2WithAddr(a string, port int) (*http.HttpConnection, error) + func ConnectToXpcServiceTunnelIface(device DeviceEntry, serviceName string) (*xpc.Connection, error) + func CreateXpcConnection(h *http.HttpConnection) (*xpc.Connection, error) + func FindDeviceInterfaceAddress(ctx context.Context, device DeviceEntry) (string, error) + func FixWindowsPaths(path string) string + func GenericSliceToType[T any](input []interface{}) ([]T, error) + func GetAssistiveTouch(device DeviceEntry) (bool, error) + func GetProductVersion(device DeviceEntry) (*semver.Version, error) + func GetSocketTypeAndAddress(socketAddress string) (string, string) + func GetUsbmuxdSocket() string + func GetUses24HourClock(device DeviceEntry) (bool, error) + func GetValuesPlist(device DeviceEntry) (map[string]interface{}, error) + func GetVoiceOver(device DeviceEntry) (bool, error) + func GetWifiMac(device DeviceEntry) (string, error) + func GetZoomTouch(device DeviceEntry) (bool, error) + func IOS11() *semver.Version + func IOS12() *semver.Version + func IOS14() *semver.Version + func IOS17() *semver.Version + func InterfaceToStringSlice(intfSlice interface{}) []string + func Listen() (func() (AttachedMessage, error), func() error, error) + func Ntohs(port uint16) uint16 + func Pair(device DeviceEntry) error + func PairSupervised(device DeviceEntry, p12bytes []byte, p12Password string) error + func ParsePlist(data []byte) (map[string]interface{}, error) + func PathExists(path string) (bool, error) + func RsdCheckin(rw io.ReadWriter) error + func SetAssistiveTouch(device DeviceEntry, enabled bool) error + func SetLanguage(device DeviceEntry, config LanguageConfiguration) error + func SetSystemTime(device DeviceEntry) error + func SetTime(device DeviceEntry, timeZone string, time int64) error + func SetUses24HourClock(device DeviceEntry, enabled bool) error + func SetVoiceOver(device DeviceEntry, enabled bool) error + func SetZoomTouch(device DeviceEntry, enabled bool) error + func Sign(challengeBytes []byte, cert *x509.Certificate, ...) ([]byte, error) + func ToBinPlistBytes(data interface{}) []byte + func ToPlist(data interface{}) string + func ToPlistBytes(data interface{}) []byte + func ToUnixSocketPath(socketAddress string) string + type AllValuesType struct + ActivationState string + ActivationStateAcknowledged bool + BasebandActivationTicketVersion string + BasebandCertID int + BasebandChipID int + BasebandKeyHashInformation BasebandKeyHashInformationType + BasebandMasterKeyHash string + BasebandRegionSKU []byte + BasebandSerialNumber []byte + BasebandStatus string + BasebandVersion string + BluetoothAddress string + BoardID int + BrickState bool + BuildVersion string + CPUArchitecture string + CarrierBundleInfoArray []interface{} + CertID int + ChipID int + ChipSerialNo []byte + DeviceClass string + DeviceColor string + DeviceName string + DieID int + EthernetAddress string + FirmwareVersion string + FusingStatus int + HardwareModel string + HardwarePlatform string + HasSiDP bool + HostAttached bool + InternationalMobileEquipmentIdentity string + KCTPostponementInfoPRIVersion string + KCTPostponementInfoPRLName int + KCTPostponementInfoServiceProvisioningState bool + KCTPostponementStatus string + MLBSerialNumber string + MobileEquipmentIdentifier string + MobileSubscriberCountryCode string + MobileSubscriberNetworkCode string + ModelNumber string + NonVolatileRAM NonVolatileRAMType + PartitionType string + PasswordProtected bool + PkHash []byte + ProductName string + ProductType string + ProductVersion string + ProductionSOC bool + ProtocolVersion string + ProximitySensorCalibration []byte + RegionInfo string + SBLockdownEverRegisteredKey bool + SIMStatus string + SIMTrayStatus string + SerialNumber string + SoftwareBehavior []byte + SoftwareBundleVersion string + SupportedDeviceFamilies []int + TelephonyCapability bool + TimeIntervalSince1970 float64 + TimeZone string + TimeZoneOffsetFromUTC float64 + TrustedHostAttached bool + UniqueChipID uint64 + UniqueDeviceID string + UseRaptorCerts bool + Uses24HourClock bool + WiFiAddress string + WirelessBoardSerialNumber string + type AttachedMessage struct + DeviceID int + MessageType string + Properties DeviceProperties + func (a AttachedMessage) DeviceEntry() DeviceEntry + func (msg AttachedMessage) DeviceAttached() bool + func (msg AttachedMessage) DeviceDetached() bool + type BasebandKeyHashInformationType struct + AKeyStatus int + SKeyHash []byte + SKeyStatus int + type BatteryInfo struct + BatteryCurrentCapacity uint64 + BatteryIsCharging bool + ExternalChargeCapable bool + ExternalConnected bool + FullyCharged bool + GasGaugeCapability bool + HasBattery bool + func GetBatteryDiagnostics(device DeviceEntry) (BatteryInfo, error) + type CaCertificate struct + CertDER []byte + CertPEM []byte + Csr string + PrivateKeyDER []byte + PrivateKeyPEM []byte + func CreateDERFormattedSupervisionCert() (*CaCertificate, error) + type Connection struct + type DeviceConnection struct + func NewDeviceConnection(socketToConnectTo string) (*DeviceConnection, error) + func NewDeviceConnectionWithConn(conn net.Conn) *DeviceConnection + func (conn *DeviceConnection) Close() error + func (conn *DeviceConnection) Conn() net.Conn + func (conn *DeviceConnection) DisableSessionSSL() + func (conn *DeviceConnection) EnableSessionSsl(pairRecord PairRecord) error + func (conn *DeviceConnection) EnableSessionSslHandshakeOnly(pairRecord PairRecord) error + func (conn *DeviceConnection) EnableSessionSslServerMode(pairRecord PairRecord) error + func (conn *DeviceConnection) EnableSessionSslServerModeHandshakeOnly(pairRecord PairRecord) error + func (conn *DeviceConnection) Read(p []byte) (n int, err error) + func (conn *DeviceConnection) Reader() io.Reader + func (conn *DeviceConnection) Send(bytes []byte) error + func (conn *DeviceConnection) Write(p []byte) (n int, err error) + func (conn *DeviceConnection) Writer() io.Writer + type DeviceConnectionInterface interface + Close func() error + Conn func() net.Conn + DisableSessionSSL func() + EnableSessionSsl func(pairRecord PairRecord) error + EnableSessionSslHandshakeOnly func(pairRecord PairRecord) error + EnableSessionSslServerMode func(pairRecord PairRecord) error + EnableSessionSslServerModeHandshakeOnly func(pairRecord PairRecord) error + Reader func() io.Reader + Send func(message []byte) error + Writer func() io.Writer + func ConnectToService(device DeviceEntry, serviceName string) (DeviceConnectionInterface, error) + func ConnectToServiceTunnelIface(device DeviceEntry, serviceName string) (DeviceConnectionInterface, error) + func ConnectToShimService(device DeviceEntry, service string) (DeviceConnectionInterface, error) + type DeviceEntry struct + Address string + DeviceID int + MessageType string + Properties DeviceProperties + Rsd RsdPortProvider + func GetDevice(udid string) (DeviceEntry, error) + func GetDeviceWithAddress(udid string, address string, provider RsdPortProvider) (DeviceEntry, error) + type DeviceList struct + DeviceList []DeviceEntry + func DeviceListfromBytes(plistBytes []byte) DeviceList + func ListDevices() (DeviceList, error) + func (deviceList DeviceList) CreateMapForJSONConverter() map[string]interface{} + func (deviceList DeviceList) String() string + type DeviceProperties struct + ConnectionSpeed int + ConnectionType string + DeviceID int + LocationID int + ProductID int + SerialNumber string + type FullPairRecordData struct + DeviceCertificate []byte + HostCertificate []byte + HostID string + RootCertificate []byte + SystemBUID string + type GetAllValuesResponse struct + Request string + Value AllValuesType + func GetValues(device DeviceEntry) (GetAllValuesResponse, error) + type LanguageConfiguration struct + Language string + Locale string + SupportedLanguages []string + SupportedLocales []string + func GetLanguage(device DeviceEntry) (LanguageConfiguration, error) + type ListenType struct + ClientVersionString string + ConnType int + MessageType string + ProgName string + func NewListen() ListenType + type LockDownConnection struct + func ConnectLockdownWithSession(device DeviceEntry) (*LockDownConnection, error) + func NewLockDownConnection(dev DeviceConnectionInterface) *LockDownConnection + func (lockDownConn *LockDownConnection) Close() + func (lockDownConn *LockDownConnection) Conn() net.Conn + func (lockDownConn *LockDownConnection) GetProductVersion() (string, error) + func (lockDownConn *LockDownConnection) GetValue(key string) (interface{}, error) + func (lockDownConn *LockDownConnection) GetValueForDomain(key string, domain string) (interface{}, error) + func (lockDownConn *LockDownConnection) GetValues() (GetAllValuesResponse, error) + func (lockDownConn *LockDownConnection) ReadMessage() ([]byte, error) + func (lockDownConn *LockDownConnection) SetValueForDomain(key string, domain string, value interface{}) error + func (lockDownConn *LockDownConnection) StartService(serviceName string) (StartServiceResponse, error) + func (lockDownConn *LockDownConnection) StartSession(pairRecord PairRecord) (StartSessionResponse, error) + func (lockDownConn *LockDownConnection) StopSession() + func (lockDownConn LockDownConnection) DisableSessionSSL() + func (lockDownConn LockDownConnection) EnableSessionSsl(pairRecord PairRecord) error + func (lockDownConn LockDownConnection) EnableSessionSslServerMode(pairRecord PairRecord) error + func (lockDownConn LockDownConnection) Send(msg interface{}) error + type LockDownPairRequest struct + Label string + PairRecord FullPairRecordData + PairingOptions PairingOptions + ProtocolVersion string + Request string + type LockdownPairResponse struct + Error string + EscrowBag []byte + Request string + type MuxResponse struct + MessageType string + Number uint32 + func MuxResponsefromBytes(plistBytes []byte) MuxResponse + func (u MuxResponse) IsSuccessFull() bool + type NonVolatileRAMType struct + AutoBoot []byte + BacklightLevel []byte + BootArgs string + Bootdelay []byte + ComAppleSystemTz0Size []byte + OblitBegins []byte + Obliteration []byte + type PairRecord struct + DeviceCertificate []byte + EscrowBag []byte + HostCertificate []byte + HostID string + HostPrivateKey []byte + RootCertificate []byte + RootPrivateKey []byte + SystemBUID string + WiFiMACAddress string + func PairRecordfromBytes(plistBytes []byte) PairRecord + func ReadPairRecord(udid string) (PairRecord, error) + type PairRecordData struct + PairRecordData []byte + type PairingOptions struct + ExtendedPairingErrors bool + type PlistCodec struct + func NewPlistCodec() PlistCodec + func (plistCodec PlistCodec) Decode(r io.Reader) ([]byte, error) + func (plistCodec PlistCodec) Encode(message interface{}) ([]byte, error) + type PlistCodecReadWriter struct + func NewPlistCodecReadWriter(r io.Reader, w io.Writer) PlistCodecReadWriter + func (p PlistCodecReadWriter) Read(v interface{}) error + func (p PlistCodecReadWriter) Write(m interface{}) error + type ReadDevicesType struct + ClientVersionString string + MessageType string + ProgName string + func NewReadDevices() ReadDevicesType + type ReadPair struct + BundleID string + ClientVersionString string + LibUSBMuxVersion uint32 + MessageType string + PairRecordID string + ProgName string + type RsdHandshakeResponse struct + Services map[string]RsdServiceEntry + Udid string + func (r RsdHandshakeResponse) GetPort(service string) int + func (r RsdHandshakeResponse) GetService(p int) string + type RsdPortProvider interface + GetPort func(service string) int + GetService func(p int) string + type RsdPortProviderJson map[string]service + func NewRsdPortProvider(input io.Reader) (RsdPortProviderJson, error) + func (r RsdPortProviderJson) GetPort(service string) int + func (r RsdPortProviderJson) GetService(p int) string + type RsdService struct + func NewWithAddr(addr string) (RsdService, error) + func NewWithAddrPort(addr string, port int) (RsdService, error) + func (s RsdService) Close() error + func (s RsdService) Handshake() (RsdHandshakeResponse, error) + type RsdServiceEntry struct + Port uint32 + type SavePair struct + BundleID string + ClientVersionString string + LibUSBMuxVersion uint32 + MessageType string + PairRecordData []byte + PairRecordID string + ProgName string + type StartServiceResponse struct + EnableServiceSSL bool + Error string + Port uint16 + Request string + Service string + func StartService(device DeviceEntry, serviceName string) (StartServiceResponse, error) + type StartSessionResponse struct + EnableSessionSSL bool + Request string + SessionID string + type UsbMuxConnection struct + func NewUsbMuxConnection(deviceConn DeviceConnectionInterface) *UsbMuxConnection + func NewUsbMuxConnectionSimple() (*UsbMuxConnection, error) + func (muxConn *UsbMuxConnection) Close() error + func (muxConn *UsbMuxConnection) Connect(deviceID int, port uint16) error + func (muxConn *UsbMuxConnection) ConnectLockdown(deviceID int) (*LockDownConnection, error) + func (muxConn *UsbMuxConnection) ListDevices() (DeviceList, error) + func (muxConn *UsbMuxConnection) Listen() (func() (AttachedMessage, error), error) + func (muxConn *UsbMuxConnection) ReadBuid() (string, error) + func (muxConn *UsbMuxConnection) ReadMessage() (UsbMuxMessage, error) + func (muxConn *UsbMuxConnection) ReadPair(udid string) (PairRecord, error) + func (muxConn *UsbMuxConnection) ReleaseDeviceConnection() DeviceConnectionInterface + func (muxConn *UsbMuxConnection) Send(msg interface{}) error + func (muxConn *UsbMuxConnection) SendMuxMessage(msg UsbMuxMessage) error + type UsbMuxHeader struct + Length uint32 + Request uint32 + Tag uint32 + Version uint32 + type UsbMuxMessage struct + Header UsbMuxHeader + Payload []byte + type ValueResponse struct + Domain string + Error string + Key string + Request string + Value interface{}