Fix ADB cold-start on OS X

This commit is contained in:
Joshua Granick
2014-12-02 10:17:00 -08:00
parent 27e3fd701d
commit a4416de359

View File

@@ -81,6 +81,10 @@ class AndroidHelper {
public static function getDeviceSDKVersion (deviceID:String):Int { 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, [ "start-server" ]);
var args = [ "wait-for-device", "shell", "getprop", "ro.build.version.sdk" ]; var args = [ "wait-for-device", "shell", "getprop", "ro.build.version.sdk" ];
if (deviceID != null && deviceID != "") { if (deviceID != null && deviceID != "") {