extra

package
v0.1.0-devel Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPackageNotExist = errors.New("package does not exist")
)

Functions

func KillProcessByName

func KillProcessByName(d *adb.Device, name string, sig syscall.Signal) error

KillProcessByName return if killed success

Types

type PackageInfo

type PackageInfo struct {
	Name    string
	Path    string
	Version struct {
		Code int
		Name string
	}
}

func StatPackage

func StatPackage(d *adb.Device, packageName string) (PackageInfo, error)

StatPackage returns PackageInfo If package not found, err will be ErrPackageNotExist

type Process

type Process struct {
	User string
	Pid  int
	Name string
}

func ListProcesses

func ListProcesses(d *adb.Device) ([]Process, error)

ListProcesses return list of Process

Jump to

Keyboard shortcuts

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