17 lines
314 B
Go
17 lines
314 B
Go
package goadb
|
|
|
|
import (
|
|
"os/exec"
|
|
|
|
"github.com/zach-klippenstein/goadb/util"
|
|
)
|
|
|
|
/*
|
|
StartServer ensures there is a server running.
|
|
*/
|
|
func StartServer() error {
|
|
cmd := exec.Command("adb", "start-server")
|
|
err := cmd.Run()
|
|
return util.WrapErrorf(err, util.ServerNotAvailable, "error starting server: %s", err)
|
|
}
|