AdbInitOptions
public
class
AdbInitOptions
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.AdbInitOptions |
Options for initialization of AndroidDebugBridge.
See AdbInitOptions.Builder for a list of options and their default values.
Summary
Nested classes | |
|---|---|
class |
AdbInitOptions.Builder
Builds initialization options for ADB. |
Fields | |
|---|---|
public
static
final
AdbInitOptions |
DEFAULT
Default init options. |
public
final
ImmutableMap<String, String> |
adbEnvVars
Environment variables specifically for the ADB server process. |
public
final
boolean |
clientSupport
Indicates whether or not ddmlib should actively monitor clients using JDWP. |
public
final
boolean |
userManagedAdbMode
Enable user managed ADB mode where ddmlib will not start, restart, or terminate the ADB server. |
public
final
int |
userManagedAdbPort
ADB server port of the user managed ADB server. |
Public methods | |
|---|---|
static
AdbInitOptions.Builder
|
builder()
|
Fields
DEFAULT
public static final AdbInitOptions DEFAULT
Default init options. See AdbInitOptions.Builder for default values.
adbEnvVars
public final ImmutableMap<String, String> adbEnvVars
Environment variables specifically for the ADB server process.
clientSupport
public final boolean clientSupport
Indicates whether or not ddmlib should actively monitor clients using JDWP.
Ddmlib monitors devices via ADB, but won't monitor the applications running on these devices unless clientSupport is enabled.
- When clientSupport ==
true:
The library monitors the devices and the applications running on them. It will connect to each application, as a debugger of sort, to be able to interact with them through JDWP packets. - When clientSupport ==
false:
The library only monitors devices. The applications are left untouched, letting other tools built onddmlibto connect a debugger to them.
Only one client support enabled tool can run at any given time. If other tools need to communicate with the underlying ADB daemon, disable client support to avoid clobbering communications of other tools.
Note that client support does not prevent debugging of applications running on devices. It
lets debuggers connect to ddmlib which acts as a proxy between the debuggers and
the applications to debug. See ClientImpl.getDebuggerListenPort().
userManagedAdbMode
public final boolean userManagedAdbMode
Enable user managed ADB mode where ddmlib will not start, restart, or terminate the ADB server.
userManagedAdbPort
public final int userManagedAdbPort
ADB server port of the user managed ADB server. Only in effect when in user managed ADB mode.
Public methods
builder
public static AdbInitOptions.Builder builder ()
| Returns | |
|---|---|
AdbInitOptions.Builder |
a new builder with default values. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-12-04 UTC.