Unlock Android emulator automatically, skip the 'connect' step for emulators
This commit is contained in:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user