adb

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package adb implements a thin adb client to bootstrap h2o.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	AdbPath       string
	DeviceName    string
	AdbServerPort string
	// contains filtered or unexported fields
}

Device implements functionality to talk to an Android device through ADB.

func (*Device) AbiList

func (a *Device) AbiList() (string, error)

AbiList returns the list of supported ABI's

func (*Device) Connect

func (a *Device) Connect() error

Connect tries to connect the device to ADB.

func (*Device) ForwardAbstract

func (a *Device) ForwardAbstract(local, remote string) error

ForwardAbstract forwards a unix abstract socket from the host to the device.

func (*Device) Install

func (a *Device) Install(apk string) (string, error)

Install installs an application on the device using ADB.

func (*Device) Push

func (a *Device) Push(src, dst string) error

Push pushes a file from the host to the device.

func (*Device) QemuPipeDir

func (a *Device) QemuPipeDir() (string, error)

QemuPipeDir returns the directory where the qemu sockets live if qemu pipes are supported.

func (*Device) Shell

func (a *Device) Shell(args []string) (string, error)

Shell executes a command on the device.

func (*Device) StartCmd

func (a *Device) StartCmd(script string) error

StartCmd starts a new command on the device without waitin for it to finish.

Jump to

Keyboard shortcuts

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