About

This is a Managed port of the Android Debug Bridge to allow communication from .NET applications to Android devices. This wraps the same methods that the ddms uses to directly communicate with ADB. This gives more flexibility to the developer than launching an adb process and executing one of its built in commands.

Nuget

PM> Install-Package Managed.Adb

License

Documentation

The ADB Helper class

References

Gets an instance of the AdbHelper.

Backups the specified address.

Parameters

Name Description
address The address.

Exceptions

Type Description
System.IO.IOException failed asking to backup device

References

Creates the adb forward request.

Parameters

Name Description
address The address.
port The port.

Creates the forward.

Parameters

Name Description
adbSockAddr The adb sock addr.
device The device.
localPort The local port.
remotePort The remote port.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException failed to submit the forward command.
Managed.Adb.Exceptions.AdbException Device rejected command: + resp.Message

Creates and connects a new pass-through socket, from the host to a port on the device.

Parameters

Name Description
endpoint The endpoint.
device the device to connect to. Can be null in which case the connection will be to the first available device.
pid the process pid to connect to.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException failed submitting request to ADB
Managed.Adb.Exceptions.AdbException connection request rejected: + resp.Message

Executes a shell command on the remote device

Parameters

Name Description
endPoint The socket end point
command The command to execute
device The device to execute on
rcvr The shell output receiver

Exceptions

Type Description
System.IO.FileNotFoundException Throws if the result is 'command': not found
System.IO.IOException Throws if there is a problem reading / writing to the socket
System.OperationCanceledException Throws if the execution was canceled
System.IO.EndOfStreamException Throws if the Socket.Receice ever returns -1

Executes the remote command.

Parameters

Name Description
endPoint The end point.
command The command.
device The device.
rcvr The RCVR.
maxTimeToOutputResponse The max time to output response.

Exceptions

Type Description
System.OperationCanceledException System.OperationCanceledException
System.IO.FileNotFoundException System.IO.FileNotFoundException
Managed.Adb.Exceptions.UnknownOptionException Managed.Adb.Exceptions.UnknownOptionException
Managed.Adb.Exceptions.CommandAbortingException Managed.Adb.Exceptions.CommandAbortingException
Managed.Adb.Exceptions.PermissionDeniedException Managed.Adb.Exceptions.PermissionDeniedException
Managed.Adb.Exceptions.ShellCommandUnresponsiveException Managed.Adb.Exceptions.ShellCommandUnresponsiveException
Managed.Adb.Exceptions.AdbException failed submitting shell command
Managed.Adb.Exceptions.UnknownOptionException Managed.Adb.Exceptions.UnknownOptionException
Managed.Adb.Exceptions.CommandAbortingException Managed.Adb.Exceptions.CommandAbortingException
Managed.Adb.Exceptions.PermissionDeniedException Managed.Adb.Exceptions.PermissionDeniedException

Executes a shell command on the remote device

Should check if you CanSU before calling this.

Parameters

Name Description
endPoint The end point.
command The command.
device The device.
rcvr The RCVR.

Executes a shell command on the remote device

Parameters

Name Description
endPoint The end point.
command The command.
device The device.
rcvr The RCVR.
maxTimeToOutputResponse The max time to output response.

Forms the adb request.

Parameters

Name Description
req The req.

Gets the adb version of the server.

Parameters

Name Description
address The address.

Exceptions

Type Description
System.IO.IOException failed asking for adb version

Gets the devices that are available for communication.

Parameters

Name Description
address The address.

Gets the frame buffer from the specified end point.

Parameters

Name Description
adbSockAddr The adb sock addr.
device The device.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException failed asking for frame buffer
Managed.Adb.Exceptions.AdbException failed nudging

Determines whether the specified reply is okay.

Parameters

Name Description
reply The reply.

Kills the running adb server.

Parameters

Name Description
address The address.

Exceptions

Type Description
System.IO.IOException failed asking to kill adb

Lists the forward.

Parameters

Name Description
address The address.
device The device.

Exceptions

Type Description
System.NotImplementedException System.NotImplementedException

Opens the specified address on the device on the specified port.

Parameters

Name Description
address The address.
device The device.
port The port.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException failed submitting request to ADB
Managed.Adb.Exceptions.AdbException connection request rejected

Reads the data from specified socket.

Parameters

Name Description
socket The socket.
data The data.

Reads the data from specified socket.

Parameters

Name Description
socket The socket.
data The data.
length The length.
timeout The timeout.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException EOF
Managed.Adb.Exceptions.AdbException No Data to read: exception.Message

Reads the adb response.

Parameters

Name Description
socket The socket.
readDiagString [read diag string].

Reboots the specified adb socket address.

Parameters

Name Description
adbSocketAddress The adb socket address.
device The device.

Reboots the specified device in to the specified mode.

Parameters

Name Description
into The into.
adbSockAddr The adb sock addr.
device The device.

Removes all forwards.

Parameters

Name Description
address The address.
device The device.

Removes the forward.

Parameters

Name Description
address The adb socket address.
device The device.
localPort The local port.

Replies to string.

Parameters

Name Description
reply The reply.

Restores this instance.

Exceptions

Type Description
System.NotImplementedException System.NotImplementedException

References

Runs the Event log service on the Device, and provides its output to the LogReceiver.

Parameters

Name Description
address The address.
device The device.
rcvr The RCVR.

Runs the Event log service on the Device, and provides its output to the LogReceiver.

Parameters

Name Description
address The address.
device The device.
logName Name of the log.
rcvr The RCVR.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException failed asking for log
Managed.Adb.Exceptions.AdbCommandRejectedException Managed.Adb.Exceptions.AdbCommandRejectedException

Sets the device.

Parameters

Name Description
adbChan The adb chan.
device The device.

Exceptions

Type Description
Managed.Adb.Exceptions.AdbException failed submitting device ( + device + ) request to ADB
Managed.Adb.Exceptions.AdbException device ( + device + ) request rejected: + resp.Message
Managed.Adb.Exceptions.DeviceNotFoundException Managed.Adb.Exceptions.DeviceNotFoundException

Writes the specified data to the specified socket.

Parameters

Name Description
socket The socket.
data The data.

Writes the specified data to the specified socket.

Parameters

Name Description
socket The socket.
data The data.
length The length.
timeout The timeout.

Exceptions

An Adb Communication Response

Gets or sets a value indicating whether the IO communication was a success.

Gets or sets the message.

Gets or sets a value indicating whether this is okay.

Gets or sets a value indicating whether this is timeout.

Holds Allocation information.

Gets the allocated class.

Gets the size of the allocation.

Gets the stack trace.

Gets the thread id.

Compares the current object with another object of the same type.

Parameters

Name Description
other An object to compare with this object.

The android debug bridge

Gets or Sets the adb location on the OS.

Gets an instance of .

Gets a value indicating whether there is client support.

Returns the number of times the AndroidDebugBridge object attempted to connect

Gets the device monitor

Gets the devices.

Gets or sets the host address.

Gets an instance of .

Returns whether the AndroidDebugBridge object is still connected to the adb daemon.

Returns the number of times the AndroidDebugBridge object attempted to restart the adb daemon.

Gets or sets the client to accept debugger connection on the custom "Selected debug port".

Not Yet Implemented

Gets or sets the socket address.

Creates a {@link AndroidDebugBridge} that is not linked to any particular executable. This bridge will expect adb to be running. It will not be able to start/stop/restart

Creates a new debug bridge from the location of the command line tool.

Any existing server will be disconnected, unless the location is the same and is set to false.

Parameters

Name Description
osLocation the location of the command line tool 'adb'
forceNewBridge force creation of a new bridge even if one with the same location already exists.

Disconnects the current debug bridge, and destroy the object.

This also stops the current adb host server.

Gets the lock.

Returns whether the bridge has acquired the initial list from adb after being created.

Calling getDevices() right after createBridge(String, boolean) will generally result in an empty list. This is due to the internal asynchronous communication mechanism with that does not guarantee that the IDevice list has been built before the call to getDevices(). The recommended way to get the list of IDevice objects is to create a IDeviceChangeListener object.

Initializes the library.

Parameters

Name Description
clientSupport [client support].

Restarts adb, but not the services around it.

Starts the debug bridge.

Kills the debug bridge, and the adb host server.

Terminates the ddm library. This must be called upon application termination.

Gets or sets a value indicating whether AC powered.

Gets the calculated battery level.

Gets or sets the health.

Gets or sets the level.

Gets or sets a value indicating whether a battery is present.

Gets or sets the scale.

Gets or sets the status.

Gets or sets the temperature.

Gets or sets the type.

Gets or sets a value indicating whether usb powered.

Gets or sets the voltage.

A class to help with working with BusyBox

Gets if busybox is available on this device.

Gets a collection of the supported commands

Gets or sets the device.

Gets the version of busybox

Executes a busybox command on the device as root

Parameters

Name Description
command The command.
receiver The receiver.
commandArgs The command args.

Executes a busybox command on the device

Attempts to install on the device

Parameters

Name Description
busybox The path to the busybox binary to install.

Gets if the specified command name is supported by this version of busybox

Parameters

Name Description
command The command name to check

Gets a value indicating whether this instance is canceled.

Gets or sets a value indicating whether [trim lines].

Adds the output.

Parameters

Name Description
data The data.
offset The offset.
length The length.

Flushes the output.

A debug client

Gets the state of the change.

Gets or sets the channel.

Gets the client data.

Gets the state of the connection.

Gets the debugger.

Gets the debugger listen port.

Gets the device.

Gets the device implementation.

Returns if the client VM is DDM-aware.

Calling here is only allowed after the connection has been established.

Gets a value indicating whether this instance is debugger attached.

Gets or sets a value indicating whether this instance is heap update enabled.

Gets or sets a value indicating whether this instance is selected client.

Gets or sets a value indicating whether this instance is thread update enabled.

Gets a value indicating whether this instance is valid.

Adds the request id.

Parameters

Name Description
id The id.
handler The handler.

Closes the specified notify.

Parameters

Name Description
notify [notify].

DDMs the seen.

Dumps the hprof.

Enables the allocation tracker.

Parameters

Name Description
enable [enable].

Executes the garbage collector.

Forwards the packet to client.

Parameters

Name Description
packet The packet.

Gets the JDWP packet.

Determines whether [is response to us] [the specified id].

Parameters

Name Description
id The id.

Kills this instance.

Listens for debugger.

Parameters

Name Description
listenPort The listen port.

Packets the failed.

Parameters

Name Description
packet The packet.

Reads this instance.

Registers the specified selector.

Parameters

Name Description
selector The selector.

Removes the request id.

Parameters

Name Description
id The id.

Requests the allocation details.

Requests the allocation status.

Requests the method profiling status.

Requests the native heap information.

Requests the thread stack trace.

Parameters

Name Description
threadID The thread ID.

Requests the thread update.

Sends the and consume.

Parameters

Name Description
packet The packet.

Sends the and consume.

Parameters

Name Description
packet The packet.
replyHandler The reply handler.

Sends the handshake.

Toggles the method profiling.

Updates the specified change mask.

Parameters

Name Description
changeMask The change mask.

Gets or sets the debugger connection status.

Gets or sets the debugger interest.

Gets or sets the description.

Gets or sets a value indicating whether this instance is DDM aware.

Gets the pid.

Gets or sets the vm identifier.

Data representing an image taken from a device frame buffer.

Gets or sets the alpha.

Gets or sets the blue.

Gets or sets the BPP.

Gets or sets the data.

Gets or sets the green.

Gets or sets the height.

Gets or sets the red.

Gets or sets the size.

Gets or sets the version.

Gets or sets the width.

Converts this raw image to an Image

Converts this raw image to an Image

Parameters

Name Description
format The format.

Gets or sets the battery info.

Gets the result.

Gets the instance.

Centralized point to provide a IDebugPortProvider to ddmlib.

Returns an instance of the debug port manager

Gets or sets the IDebugPortProvider that will be used when a new Client requests

A Device monitor. This connects to the Android Debug Bridge and get device and debuggable process information from it.

Gets the clients to reopen.

Gets the connection attempt count.

Gets the debugger ports.

Gets the devices.

Gets a value indicating whether this instance has initial device list.

Gets a value indicating whether this instance is monitoring.

Gets a value indicating whether this instance is running.

Gets the restart attempt count.

Gets the server.

Adds the client to drop and reopen.

Parameters

Name Description
client The client.
port The port.

Adds the port to available list.

Parameters

Name Description
port The port.

Starts the monitoring

Stops the monitoring

Gets or sets the device.

Gets the change mask.

Gets the client.

Gets or sets the Avd name.

Gets the busy box object for this device.

Gets or sets the client monitoring socket.

Gets the list of clients

Gets the device.

Gets the TCP endpoint defined when the transport is TCP.

Gets the environment variables.

Returns a for this device.

Gets the file system for this device.

Gets a value indicating whether this instance has clients.

Gets a value indicating whether this device is in boot loader mode.

Gets a value indicating whether this device is emulator.

Gets a value indicating whether this device is offline.

Gets a value indicating whether the device is online.

Gets a value indicating whether this instance is recovery.

Gets the model.

Gets the device mount points.

Returns a for this device.

Gets the product.

Returns the device properties. It contains the whole output of 'getprop'

Takes a screen shot of the device and returns it as a

Gets the device serial number

Gets the device state

Returns a object to push / pull files to and from the device.

if the SyncService couldn't be created. This can happen if adb refuse to open the connection because the {@link IDevice} is invalid (or got disconnected).

Exceptions

Type Description
System.IO.IOException Throws IOException if the connection with adb failed.

Backups this device.

Determines whether this device can perform a backup.

Determines whether this instance can use the SU shell.

Creates a port forwarding between a local and a remote port.

Parameters

Name Description
localPort the local port to forward
remotePort the remote port.

Create a device from Adb Device list data

Parameters

Name Description
data the line data for the device

Executes a shell command on the device as root, and sends the result to a receiver.

Parameters

Name Description
command The command to execute
receiver The receiver object getting the result from the command.

Executes a shell command on the device as root, and sends the result to a receiver.

Parameters

Name Description
command The command.
receiver The receiver.

Executes a root shell command on the device, and sends the result to a receiver.

Parameters

Name Description
command The command.
receiver The receiver.
commandArgs The command args.

Executes a root shell command on the device, and sends the result to a receiver.

Parameters

Name Description
command The command.
receiver The receiver.
timeout The timeout.
commandArgs The command args.

Executes a shell command on the device, and sends the result to a receiver.

Parameters

Name Description
command The command to execute
receiver The receiver object getting the result from the command.

Executes a shell command on the device, and sends the result to a receiver.

Parameters

Name Description
command The command.
receiver The receiver.
timeout The timeout.

Executes a shell command on the device, and sends the result to a receiver.

Parameters

Name Description
command The command.
receiver The receiver.
commandArgs The command args.

Executes a shell command on the device, and sends the result to a receiver.

Parameters

Name Description
command The command.
receiver The receiver.
timeout The timeout.
commandArgs The command args.

Gets the battery level.

Gets the battery level.

Parameters

Name Description
freshness The freshness.

Gets the property value.

Parameters

Name Description
name The name of the property.

Gets the first property that exists in the array of property names.

Parameters

Name Description
name The array of property names.

Installs an Android application on device. This is a helper method that combines the syncPackageToDevice, installRemotePackage, and removePackage steps

Parameters

Name Description
packageFilePath the absolute file system path to file on local host to install
reinstall if re-install of app should be performed

Installs the application package that was pushed to a temporary location on the device.

Parameters

Name Description
remoteFilePath absolute file path to package file on device
reinstall if re-install of app should be performed

Reboots the device in to the specified state

Reboots the device in to the specified state

Parameters

Name Description
into The reboot state

Refreshes the environment variables.

Refreshes the mount points.

Refreshes the properties.

Remounts the mount point.

Parameters

Name Description
mnt The mount point.
readOnly the mount poine will be set to read-only.

Remounts the mount point.

Parameters

Name Description
mountPoint the mount point
readOnly the mount poine will be set to read-only.

Exceptions

Type Description
System.IO.IOException Throws if the mount point does not exist.

Removes a port forwarding between a local and a remote port.

Parameters

Name Description
localPort the local port to forward
remotePort the remote port.

Remove a file from device

Parameters

Name Description
remoteFilePath path on device of file to remove

Exceptions

Type Description
System.IO.IOException if file removal failed

Runs the event log service.

Parameters

Name Description
receiver The receiver.

Runs the log service.

Parameters

Name Description
logname The logname.
receiver The receiver.

Pushes a file to device

Parameters

Name Description
localFilePath the absolute path to file on local host

Exceptions

Type Description
System.IO.IOException if fatal error occurred when pushing file

Uninstall an package from the device.

Parameters

Name Description
packageName Name of the package.

Exceptions

Type Description
System.IO.IOException System.IO.IOException
PackageInstallException PackageInstallException

Gets the device.

Represents a file entry on a device

Gets or sets the children.

Note that this is not populated by default. Use the FileListingService.GetChildren to populate it.

Gets or sets the date.

Gets the device associated with this file entry.

Gets a value indicating whether this is exists.

Indicates whether the entry content has been fetched yet, or not.

Gets the fully escaped path of the entry. This path is safe to use in a shell command line.

Gets the full path of the entry.

Gets the full resolved path.

Gets or sets the group.

Gets or sets the info.

Gets a value indicating whether this instance is application file name.

Gets a value indicating whether this instance is application package.

Gets a value indicating whether this instance is directory.

Gets a value indicating whether this instance is executable.

Gets a value indicating whether this instance is root.

Gets or sets the name of the link.

Gets the name.

Gets or sets the owner.

Gets the parent.

Gets the path as a list of segments.

Gets or sets the permissions.

Gets or sets the size.

Gets the type.

Adds a child file entry

Parameters

Name Description
child The child file entry

Creates the file entry, if it does not exist.

Deletes the file entry from the file system.

Gets a file entry from the specified path on the device.

Parameters

Name Description
device The device to check
path the path to check

Exceptions

Type Description
System.IO.IOException If the device is not connected.
System.ArgumentNullException If the device
System.ArgumentNullException path is null.
System.IO.FileNotFoundException If the entrty is not found.

Returns the child FileEntry matching the name. This uses the cached children list.

Parameters

Name Description
name the name of the child to return.

Finds the file entry, or creates an empty FileEntry if it does not exist.

This does not create the FileEntry on disk. It only creates the FileEntry object.

Parameters

Name Description
device The device.
path The path.

Provides Device side file listing service.

Gets or sets the device.

Gets or sets a value indicating whether [force busy box].

Gets or sets the root.

Finds an entry from the path.

Parameters

Name Description
path The file path of

Exceptions

Type Description
System.IO.FileNotFoundException Throws if unable to locate the file
System.IO.FileNotFoundException directory

Finds the file entry.

Parameters

Name Description
parent The parent.
path The path.

Gets the children.

Parameters

Name Description
entry The entry.
useCache [use cache].
receiver The receiver.

Gets or sets a value indicating whether this instance can delete.

Gets or sets a value indicating whether this instance can execute.

Gets or sets a value indicating whether this instance can read.

Gets or sets a value indicating whether this instance can write.

Converts the permissions to bit value that can be casted to an integer and used for calling chmod

Gets the dev blocks for the device.

Exceptions

Type Description
System.IO.FileNotFoundException Throws if unable to locate /dev/block

Chmods the specified path.

Parameters

Name Description
path The path.
permissions The permissions.

Chmods the specified path.

Parameters

Name Description
path The path.
permissions The permissions.

Copies the specified source to the specified destination.

Parameters

Name Description
source The source.
destination The destination.

Creates the specified path.

Parameters

Name Description
path The path.

Creates the specified file entry.

Parameters

Name Description
fileEntry The file entry.

Deletes the specified path.

Parameters

Name Description
path The path.

Exceptions

Type Description
System.ArgumentNullException If device is null
System.ArgumentNullException If path is null
System.ArgumentNullException empty.
System.IO.IOException If the command fails.

Deletes the specified path.

Parameters

Name Description
fileEntry The file entry.

Exceptions

Type Description
System.IO.IOException If the command fails.

Gets if the specified path exists on the device.

Parameters

Name Description
path the path to check

Exceptions

Type Description
System.IO.IOException If the device is not connected.
System.ArgumentNullException If the device
System.ArgumentNullException path is null.

Gets if the specified mount point is read-only

Exceptions

Type Description
System.IO.IOException If mount point doesnt exist

Makes the directory from the specified path.

Parameters

Name Description
path The path.

Makes the directory.

Parameters

Name Description
path The path.
forceDeviceMethod forces the use of the "non-busybox" method.

Attempts to mount the mount point to the associated device without knowing the device or the type. Some devices may not support this method.

Mounts the specified mount point.

Parameters

Name Description
mountPoint The mountPoint.

Mounts the specified device.

Parameters

Name Description
mountPoint The mp.
options The options.

Mounts the specified devices to the specified directory.

Parameters

Name Description
directory The directory.
device The device.
fileSytemType Type of the file sytem.
isReadOnly is read only.

Mounts the specified devices to the specified directory.

Parameters

Name Description
directory The directory.
device The device.
fileSytemType Type of the file sytem.
isReadOnly is read only.
options The options.

Moves the specified source to the specified destination.

Parameters

Name Description
source The source.
destination The destination.

Unmounts the specified mount point.

Parameters

Name Description
mountPoint The mountPoint.

Unmounts the specified mount point.

Parameters

Name Description
mountPoint The mount point.

Unmounts the specified mount point.

Parameters

Name Description
mountPoint The mountPoint.
options The options.

Unmounts the specified mount point.

Parameters

Name Description
mountPoint The mount point.
options The options.

Gets or sets the device.

Gets the error message if the install was unsuccessful.

Gets a value indicating whether the install was a success.

Gets or sets the current children.

Gets or sets the entries.

Gets a value indicating whether this instance is cancelled.

Gets or sets the parent.

Gets or sets the level.

Gets or sets the

Outputs a Debug level message.

Parameters

Name Description
tag The tag associated with the message.
message The message to output

Outputs a Debug level message.

Parameters

Name Description
tag The tag associated with the message.
format The message to output format string.
args The values for the format message

Outputs a Error level message.

Parameters

Name Description
tag The tag associated with the message.
message The message to output.

Outputs a Error level message.

Parameters

Name Description
tag The tag associated with the message.
exception The exception to warn

Outputs a Error level message.

Parameters

Name Description
tag The tag associated with the message.
format The message to output format string.
args The values for the format message

Outputs a Error level message.

Parameters

Name Description
tag The tag associated with the message.
message The message to output.
exception The exception to warn

Outputs a Info level message.

Parameters

Name Description
tag The tag associated with the message.
format The message to output.

Outputs a Info level message.

Parameters

Name Description
tag The tag associated with the message.
format The message to output format string.
args The values for the format message

Outputs a Verbose level message.

Parameters

Name Description
tag The tag associated with the message.
message The message to output

Outputs a Verbose level message.

Parameters

Name Description
tag The tag associated with the message.
format The message to output format string.
args The values for the format message

Outputs a Warn level message.

Parameters

Name Description
tag The tag associated with the message.
message The message to output.

Outputs a Warn level message.

Parameters

Name Description
tag The tag associated with the message.
exception The exception to warn

Outputs a Warn level message.

Parameters

Name Description
tag The tag associated with the message.
format The message to output format string.
args The values for the format message

Outputs a Warn level message.

Parameters

Name Description
tag The tag associated with the message.
message The message to output.
exception The exception to warn

Gets or sets the assert log level.

Gets or sets the debug log level.

Gets or sets the error log level.

Gets or sets the info log level.

Gets or sets the levels.

Gets the values.

Gets or sets the verbose log level.

Gets or sets the warn log level.

Gets the by letter.

Parameters

Name Description
letter The letter.

Gets the by letter.

Parameters

Name Description
letter The letter.

Represents a mount point.

Gets the mount point block

Gets the mount point file system

Gets the mount point access

Gets the mount point name

Creates a clone of this MountPoint

A dynamic mount point receiver.

Works on busybox and non-busybox devices

Gets or sets the device.

Gets the instance.

Gets a value indicating whether this instance is cancelled.

Adds the output.

Parameters

Name Description
data The data.
offset The offset.
length The length.

Flushes the output.

This should always be called at the end of the "process" in order to indicate that the data is ready to be processed further if needed.

A Sync progress monitor that does nothing

Sent to query for possible cancellation.

Sent when some progress have been made.

Parameters

Name Description
work the amount of work done.

Sent when the transfer starts

Parameters

Name Description
totalWork the total amount of work.

Sent when a sub task is started.

Parameters

Name Description
source
destination the destination.

Sent when the transfer is finished or interrupted.

Gets or sets the packages.

Existses the specified package.

Parameters

Name Description
package The package.

Gets the apk file entry.

Parameters

Name Description
package The package.

Gets the apk path.

Parameters

Name Description
package The package.

Refreshes the packages.

Gets or sets the device.

Gets or sets the package manager.

Gets or sets the map.

Gets or sets the receiver.

Gets the error code

Gets the error message

Gets the address.

Gets the device.

Gets a value indicating whether this instance is open.

Gets the null progress monitor.

Closes this connection.

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Opens this connection.

Pulls file(s) or folder(s).

Parameters

Name Description
entries the remote item(s) to pull
localPath The local destination. If the entries count is > 1 or if the unique entry is a folder, this should be a folder.
monitor The progress monitor. Cannot be null.

Exceptions

Type Description
System.ArgumentNullException monitor;Monitor cannot be null

Pulls a single file.

Parameters

Name Description
remote remote the remote file
localFilename The local destination.
monitor The progress monitor. Cannot be null.

Exceptions

Type Description
System.ArgumentNullException monitor;Monitor cannot be null
System.ArgumentNullException Throws if monitor is null

Pulls a single file.

Parameters

Name Description
remoteFilepath the full path to the remote file
localFilename The local destination.
monitor The progress monitor. Cannot be null.

Exceptions

Type Description
System.ArgumentNullException monitor;Monitor cannot be null
System.ArgumentNullException Throws if monitor is null

Push several files.

Parameters

Name Description
local An array of local files to push
remote the remote FileEntry representing a directory.
monitor The progress monitor. Cannot be null.

Exceptions

Type Description
System.ArgumentNullException Monitor cannot be null

Push a single file.

Parameters

Name Description
local the local filepath.
remote The remote filepath.
monitor The progress monitor. Cannot be null.

Exceptions

Type Description
System.ArgumentNullException monitor;Monitor cannot be null
System.ArgumentNullException Throws if monitor is null

Represents an exception with communicating with ADB

Exception thrown when adb refuses a command.

Thrown when an executed command identifies that it is being aborted.

Thrown when a command has an unknown option passed

Unable to connect to the device because it was not found in the list of available devices.

An exception while installing a package on the device

Just like System.IO.Path, except it is geared for Linux

Changes the extension of a path string.

Parameters

Name Description
extension The new extension (with a leading period). Specify null to remove an existing extension from path.
path .

Exceptions

Type Description
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Combine the specified paths to form one path

Parameters

Name Description
paths The paths.

Combines two path strings.

Parameters

Name Description
path2 The second path.
path1 The first path.

Exceptions

Type Description
System.ArgumentNullException path1
System.ArgumentNullException path2 is null.
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Combine the specified paths to form one path

Parameters

Name Description
path1 The path1.
path2 The path2.
path3 The path3.

Combine the specified paths to form one path

Parameters

Name Description
path1 The path1.
path2 The path2.
path3 The path3.
path4 The path4.

Returns an escaped version of the entry name.

Parameters

Name Description
path The path.

Returns the directory information for the specified path string.

Parameters

Name Description
path The path of a file or directory.

Exceptions

Type Description
System.ArgumentException The path parameter contains invalid characters, is empty,
System.ArgumentException contains only white spaces,
System.ArgumentException contains a wildcard character.
System.IO.PathTooLongException The path parameter is longer than the system-defined maximum length.

Returns the extension of the specified path string.

Parameters

Name Description
path The path string from which to get the extension.

Exceptions

Type Description
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Returns the file name and extension of the specified path string.

Parameters

Name Description
path The path string from which to obtain the file name and extension.

Exceptions

Type Description
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Returns the file name of the specified path string without the extension.

Parameters

Name Description
path The path of the file.

Exceptions

Type Description
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Gets an array containing the characters that are not allowed in file names.

Gets an array containing the characters that are not allowed in path names.

Gets the root directory information of the specified path.

Parameters

Name Description
path The path from which to obtain root directory information.

Exceptions

Type Description
System.ArgumentException was passed to path.

Gets the path without file name.

Parameters

Name Description
path The path.

Determines whether a path includes a file name extension.

Parameters

Name Description
path The path to search for an extension.

Exceptions

Type Description
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Gets a value indicating whether the specified path string contains absolute or relative path information.

Parameters

Name Description
path The path to test.

Exceptions

Type Description
System.ArgumentException ,
System.ArgumentException contains a wildcard character.

Quotes the specified path.

Parameters

Name Description
path The path.

A class that represents Rgb565 Image information

Converts the data to an image

Parameters

Name Description
data The data.
width The width.
height The height.

Gets the Image from the raw image data

Parameters

Name Description
format The format.
data The data.
width The width.
height The height.

Saves the image as an Rgb565 bitmap to disk

Parameters

Name Description
file The file.

Saves the image as an Rgb565 bitmap to the specified stream

Parameters

Name Description
stream The stream.