Lines Matching refs:adb
6 package adb package
112 if _, err := inst.adb("shell", "rm -Rf /data/syzkaller*"); err != nil {
115 inst.adb("shell", "echo 0 > /proc/sys/kernel/kptr_restrict")
134 func findConsole(adb, dev string) string { argument
140 con, err := findConsoleImpl(adb, dev)
155 func findConsoleImpl(adb, dev string) (string, error) { argument
197 cmd := osutil.Command(adb, "-s", dev, "shell", "echo", "\"<1>", unique, "\"", ">", "/dev/kmsg")
236 _, err = inst.adb("reverse", fmt.Sprintf("tcp:%v", devicePort), fmt.Sprintf("tcp:%v", port))
244 func (inst *instance) adb(args ...string) ([]byte, error) { func
265 if _, err := inst.adb("shell", "reboot"); err != nil {
276 inst.adb("root")
286 if _, err = inst.adb("shell", "pwd"); err == nil {
323 out, err := inst.adb("shell", "dumpsys battery | grep level:")
330 out, err = inst.adb("shell", "dumpsys battery | grep level:")
359 if _, err := inst.adb("push", hostSrc, vmDst); err != nil {
386 adb := osutil.Command(inst.adbBin, "-s", inst.device, "shell", "cd /data; "+command)
387 adb.Stdout = adbWpipe
388 adb.Stderr = adbWpipe
389 if err := adb.Start(); err != nil {
405 return vmimpl.Multiplex(adb, merger, tty, timeout, stop, inst.closed, inst.debug)