Merge "Stop netd before running tests on Buildbot devices."
diff --git a/tools/setup-buildbot-device.sh b/tools/setup-buildbot-device.sh
index 546a6bf..9373c69 100755
--- a/tools/setup-buildbot-device.sh
+++ b/tools/setup-buildbot-device.sh
@@ -57,6 +57,16 @@
 adb shell ifconfig lo up
 adb shell ifconfig
 
+# When netd is running, some libcore and JDWP tests fail with this
+# exception (b/74725685):
+#
+#   android.system.ErrnoException: connect failed: EBADMSG (Not a data message)
+#
+# Turn it off to make these tests pass.
+echo -e "${green}Turning off netd${nc}"
+adb shell stop netd
+adb shell getprop init.svc.netd
+
 echo -e "${green}List properties${nc}"
 adb shell getprop