We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5aecc1 commit 73b803eCopy full SHA for 73b803e
misc/android/go_android_exec.go
@@ -59,6 +59,11 @@ func main() {
59
log.SetFlags(0)
60
log.SetPrefix("go_android_exec: ")
61
62
+ // In case we're booting a device or emulator alongside androidtest.bash
63
+ // wait for it to be ready. adb wait-for-device is not enough, we have to
64
+ // wait for sys.boot_completed.
65
+ run("wait-for-device", "shell", "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;")
66
+
67
// Prepare a temporary directory that will be cleaned up at the end.
68
deviceGotmp := fmt.Sprintf("/data/local/tmp/%s-%d",
69
filepath.Base(os.Args[1]), os.Getpid())
0 commit comments