goadb/server_controller.go

15 lines
234 B
Go
Raw Normal View History

2015-07-11 21:32:04 +00:00
package goadb
import "os/exec"
/*
StartServer ensures there is a server running.
Currently implemented by just running
adb start-server
*/
func StartServer() error {
cmd := exec.Command("adb", "start-server")
return cmd.Run()
}