AdbUtils
  public
  
  
  
  class
  AdbUtils
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.util.AdbUtils | 
A utility class for adb operations.
Summary
| Public constructors | |
|---|---|
| 
      AdbUtils()
       | |
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        File | 
      getAdbToUpdate(TestInformation testInfo, String adbPath)
      Gets the special adb set in test information that should be set in PATH. | 
| 
        
        
        static
        
        
        void | 
      updateAdb(TestInformation testInfo, IRunUtil runUtil, String adbPath)
      Updates $PATH if a special adb version is used. | 
Public constructors
AdbUtils
public AdbUtils ()
Public methods
getAdbToUpdate
public static File getAdbToUpdate (TestInformation testInfo, String adbPath)
Gets the special adb set in test information that should be set in PATH.
| Parameters | |
|---|---|
| testInfo | TestInformation: ATestInformationobject. | 
| adbPath | String: The path to the adb binary. | 
| Returns | |
|---|---|
| File | The adb that should be set in PATH. | 
updateAdb
public static void updateAdb (TestInformation testInfo, IRunUtil runUtil, String adbPath)
Updates $PATH if a special adb version is used.
| Parameters | |
|---|---|
| testInfo | TestInformation: ATestInformationobject. | 
| runUtil | IRunUtil: AnIRunUtilobject used to run system command. | 
| adbPath | String: The path to the adb binary. | 
