public class

AdbUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.android.adb.AdbUtil

Class Overview

Utility code to locate adb on the current system.

Summary

Constants
String adbName Standard Android Debug Bridge (ADB) file name is "adb".
String currentSdkLocationVar See https://developer.android.com/studio/command-line/variables
String legacySdkLocationVar See https://developer.android.com/studio/command-line/variables
Public Constructors
AdbUtil()
Public Methods
static File findAdbOnCurrentSystem()
Find the Android Debug Bridge (adb) on this system.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String adbName

Standard Android Debug Bridge (ADB) file name is "adb".

Constant Value: "adb"

public static final String currentSdkLocationVar

See https://developer.android.com/studio/command-line/variables

Constant Value: "ANDROID_SDK_ROOT"

public static final String legacySdkLocationVar

See https://developer.android.com/studio/command-line/variables

Constant Value: "ANDROID_HOME"

Public Constructors

public AdbUtil ()

Public Methods

public static File findAdbOnCurrentSystem ()

Find the Android Debug Bridge (adb) on this system.

Returns
  • the ADB file (never null)
Throws
IOException on error, incl. adb not found