/** * Kills the debug bridge, and the adb host server. * @return true if success */ boolean stop() { // if we haven't started we return false; if (mStarted == false) { return false; } // kill the monitoring services mDeviceMonitor.stop(); mDeviceMonitor = null; if (stopAdb() == false) { return false; } mStarted = false; return true; }
/** * Kills the debug bridge, and the adb host server. * @return true if success */ boolean stop() { // if we haven't started we return false; if (!mStarted) { return false; } // kill the monitoring services if (mDeviceMonitor != null) { mDeviceMonitor.stop(); mDeviceMonitor = null; } if (!stopAdb()) { return false; } mStarted = false; return true; }
/** * Kills the debug bridge, and the adb host server. * @return true if success */ boolean stop() { // if we haven't started we return false; if (!mStarted) { return false; } // kill the monitoring services if (mDeviceMonitor != null) { mDeviceMonitor.stop(); mDeviceMonitor = null; } if (!stopAdb()) { return false; } mStarted = false; return true; }
/** * Restarts adb, but not the services around it. * @return true if success. */ public boolean restart() { if (mAdbOsLocation == null) { Log.e(ADB, "Cannot restart adb when AndroidDebugBridge is created without the location of adb."); //$NON-NLS-1$ return false; } if (mVersionCheck == false) { Log.logAndDisplay(LogLevel.ERROR, ADB, "Attempting to restart adb, but version check failed!"); //$NON-NLS-1$ return false; } synchronized (this) { stopAdb(); boolean restart = startAdb(); if (restart && mDeviceMonitor == null) { mDeviceMonitor = new DeviceMonitor(this); mDeviceMonitor.start(); } return restart; } }
/** * Restarts adb, but not the services around it. * @return true if success. */ public boolean restart() { if (mAdbOsLocation == null) { Log.e(ADB, "Cannot restart adb when AndroidDebugBridge is created without the location of adb."); //$NON-NLS-1$ return false; } if (sAdbServerPort == 0) { Log.e(ADB, "ADB server port for restarting AndroidDebugBridge is not set."); //$NON-NLS-1$ return false; } if (!mVersionCheck) { Log.logAndDisplay(LogLevel.ERROR, ADB, "Attempting to restart adb, but version check failed!"); //$NON-NLS-1$ return false; } synchronized (this) { stopAdb(); boolean restart = startAdb(); if (restart && mDeviceMonitor == null) { mDeviceMonitor = new DeviceMonitor(this); mDeviceMonitor.start(); } return restart; } }
/** * Restarts adb, but not the services around it. * @return true if success. */ public boolean restart() { if (mAdbOsLocation == null) { Log.e(ADB, "Cannot restart adb when AndroidDebugBridge is created without the location of adb."); //$NON-NLS-1$ return false; } if (sAdbServerPort == 0) { Log.e(ADB, "ADB server port for restarting AndroidDebugBridge is not set."); //$NON-NLS-1$ return false; } if (!mVersionCheck) { Log.logAndDisplay(LogLevel.ERROR, ADB, "Attempting to restart adb, but version check failed!"); //$NON-NLS-1$ return false; } synchronized (this) { stopAdb(); boolean restart = startAdb(); if (restart && mDeviceMonitor == null) { mDeviceMonitor = new DeviceMonitor(this); mDeviceMonitor.start(); } return restart; } }