More aggressive ADB restart

This commit is contained in:
Joshua Granick
2014-12-05 17:43:53 -08:00
parent e736f89190
commit 08368f20dc

View File

@@ -82,7 +82,7 @@ class AndroidHelper {
public static function getDeviceSDKVersion (deviceID:String):Int {
// need to wake up ADB, this shouldn't be necessary :(
//ProcessHelper.runCommand (adbPath, adbName, [ "kill-server" ]);
ProcessHelper.runCommand (adbPath, adbName, [ "kill-server" ]);
ProcessHelper.runCommand (adbPath, adbName, [ "start-server" ]);
var args = [ "wait-for-device", "shell", "getprop", "ro.build.version.sdk" ];