diff --git a/src/lime/tools/AndroidHelper.hx b/src/lime/tools/AndroidHelper.hx index 61f727caf..95989e4d6 100644 --- a/src/lime/tools/AndroidHelper.hx +++ b/src/lime/tools/AndroidHelper.hx @@ -305,7 +305,7 @@ class AndroidHelper { var tempFile = System.getTemporaryFile(); - System.runCommand(adbPath, adbName, ["devices", ">", tempFile], true, true); + System.runCommand('/bin', 'sh', ["-c", '${adbPath}${adbName} devices > ${tempFile}'], true, true); if (FileSystem.exists(tempFile)) {