Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Activate ¶
func Activate(device ios.DeviceEntry) error
Activate kicks off the activation process for a given device. It returns an error if the activation is unsuccessful. It returns nil if the device was activated before or the activation was successful. The process gets a sendHandshakeRequest from the device, sends it to the Apple activation server and stores the response on the device. This means you have to be online for this to work! If the device is already activated, this command does nothing and returns nil. It is safe to run multiple times.
func IsActivated ¶
func IsActivated(device ios.DeviceEntry) (bool, error)
IsActivated uses lockdown to get the ActivationState of the device. Returns ActivationState != 'Unactivated'
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func New ¶
func New(device ios.DeviceEntry) (*Connection, error)
New creates a new Connection to com.apple.mobileactivationd
func (*Connection) Close ¶
func (activationdConn *Connection) Close() error
Close closes the connection to the device.