fastboot

package
v0.0.0-...-c74f1dd Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCommandFailure    = errors.New("failed running command")
	ErrorUnlockBootloader  = errors.New("failed to unlock bootloader")
	ErrorLockBootloader    = errors.New("failed to lock bootloader")
	ErrorRebootFailure     = errors.New("failed to reboot")
	ErrorUnknownLockStatus = errors.New("unknown unlocked value returned")
)

Functions

This section is empty.

Types

type FastbootLockStatus

type FastbootLockStatus int
const (
	Unknown FastbootLockStatus = iota
	Unlocked
	Locked
)

type Tool

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

func New

func New(path platformtools.PlatformToolsPath, hostOS string) (*Tool, error)

func (*Tool) GetBootloaderLockStatus

func (t *Tool) GetBootloaderLockStatus(deviceId string) (FastbootLockStatus, error)

func (*Tool) GetDeviceCodename

func (t *Tool) GetDeviceCodename(deviceId string) (string, error)

func (*Tool) GetDeviceIds

func (t *Tool) GetDeviceIds() ([]string, error)

func (*Tool) LockBootloader

func (t *Tool) LockBootloader(deviceId string) error

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) Reboot

func (t *Tool) Reboot(deviceId string) error

func (*Tool) UnlockBootloader

func (t *Tool) UnlockBootloader(deviceId string) error

Jump to

Keyboard shortcuts

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