From e32feaaea59fd5a20134c187207214ab38dec76d Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Mon, 31 Jul 2017 17:15:46 +0530 Subject: [PATCH] code clean up --- .../src/main/java/org.carbon.android.emulator/TryIt.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java index 96c4755e2..41914d179 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java @@ -646,7 +646,7 @@ public class TryIt { */ private void installAgent() { String androidAgentLocation = workingDirectory + Constants.APK_LOCATION; - System.out.println("Installing agent ..."); + System.out.println("Installing agent, please wait..."); ProcessBuilder installAgentProcessBuilder = new ProcessBuilder(adbLocation, "install", androidAgentLocation); try { @@ -738,11 +738,6 @@ public class TryIt { + "Hardware_Accelerated_Execution_Manager" + File.separator + "_haxm.zip"; getTools(System.getProperty(Constants.HAXM_URL), folderName); String haxmInstaller = haxmLocation + File.separator + "HAXM installation"; -// if (osSuffix.equals(Constants.WINDOWS_OS)) { -// haxmInstaller += Constants.WINDOWS_EXTENSION_BAT; -// } else { -// haxmInstaller += Constants.MAC_HAXM_EXTENSION; -// } setExecutePermission(haxmInstaller); ProcessBuilder processBuilder = new ProcessBuilder(haxmInstaller, "-m", "2048", "-log", @@ -830,6 +825,7 @@ public class TryIt { private void checkCacheImg(String deviceId) { File cacheImg = new File(userHome + File.separator + ".android" + File.separator + "avd" + File.separator + deviceId + ".avd" + File.separator + "cache.img"); + System.out.print("Creating cache image, please wait "); while (!cacheImg.exists()) { System.out.print("."); delay(1000);