adb

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nosudo bool = false
View Source
var Sudopw string = ""

Functions

func AndroidVersion

func AndroidVersion() (string, error)

func Brand

func Brand() (string, error)

func BrandFromPropMap

func BrandFromPropMap(props map[string]string) string

func Cmd

func Cmd(command string) (stdout string, err error)

Returns trimmed stdout of a given adb command

func Codename

func Codename() (string, error)

Read codename from adb props. Unreliable, therefore relied on only if lookup from model to codename is unsuccessful

func CodenameFromPropMap

func CodenameFromPropMap(props map[string]string) string

func CpuArch

func CpuArch() (string, error)

func CpuArchFromPropMap

func CpuArchFromPropMap(props map[string]string) (string, error)

func GetProp

func GetProp(prop string) (string, error)

func GetPropMap

func GetPropMap() (map[string]string, error)

func Imei

func Imei() (string, error)

func IsAB

func IsAB() (bool, error)

func IsABFromPropMap

func IsABFromPropMap(props map[string]string) bool

func IsBootComplete

func IsBootComplete() (bool, error)

func IsBooting

func IsBooting() (bool, error)

func IsConnected

func IsConnected() bool

func IsCustomRomFromMap

func IsCustomRomFromMap(props map[string]string) bool

func IsReady

func IsReady() bool

func KillServer

func KillServer() error

func MajorAndroidVersion

func MajorAndroidVersion() (int, error)

func Model

func Model() (string, error)

func ModelFromPropMap

func ModelFromPropMap(props map[string]string) string

func Pull

func Pull(remote string, local string) error

func Push

func Push(local string, remote string) error

func Reboot

func Reboot(target string) (err error)

func Remount

func Remount() error

func Root

func Root() error

func ShowImeiOnDeviceScreen

func ShowImeiOnDeviceScreen() error

func StartServer

func StartServer() error

func State

func State() string

func Unroot

func Unroot() error

func WhoAmI

func WhoAmI() (user string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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