Versions in this module Expand all Collapse all v0 v0.3.0 Jun 26, 2023 v0.2.0 Jun 26, 2023 v0.1.0 Jun 26, 2023 Changes in this version + const AfcErrDirNotEmpty + const AfcErrEndOfData + const AfcErrInternalError + const AfcErrInvalidArgument + const AfcErrIoError + const AfcErrMuxError + const AfcErrNoMemory + const AfcErrNoResources + const AfcErrNoSpaceLeft + const AfcErrNotEnoughData + const AfcErrObjectBusy + const AfcErrObjectExists + const AfcErrObjectIsDir + const AfcErrObjectNotFound + const AfcErrOperationHeaderInvalid + const AfcErrOperationInProgress + const AfcErrOperationInterrupted + const AfcErrOperationNotSupported + const AfcErrOperationTimeout + const AfcErrOperationWouldBlock + const AfcErrPermDenied + const AfcErrReadError + const AfcErrServiceNotConnected + const AfcErrSuccess + const AfcErrTooMuchData + const AfcErrUnknownError + const AfcErrUnknownPacketType + const AfcErrWriteError + const AfcOperationData + const AfcOperationDirectoryEnumeratorRefClose + const AfcOperationDirectoryEnumeratorRefOpen + const AfcOperationDirectoryEnumeratorRefOpenResult + const AfcOperationDirectoryEnumeratorRefRead + const AfcOperationFileClose + const AfcOperationFileOpen + const AfcOperationFileOpenResult + const AfcOperationFileRead + const AfcOperationFileRefLock + const AfcOperationFileRefReadWithOffset + const AfcOperationFileRefWriteWithOffset + const AfcOperationFileSeek + const AfcOperationFileSetImmutableHint + const AfcOperationFileSetSize + const AfcOperationFileTell + const AfcOperationFileTellResult + const AfcOperationFileWrite + const AfcOperationGetConnectionInfo + const AfcOperationGetDeviceInfo + const AfcOperationGetFileHash + const AfcOperationGetFileHashRange + const AfcOperationGetFileInfo + const AfcOperationGetSizeOfPathContents + const AfcOperationInvalid + const AfcOperationMakeDir + const AfcOperationMakeLink + const AfcOperationReadDir + const AfcOperationReadFile + const AfcOperationRemovePath + const AfcOperationRemovePathAndContents + const AfcOperationRenamePath + const AfcOperationSetConnectionOptions + const AfcOperationSetFSBlockSize + const AfcOperationSetFileModTime + const AfcOperationSetSocketBlockSize + const AfcOperationStatus + const AfcOperationTruncateFile + const AfcOperationWriteFile + const AfcOperationWriteFileAtomic + const AfcOperationWritePart + const AfcServiceName + const BundleID + const ClientVersion + const CrashReportCopyMobileServiceName + const CrashReportMoverServiceName + const DiagnosticsRelayServiceName + const HouseArrestServiceName + const ImageMounterServiceName + const InstallationProxyServiceName + const InstrumentsSecureProxyServiceName + const InstrumentsServiceName + const LibUSBMuxVersion + const LockdownPort + const PcapdServiceName + const ProgramName + const ProtocolVersion + const ScreenshotServiceName + const SimulateLocationServiceName + const SpringBoardServiceName + const SyslogRelayServiceName + const TestmanagerdSecureServiceName + const TestmanagerdServiceName + var DefaultDeadlineTimeout = 30 * time.Second + var ErrDeviceLocked = errors.New("device locked") + var NSArrayClass = &ArchiverClasses + var NSDataClass = &ArchiverClasses + var NSDateClass = &ArchiverClasses + var NSDictionaryClass = &ArchiverClasses + var NSErrorClass = &ArchiverClasses + var NSMutableArrayClass = &ArchiverClasses + var NSMutableDataClass = &ArchiverClasses + var NSMutableDictionaryClass = &ArchiverClasses + var PacketHeaderSize = uint32(95) + func SetDebug(debug bool) + func UnmarshalAuxBuffer(b []byte) ([]interface{}, error) + type AfcClient struct + func NewAfcClient(innerConn InnerConn) *AfcClient + func (c *AfcClient) Receive() (respMsg *AfcMessage, err error) + func (c *AfcClient) Send(operation uint64, data, payload []byte) (err error) + type AfcMessage struct + Data []byte + Operation uint64 + Payload []byte + func (m *AfcMessage) Err() error + func (m *AfcMessage) Map() map[string]string + func (m *AfcMessage) Strings() []string + func (m *AfcMessage) Uint64() uint64 + type ApplicationType string + const ApplicationTypeAny + const ApplicationTypeInternal + const ApplicationTypeSystem + const ApplicationTypeUser + type ArchiverClasses struct + ClassName string + Classes []string + type ArchiverRoot struct + Root plist.UID + type AuxBuffer struct + func NewAuxBuffer() *AuxBuffer + func (m *AuxBuffer) AppendBytes(b []byte) + func (m *AuxBuffer) AppendInt32(v int32) + func (m *AuxBuffer) AppendInt64(v int64) + func (m *AuxBuffer) AppendObject(obj interface{}) error + func (m *AuxBuffer) AppendUInt32(v uint32) + func (m *AuxBuffer) AppendUInt64(v uint64) + func (m *AuxBuffer) Bytes() []byte + func (m *AuxBuffer) Len() int + type BaseDevice struct + DeviceID int + MessageType MessageType + Properties DeviceProperties + type BasicRequest struct + BundleID string + ClientVersionString string + LibUSBMuxVersion uint + MessageType MessageType + ProgramName string + type CommandType string + const CommandTypeBrowse + const CommandTypeInstall + const CommandTypeLookup + const CommandTypeLookupImage + const CommandTypeMountImage + const CommandTypeReceiveBytes + const CommandTypeUninstall + const CommandTypeVendContainer + const CommandTypeVendDocuments + type ConnectRequest struct + DeviceID int + PortNumber int + type CoordinateSystem string + const CoordinateSystemBD09 + const CoordinateSystemGCJ02 + const CoordinateSystemWGS84 + type CrashReportMoverClient struct + func NewCrashReportMoverClient(innerConn InnerConn) *CrashReportMoverClient + func (c *CrashReportMoverClient) InnerConn() InnerConn + type DTXMessageResult struct + Aux []interface{} + Header []byte + Obj interface{} + type DeletePairRecordRequest struct + PairRecordID string + type DeviceProperties struct + ConnectionSpeed int + ConnectionType string + DeviceID int + EscapedFullServiceName string + InterfaceIndex int + LocationID int + NetworkAddress []byte + ProductID int + SerialNumber string + UDID string + USBSerialNumber string + type DiagnosticsRelayBasicRequest struct + EntryClass *string + Label string + Request string + type DiagnosticsRelayClient struct + func NewDiagnosticsRelayClient(innerConn InnerConn) *DiagnosticsRelayClient + func (c *DiagnosticsRelayClient) InnerConn() InnerConn + func (c *DiagnosticsRelayClient) NewBasicRequest(relayType string, entryClass *string) *DiagnosticsRelayBasicRequest + func (c *DiagnosticsRelayClient) NewXmlPacket(req interface{}) (Packet, error) + func (c *DiagnosticsRelayClient) ReceivePacket() (respPkt Packet, err error) + func (c *DiagnosticsRelayClient) SendPacket(pkt Packet) (err error) + type HouseArrestBasicRequest struct + Command CommandType + Identifier string + type HouseArrestClient struct + func NewHouseArrestClient(innerConn InnerConn) *HouseArrestClient + func (c *HouseArrestClient) InnerConn() InnerConn + func (c *HouseArrestClient) NewBasicRequest(cmdType CommandType, bundleID string) *HouseArrestBasicRequest + func (c *HouseArrestClient) NewContainerRequest(bundleID string) *HouseArrestBasicRequest + func (c *HouseArrestClient) NewDocumentsRequest(bundleID string) *HouseArrestBasicRequest + func (c *HouseArrestClient) NewXmlPacket(req interface{}) (Packet, error) + func (c *HouseArrestClient) ReceivePacket() (respPkt Packet, err error) + func (c *HouseArrestClient) SendPacket(pkt Packet) (err error) + type IOSPacketHeader struct + FramePreLength uint32 + FramePstLength uint32 + HdrSize uint32 + IFName string + IO uint8 + PacketSize uint32 + Pid int32 + Pid2 int32 + ProcName string + ProcName2 string + ProtocolFamily uint32 + Type uint8 + Unit uint16 + Unknown uint32 + Unknown2 [8]byte + Version uint8 + type IconPNGDataResponse struct + PNGData []byte + type ImageMounterBasicRequest struct + Command CommandType + ImageType string + type ImageMounterBasicResponse struct + Status string + type ImageMounterClient struct + func NewImageMounterClient(innerConn InnerConn) *ImageMounterClient + func (c *ImageMounterClient) NewBasicRequest(cmdType CommandType, imgType string) *ImageMounterBasicRequest + func (c *ImageMounterClient) NewMountImageRequest(imgType, imgPath string, imgSignature []byte) *ImageMounterMountImageRequest + func (c *ImageMounterClient) NewReceiveBytesRequest(imgType string, imgSize uint32, imgSignature []byte) *ImageMounterReceiveBytesRequest + func (c *ImageMounterClient) NewXmlPacket(req interface{}) (Packet, error) + func (c *ImageMounterClient) ReceivePacket() (respPkt Packet, err error) + func (c *ImageMounterClient) SendDmg(data []byte) (err error) + func (c *ImageMounterClient) SendPacket(pkt Packet) (err error) + type ImageMounterLookupImageResponse struct + ImageSignature [][]byte + type ImageMounterMountImageRequest struct + ImagePath string + ImageSignature []byte + type ImageMounterReceiveBytesRequest struct + ImageSignature []byte + ImageSize uint32 + type InnerConn interface + Close func() + DismissSSL func() (err error) + Handshake func(version []int, pairRecord *PairRecord) (err error) + RawConn func() net.Conn + Read func(length int) (data []byte, err error) + Timeout func(time.Duration) + Write func(data []byte) (err error) + type InstallationProxyBasicRequest struct + ClientOptions *InstallationProxyOption + Command CommandType + type InstallationProxyBasicResponse struct + Status string + type InstallationProxyBrowseResponse struct + CurrentAmount int + CurrentIndex int + CurrentList []interface{} + type InstallationProxyClient struct + func NewInstallationProxyClient(innerConn InnerConn) *InstallationProxyClient + func (c *InstallationProxyClient) NewBasicRequest(cmdType CommandType, opt *InstallationProxyOption) *InstallationProxyBasicRequest + func (c *InstallationProxyClient) NewInstallRequest(bundleID, packagePath string) *InstallationProxyInstallRequest + func (c *InstallationProxyClient) NewUninstallRequest(bundleID string) *InstallationProxyUninstallRequest + func (c *InstallationProxyClient) NewXmlPacket(req interface{}) (Packet, error) + func (c *InstallationProxyClient) ReceivePacket() (respPkt Packet, err error) + func (c *InstallationProxyClient) SendPacket(pkt Packet) (err error) + type InstallationProxyInstallRequest struct + ClientOptions *InstallationProxyOption + Command CommandType + PackagePath string + type InstallationProxyInstallResponse struct + Error string + ErrorDescription string + type InstallationProxyLookupResponse struct + LookupResult interface{} + type InstallationProxyOption struct + ApplicationType ApplicationType + BundleID string + BundleIDs []string + MetaData bool + ReturnAttributes []string + type InstallationProxyUninstallRequest struct + BundleID string + Command CommandType + type InstrumentsClient struct + func NewInstrumentsClient(innerConn InnerConn) *InstrumentsClient + func (c *InstrumentsClient) Invoke(selector string, args *AuxBuffer, channelCode uint32, expectsReply bool) (result *DTXMessageResult, err error) + func (c *InstrumentsClient) NotifyOfPublishedCapabilities() (publishedChannels map[string]int32, err error) + func (c *InstrumentsClient) RegisterCallback(obj string, cb func(m DTXMessageResult)) + func (c *InstrumentsClient) RequestChannel(channel string) (id uint32, err error) + type InterfaceOrientationResponse struct + Orientation OrientationState + type KeyedArchiver struct + Archiver string + Objects []interface{} + Top ArchiverRoot + Version int + func (ka *KeyedArchiver) UID() plist.UID + type LockdownBasicRequest struct + Label string + ProtocolVersion string + Request RequestType + type LockdownBasicResponse struct + Error string + Request string + type LockdownClient struct + func NewLockdownClient(innerConn InnerConn) *LockdownClient + func (c *LockdownClient) EnableSSL(version []int, pairRecord *PairRecord) (err error) + func (c *LockdownClient) NewBasicRequest(reqType RequestType) *LockdownBasicRequest + func (c *LockdownClient) NewEnterRecoveryRequest() *LockdownBasicRequest + func (c *LockdownClient) NewGetValueRequest(domain, key string) *LockdownValueRequest + func (c *LockdownClient) NewPairRequest(pairRecord *PairRecord) *LockdownPairRequest + func (c *LockdownClient) NewSetValueRequest(domain, key string, value interface{}) *LockdownValueRequest + func (c *LockdownClient) NewStartServiceRequest(service string) *LockdownStartServiceRequest + func (c *LockdownClient) NewStartSessionRequest(buid, hostID string) *LockdownStartSessionRequest + func (c *LockdownClient) NewStopSessionRequest(sessionID string) *LockdownStopSessionRequest + func (c *LockdownClient) NewXmlPacket(req interface{}) (Packet, error) + func (c *LockdownClient) ReceivePacket() (respPkt Packet, err error) + func (c *LockdownClient) SendPacket(pkt Packet) (err error) + type LockdownPairRequest struct + PairRecord *PairRecord + PairingOptions map[string]interface{} + type LockdownPairResponse struct + EscrowBag []byte + type LockdownStartServiceRequest struct + EscrowBag []byte + Service string + type LockdownStartServiceResponse struct + EnableServiceSSL bool + Port int + Service string + type LockdownStartSessionRequest struct + HostID string + SystemBUID string + type LockdownStartSessionResponse struct + EnableSessionSSL bool + SessionID string + type LockdownStopSessionRequest struct + SessionID string + type LockdownType struct + Type string + type LockdownTypeResponse struct + Type string + type LockdownValueRequest struct + Domain string + Key string + Value interface{} + type LockdownValueResponse struct + Key string + Value interface{} + type MessageType string + const MessageTypeConnect + const MessageTypeDeletePairRecord + const MessageTypeDeviceAdd + const MessageTypeDeviceList + const MessageTypeDeviceRemove + const MessageTypeListen + const MessageTypeReadBUID + const MessageTypeReadPairRecord + const MessageTypeResult + const MessageTypeSavePairRecord + type NSArray struct + Values []plist.UID + type NSData struct + Data []byte + type NSDictionary struct + Keys []plist.UID + type NSError struct + NSCode int + NSDomain string + NSUserInfo interface{} + type NSKeyedArchiver struct + func NewNSKeyedArchiver() *NSKeyedArchiver + func (ka *NSKeyedArchiver) Marshal(obj interface{}) ([]byte, error) + func (ka *NSKeyedArchiver) Unmarshal(b []byte) (interface{}, error) + type NSObject struct + Class plist.UID + type OrientationState int64 + const LandscapeLeft + const LandscapeRight + const Portrait + const PortraitUpsideDown + const Unknown + type Packet interface + Pack func() ([]byte, error) + String func() string + Unmarshal func(v interface{}) error + Unpack func(buffer *bytes.Buffer) (Packet, error) + type PairRecord struct + DeviceCertificate []byte + EscrowBag []byte + HostCertificate []byte + HostID string + HostPrivateKey []byte + RootCertificate []byte + RootPrivateKey []byte + SystemBUID string + WiFiMACAddress string + type PcapdClient struct + func NewPcapdClient(innerConn InnerConn) *PcapdClient + func (c *PcapdClient) Close() + func (c *PcapdClient) CreatePacket(packet []byte) ([]byte, error) + func (c *PcapdClient) GetPacket(buf []byte) ([]byte, error) + func (c *PcapdClient) ReceivePacket() (respPkt Packet, err error) + type PcaprecHdrS struct + InclLen int + OrigLen int + TsSec int + TsUsec int + type ProtoMessageType uint32 + const ProtoMessageTypeConnect + const ProtoMessageTypeDeviceAdd + const ProtoMessageTypeDevicePaired + const ProtoMessageTypeDeviceRemove + const ProtoMessageTypeListen + const ProtoMessageTypePlist + const ProtoMessageTypeResult + type ProtoVersion uint32 + const ProtoVersionBinary + const ProtoVersionPlist + type ReadPairRecordRequest struct + PairRecordID string + type ReplyCode uint64 + const ReplyCodeBadCommand + const ReplyCodeBadDevice + const ReplyCodeBadVersion + const ReplyCodeConnectionRefused + const ReplyCodeOK + func (rc ReplyCode) String() string + type RequestType string + const RequestTypeEnterRecovery + const RequestTypeGetValue + const RequestTypePair + const RequestTypeQueryType + const RequestTypeSetValue + const RequestTypeStartService + const RequestTypeStartSession + const RequestTypeStopSession + type SavePairRecordRequest struct + DeviceID int + PairRecordData []byte + PairRecordID string + type ScreenshotClient struct + func NewScreenshotClient(innerConn InnerConn) *ScreenshotClient + func (c *ScreenshotClient) NewBinaryPacket(req interface{}) (Packet, error) + func (c *ScreenshotClient) ReceivePacket() (respPkt Packet, err error) + func (c *ScreenshotClient) SendPacket(pkt Packet) (err error) + type SimulateLocationClient struct + func NewSimulateLocationClient(innerConn InnerConn) *SimulateLocationClient + func (c *SimulateLocationClient) NewLocationPacket(lon, lat float64, coordinateSystem CoordinateSystem) Packet + func (c *SimulateLocationClient) Recover() error + func (c *SimulateLocationClient) SendPacket(pkt Packet) (err error) + type SpringBoardClient struct + func NewSpringBoardClient(innerConn InnerConn) *SpringBoardClient + func (c *SpringBoardClient) InnerConn() InnerConn + func (c *SpringBoardClient) NewBinaryPacket(req interface{}) (Packet, error) + func (c *SpringBoardClient) NewXmlPacket(req interface{}) (Packet, error) + func (c *SpringBoardClient) ReceivePacket() (respPkt Packet, err error) + func (c *SpringBoardClient) SendPacket(pkt Packet) (err error) + type SyslogRelayClient struct + func NewSyslogRelayClient(innerConn InnerConn) *SyslogRelayClient + func (c *SyslogRelayClient) Close() + func (c *SyslogRelayClient) InnerConn() InnerConn + type TestmanagerdClient struct + func NewTestmanagerdClient(innerConn InnerConn) *TestmanagerdClient + func (t *TestmanagerdClient) Close() + func (t *TestmanagerdClient) Connection() (publishedChannels map[string]int32, err error) + func (t *TestmanagerdClient) Invoke(selector string, args *AuxBuffer, channelCode uint32, expectsReply bool) (result *DTXMessageResult, err error) + func (t *TestmanagerdClient) MakeChannel(channel string) (id uint32, err error) + func (t *TestmanagerdClient) RegisterCallback(obj string, cb func(m DTXMessageResult)) + type UsbmuxClient struct + func NewRemoteUsbmuxConn(conn net.Conn) (c *UsbmuxClient) + func NewUsbmuxClient(addr string, timeout ...time.Duration) (c *UsbmuxClient, err error) + func (c *UsbmuxClient) Close() + func (c *UsbmuxClient) InnerConn() InnerConn + func (c *UsbmuxClient) NewBasicRequest(msgType MessageType) *BasicRequest + func (c *UsbmuxClient) NewConnectRequest(deviceID, port int) *ConnectRequest + func (c *UsbmuxClient) NewDeletePairRecordRequest(udid string) *DeletePairRecordRequest + func (c *UsbmuxClient) NewPacket(protoMsgType ProtoMessageType) Packet + func (c *UsbmuxClient) NewPlistPacket(req interface{}) (Packet, error) + func (c *UsbmuxClient) NewReadPairRecordRequest(udid string) *ReadPairRecordRequest + func (c *UsbmuxClient) NewSavePairRecordRequest(udid string, deviceID int, data []byte) *SavePairRecordRequest + func (c *UsbmuxClient) RawConn() net.Conn + func (c *UsbmuxClient) ReceivePacket() (respPkt Packet, err error) + func (c *UsbmuxClient) SendPacket(pkt Packet) (err error) + type WIRMessageKey string + const WIRFinalMessageKey + const WIRPartialMessageKey + const WebInspectorServiceName + type WebInspectorClient struct + MaxPlistLen int + func NewWebInspectorClient(innerConn InnerConn) *WebInspectorClient + func (w *WebInspectorClient) NewXmlPacket(req interface{}) (Packet, error) + func (w *WebInspectorClient) ReceivePacket() (respPkt Packet, err error) + func (w *WebInspectorClient) ReceiveWebkitMsg() (response interface{}, err error) + func (w *WebInspectorClient) SendPacket(pkt Packet) (err error) + func (w *WebInspectorClient) SendWebkitMsg(req interface{}) (err error) + func (w *WebInspectorClient) SetPartialsSupported(isCompleteSupported bool) + type XCTestConfiguration struct + Contents map[string]interface{}