com.android.sdklib.internal.repository
Class AdbWrapper

java.lang.Object
  extended by com.android.sdklib.internal.repository.AdbWrapper

public class AdbWrapper
extends java.lang.Object

A lightweight wrapper to start & stop ADB. This is specific to the SDK Manager install process.


Constructor Summary
AdbWrapper(java.lang.String osSdkPath, ITaskMonitor monitor)
          Creates a new lightweight ADB wrapper.
 
Method Summary
 boolean startAdb()
          Starts the adb host side server.
 boolean stopAdb()
          Stops the adb host side server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdbWrapper

public AdbWrapper(java.lang.String osSdkPath,
                  ITaskMonitor monitor)
Creates a new lightweight ADB wrapper.

Parameters:
osSdkPath - The root OS path of the SDK. Cannot be null.
monitor - A logger object. Cannot be null.
Method Detail

startAdb

public boolean startAdb()
Starts the adb host side server.

Returns:
true if success

stopAdb

public boolean stopAdb()
Stops the adb host side server.

Returns:
true if success