Unlock Android emulator automatically, skip the 'connect' step for emulators

This commit is contained in:
Joshua Granick
2015-02-03 15:24:16 -08:00
parent f5762afd3a
commit 5fce030485

View File

@@ -65,7 +65,7 @@ class AndroidHelper {
private static function connect (deviceID:String):Void {
if (deviceID != null && deviceID != "") {
if (deviceID != null && deviceID != "" && deviceID.indexOf ("emulator") == -1) {
if (deviceID.indexOf (":") > 0) {
@@ -227,6 +227,8 @@ class AndroidHelper {
}
ProcessHelper.runCommand (adbPath, adbName, [ "-s", deviceID, "shell", "input", "keyevent", "82" ]);
}
var args = [ "install", "-r" ];