|
|
@ -766,6 +766,22 @@ public class TryIt {
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
qemuSystemFileLocation += osSuffix + "-x86_64" + File.separator + "qemu-system-i386";
|
|
|
|
qemuSystemFileLocation += osSuffix + "-x86_64" + File.separator + "qemu-system-i386";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setExecutePermission(qemuSystemFileLocation);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qemuSystemFileLocation = androidSdkHome + File.separator + "emulator" + File.separator
|
|
|
|
|
|
|
|
+ "qemu" + File.separator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (osSuffix) {
|
|
|
|
|
|
|
|
case Constants.MAC_OS:
|
|
|
|
|
|
|
|
qemuSystemFileLocation += Constants.MAC_DARWIN + "-x86_64" + File.separator + "qemu-system-i386";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case Constants.WINDOWS_OS:
|
|
|
|
|
|
|
|
qemuSystemFileLocation += osSuffix + "-x86_64" + File.separator + "qemu-system-i386.exe";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
qemuSystemFileLocation += osSuffix + "-x86_64" + File.separator + "qemu-system-i386";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
killServer();
|
|
|
|
killServer();
|
|
|
|
setExecutePermission(qemuSystemFileLocation);
|
|
|
|
setExecutePermission(qemuSystemFileLocation);
|
|
|
|
ExecutorService service = Executors.newSingleThreadExecutor();
|
|
|
|
ExecutorService service = Executors.newSingleThreadExecutor();
|
|
|
@ -823,8 +839,6 @@ public class TryIt {
|
|
|
|
System.exit(1); // if can't execute, unable to proceed
|
|
|
|
System.exit(1); // if can't execute, unable to proceed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
|
|
|
|
System.out.println("WARN : " + fileName + " does not exists");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|