Documentation
¶
Index ¶
- Variables
- func AndroidVersion() (string, error)
- func Brand() (string, error)
- func BrandFromPropMap(props map[string]string) string
- func Cmd(args ...string) (stdout string, err error)
- func Codename() (string, error)
- func CodenameFromPropMap(props map[string]string) string
- func CpuArch() (string, error)
- func CpuArchFromPropMap(props map[string]string) (string, error)
- func GetProp(prop string) (string, error)
- func GetPropMap() (map[string]string, error)
- func Imei() (string, error)
- func IsAB() (bool, error)
- func IsABFromPropMap(props map[string]string) bool
- func IsBootComplete() (bool, error)
- func IsBooting() (bool, error)
- func IsConnected() bool
- func IsCustomRomFromMap(props map[string]string) bool
- func IsReady() bool
- func KillServer() error
- func MajorAndroidVersion() (int, error)
- func Model() (string, error)
- func ModelFromPropMap(props map[string]string) string
- func Pull(remote string, local string) error
- func Push(local string, remote string) error
- func Reboot(target string) (err error)
- func Remount() error
- func Root() error
- func SerialNumber() (string, error)
- func ShowImeiOnDeviceScreen() error
- func StartServer() error
- func State() string
- func Unroot() error
- func WhoAmI() (user string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Nosudo bool = false
View Source
var Simulation bool = false
View Source
var Sudopw string = ""
Functions ¶
func AndroidVersion ¶
func BrandFromPropMap ¶
func Codename ¶
Read codename from adb props. Unreliable, therefore relied on only if lookup from model to codename is unsuccessful
func CodenameFromPropMap ¶
func GetPropMap ¶
func IsABFromPropMap ¶
func IsBootComplete ¶
func IsConnected ¶
func IsConnected() bool
func IsCustomRomFromMap ¶
func KillServer ¶
func KillServer() error
func MajorAndroidVersion ¶
func ModelFromPropMap ¶
func SerialNumber ¶ added in v1.2.0
func ShowImeiOnDeviceScreen ¶
func ShowImeiOnDeviceScreen() error
func StartServer ¶
func StartServer() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.