Documentation ¶
Index ¶
- Variables
- type FastbootLockStatus
- type Tool
- func (t *Tool) GetBootloaderLockStatus(deviceId string) (FastbootLockStatus, error)
- func (t *Tool) GetDeviceCodename(deviceId string) (string, error)
- func (t *Tool) GetDeviceIds() ([]string, error)
- func (t *Tool) LockBootloader(deviceId string) error
- func (t *Tool) Name() string
- func (t *Tool) Reboot(deviceId string) error
- func (t *Tool) UnlockBootloader(deviceId string) error
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) GetDeviceIds ¶
func (*Tool) LockBootloader ¶
func (*Tool) UnlockBootloader ¶
Click to show internal directories.
Click to hide internal directories.