lockdownd

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientForService

func NewClientForService(udid, serviceName string, withEscrowBag bool) (*client.Client, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(udid string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetValue

func (c *Client) GetValue(key string) (interface{}, error)

func (*Client) GetValues

func (c *Client) GetValues() (*DeviceValues, error)

func (*Client) QueryType

func (c *Client) QueryType() (string, error)

func (*Client) StartService

func (c *Client) StartService(service string, withEscrowBag bool) (*StartServiceResponse, error)

type DeviceValues

type DeviceValues struct {
	BasebandCertId             int
	BasebandKeyHashInformation struct {
		AKeyStatus int
		SKeyStatus int
	}
	BasebandSerialNumber    []byte
	BasebandVersion         string
	BoardId                 int
	BuildVersion            string
	CPUArchitecture         string
	ChipID                  int
	DeviceClass             string
	DeviceColor             string
	DeviceName              string
	DieID                   int
	HardwareModel           string
	HasSiDP                 bool
	PartitionType           string
	ProductName             string
	ProductType             string
	ProductVersion          string
	ProductionSOC           bool
	ProtocolVersion         string
	SupportedDeviceFamilies []int
	TelephonyCapability     bool
	UniqueChipID            int64
	UniqueDeviceID          string
	WiFiAddress             string
}

type GetValueRequest

type GetValueRequest struct {
	RequestBase
	Domain string `plist:"Domain,omitempty"`
	Key    string `plist:"Key,omitempty"`
}

type GetValueResponse

type GetValueResponse struct {
	ResponseBase
	Value *DeviceValues
}

type QueryTypeRequest

type QueryTypeRequest struct {
	RequestBase
}

type QueryTypeResponse

type QueryTypeResponse struct {
	ResponseBase
	Type string
}

type RequestBase

type RequestBase struct {
	Request string `plist:"Request"`
}

type ResponseBase

type ResponseBase struct {
	Request string
	Result  string
}

type StartServiceRequest

type StartServiceRequest struct {
	RequestBase
	Service   string
	EscrowBag []byte `plist:",omitempty"`
}

type StartServiceResponse

type StartServiceResponse struct {
	ResponseBase
	Service          string
	Port             int
	EnableServiceSSL bool
}

type StartSessionRequest

type StartSessionRequest struct {
	RequestBase
	HostID     string
	SystemBUID string
}

type StartSessionResponse

type StartSessionResponse struct {
	ResponseBase
	EnableSessionSSL bool
	SessionID        string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL