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.
Gets an instance of the AdbHelper.
Backups the specified address.
Name | Description |
---|---|
address | The address. |
Type | Description |
---|---|
System.IO.IOException | failed asking to backup device |
Creates the adb forward request.
Name | Description |
---|---|
address | The address. |
port | The port. |
Creates the forward.
Name | Description |
---|---|
adbSockAddr | The adb sock addr. |
device | The device. |
localPort | The local port. |
remotePort | The remote port. |
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.
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. |
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
Name | Description |
---|---|
endPoint | The socket end point |
command | The command to execute |
device | The device to execute on |
rcvr | The shell output receiver |
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.
Name | Description |
---|---|
endPoint | The end point. |
command | The command. |
device | The device. |
rcvr | The RCVR. |
maxTimeToOutputResponse | The max time to output response. |
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.
Name | Description |
---|---|
endPoint | The end point. |
command | The command. |
device | The device. |
rcvr | The RCVR. |
Executes a shell command on the remote device
Name | Description |
---|---|
endPoint | The end point. |
command | The command. |
device | The device. |
rcvr | The RCVR. |
maxTimeToOutputResponse | The max time to output response. |
Gets the adb version of the server.
Name | Description |
---|---|
address | The address. |
Type | Description |
---|---|
System.IO.IOException | failed asking for adb version |
Gets the frame buffer from the specified end point.
Name | Description |
---|---|
adbSockAddr | The adb sock addr. |
device | The device. |
Type | Description |
---|---|
Managed.Adb.Exceptions.AdbException | failed asking for frame buffer |
Managed.Adb.Exceptions.AdbException | failed nudging |
Determines whether the specified reply is okay.
Name | Description |
---|---|
reply | The reply. |
Kills the running adb server.
Name | Description |
---|---|
address | The address. |
Type | Description |
---|---|
System.IO.IOException | failed asking to kill adb |
Lists the forward.
Name | Description |
---|---|
address | The address. |
device | The device. |
Type | Description |
---|---|
System.NotImplementedException | System.NotImplementedException |
Opens the specified address on the device on the specified port.
Name | Description |
---|---|
address | The address. |
device | The device. |
port | The port. |
Type | Description |
---|---|
Managed.Adb.Exceptions.AdbException | failed submitting request to ADB |
Managed.Adb.Exceptions.AdbException | connection request rejected |
Reads the data from specified socket.
Name | Description |
---|---|
socket | The socket. |
data | The data. |
Reads the data from specified socket.
Name | Description |
---|---|
socket | The socket. |
data | The data. |
length | The length. |
timeout | The timeout. |
Type | Description |
---|---|
Managed.Adb.Exceptions.AdbException | EOF |
Managed.Adb.Exceptions.AdbException | No Data to read: exception.Message |
Reads the adb response.
Name | Description |
---|---|
socket | The socket. |
readDiagString | [read diag string]. |
Reboots the specified adb socket address.
Name | Description |
---|---|
adbSocketAddress | The adb socket address. |
device | The device. |
Reboots the specified device in to the specified mode.
Name | Description |
---|---|
into | The into. |
adbSockAddr | The adb sock addr. |
device | The device. |
Removes all forwards.
Name | Description |
---|---|
address | The address. |
device | The device. |
Removes the forward.
Name | Description |
---|---|
address | The adb socket address. |
device | The device. |
localPort | The local port. |
Restores this instance.
Type | Description |
---|---|
System.NotImplementedException | System.NotImplementedException |
Runs the Event log service on the Device, and provides its output to the LogReceiver.
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.
Name | Description |
---|---|
address | The address. |
device | The device. |
logName | Name of the log. |
rcvr | The RCVR. |
Type | Description |
---|---|
Managed.Adb.Exceptions.AdbException | failed asking for log |
Managed.Adb.Exceptions.AdbCommandRejectedException | Managed.Adb.Exceptions.AdbCommandRejectedException |
Sets the device.
Name | Description |
---|---|
adbChan | The adb chan. |
device | The device. |
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.
Name | Description |
---|---|
socket | The socket. |
data | The data. |
Writes the specified data to the specified socket.
Name | Description |
---|---|
socket | The socket. |
data | The data. |
length | The length. |
timeout | The timeout. |
Type | Description |
---|---|
Managed.Adb.Exceptions.AdbException | channel EOF |
Managed.Adb.Exceptions.AdbException | timeout |
An Adb Communication Response
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.
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.
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.
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
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
Name | Description |
---|---|
busybox | The path to the busybox binary to install. |
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.
Name | Description |
---|---|
id | The id. |
handler | The handler. |
DDMs the seen.
Dumps the hprof.
Enables the allocation tracker.
Name | Description |
---|---|
enable | [enable]. |
Executes the garbage collector.
Forwards the packet to client.
Name | Description |
---|---|
packet | The packet. |
Gets the JDWP packet.
Determines whether [is response to us] [the specified id].
Name | Description |
---|---|
id | The id. |
Kills this instance.
Listens for debugger.
Name | Description |
---|---|
listenPort | The listen port. |
Reads this instance.
Registers the specified selector.
Name | Description |
---|---|
selector | The selector. |
Requests the allocation details.
Requests the allocation status.
Requests the method profiling status.
Requests the native heap information.
Requests the thread stack trace.
Name | Description |
---|---|
threadID | The thread ID. |
Requests the thread update.
Sends the and consume.
Name | Description |
---|---|
packet | The packet. |
Sends the and consume.
Name | Description |
---|---|
packet | The packet. |
replyHandler | The reply handler. |
Sends the handshake.
Toggles the method profiling.
Updates the specified change mask.
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
Name | Description |
---|---|
format | The format. |
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.
Name | Description |
---|---|
client | The client. |
port | The port. |
Adds the port to available list.
Name | Description |
---|---|
port | The port. |
Starts the monitoring
Stops the monitoring
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).
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.
Name | Description |
---|---|
localPort | the local port to forward |
remotePort | the remote port. |
Create a device from Adb Device list data
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.
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.
Name | Description |
---|---|
command | The command. |
receiver | The receiver. |
Executes a root shell command on the device, and sends the result to a receiver.
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.
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.
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.
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.
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.
Name | Description |
---|---|
command | The command. |
receiver | The receiver. |
timeout | The timeout. |
commandArgs | The command args. |
Gets the battery level.
Gets the battery level.
Name | Description |
---|---|
freshness | The freshness. |
Gets the property value.
Name | Description |
---|---|
name | The name of the property. |
Gets the first property that exists in the array of property names.
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
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.
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
Name | Description |
---|---|
into | The reboot state |
Refreshes the environment variables.
Refreshes the mount points.
Refreshes the properties.
Remounts the mount point.
Name | Description |
---|---|
mnt | The mount point. |
readOnly | the mount poine will be set to read-only. |
Remounts the mount point.
Name | Description |
---|---|
mountPoint | the mount point |
readOnly | the mount poine will be set to read-only. |
Type | Description |
---|---|
System.IO.IOException | Throws if the mount point does not exist. |
Removes a port forwarding between a local and a remote port.
Name | Description |
---|---|
localPort | the local port to forward |
remotePort | the remote port. |
Remove a file from device
Name | Description |
---|---|
remoteFilePath | path on device of file to remove |
Type | Description |
---|---|
System.IO.IOException | if file removal failed |
Runs the event log service.
Name | Description |
---|---|
receiver | The receiver. |
Runs the log service.
Name | Description |
---|---|
logname | The logname. |
receiver | The receiver. |
Pushes a file to device
Name | Description |
---|---|
localFilePath | the absolute path to file on local host |
Type | Description |
---|---|
System.IO.IOException | if fatal error occurred when pushing file |
Uninstall an package from the device.
Name | Description |
---|---|
packageName | Name of the package. |
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 link.
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
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.
Name | Description |
---|---|
device | The device to check |
path | the path to check |
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.
Name | Description |
---|---|
name | the name of the child to return. |
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.
Name | Description |
---|---|
path | The file path of |
Type | Description |
---|---|
System.IO.FileNotFoundException | Throws if unable to locate the file |
System.IO.FileNotFoundException | directory |
Finds the file entry.
Name | Description |
---|---|
parent | The parent. |
path | The path. |
Gets the children.
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.
Type | Description |
---|---|
System.IO.FileNotFoundException | Throws if unable to locate /dev/block |
Chmods the specified path.
Name | Description |
---|---|
path | The path. |
permissions | The permissions. |
Chmods the specified path.
Name | Description |
---|---|
path | The path. |
permissions | The permissions. |
Copies the specified source to the specified destination.
Name | Description |
---|---|
source | The source. |
destination | The destination. |
Creates the specified file entry.
Name | Description |
---|---|
fileEntry | The file entry. |
Deletes the specified path.
Name | Description |
---|---|
path | The path. |
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.
Name | Description |
---|---|
fileEntry | The file entry. |
Type | Description |
---|---|
System.IO.IOException | If the command fails. |
Gets if the specified path exists on the device.
Name | Description |
---|---|
path | the path to check |
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
Type | Description |
---|---|
System.IO.IOException | If mount point doesnt exist |
Makes the directory from the specified path.
Name | Description |
---|---|
path | The path. |
Makes the directory.
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.
Name | Description |
---|---|
mountPoint | The mountPoint. |
Mounts the specified device.
Name | Description |
---|---|
mountPoint | The mp. |
options | The options. |
Mounts the specified devices to the specified directory.
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.
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.
Name | Description |
---|---|
source | The source. |
destination | The destination. |
Resolves the link to the true path.
Name | Description |
---|---|
path | The path. |
Unmounts the specified mount point.
Name | Description |
---|---|
mountPoint | The mountPoint. |
Unmounts the specified mount point.
Name | Description |
---|---|
mountPoint | The mount point. |
Unmounts the specified mount point.
Name | Description |
---|---|
mountPoint | The mountPoint. |
options | The options. |
Gets or sets the current children.
Gets or sets the entries.
Gets a value indicating whether this instance is cancelled.
Gets or sets the links.
Gets or sets the parent.
Finishes the links.
Gets or sets the level.
Gets or sets the
Outputs a Debug level message.
Name | Description |
---|---|
tag | The tag associated with the message. |
message | The message to output |
Outputs a Debug level message.
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 Info level message.
Name | Description |
---|---|
tag | The tag associated with the message. |
format | The message to output. |
Outputs a Info level message.
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.
Name | Description |
---|---|
tag | The tag associated with the message. |
message | The message to output |
Outputs a Verbose level message.
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.
Name | Description |
---|---|
tag | The tag associated with the message. |
message | The message to output. |
Outputs a Warn level message.
Name | Description |
---|---|
tag | The tag associated with the message. |
exception | The exception to warn |
Outputs a Warn level message.
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.
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 the keys.
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.
Name | Description |
---|---|
letter | The letter. |
Gets the by letter.
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.
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.
Name | Description |
---|---|
work | the amount of work done. |
Sent when the transfer starts
Name | Description |
---|---|
totalWork | the total amount of work. |
Sent when a sub task is started.
Name | Description |
---|---|
source | |
destination | the destination. |
Sent when the transfer is finished or interrupted.
Gets or sets the packages.
Existses the specified package.
Name | Description |
---|---|
package | The package. |
Gets the apk file entry.
Name | Description |
---|---|
package | The package. |
Gets the apk path.
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 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).
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. |
Type | Description |
---|---|
System.ArgumentNullException | monitor;Monitor cannot be null |
Pulls a single file.
Name | Description |
---|---|
remote | remote the remote file |
localFilename | The local destination. |
monitor | The progress monitor. Cannot be null. |
Type | Description |
---|---|
System.ArgumentNullException | monitor;Monitor cannot be null |
System.ArgumentNullException | Throws if monitor is null |
Pulls a single file.
Name | Description |
---|---|
remoteFilepath | the full path to the remote file |
localFilename | The local destination. |
monitor | The progress monitor. Cannot be null. |
Type | Description |
---|---|
System.ArgumentNullException | monitor;Monitor cannot be null |
System.ArgumentNullException | Throws if monitor is null |
Push several files.
Name | Description |
---|---|
local | An array of local files to push |
remote | the remote FileEntry representing a directory. |
monitor | The progress monitor. Cannot be null. |
Type | Description |
---|---|
System.ArgumentNullException | Monitor cannot be null |
Push a single file.
Name | Description |
---|---|
local | the local filepath. |
remote | The remote filepath. |
monitor | The progress monitor. Cannot be null. |
Type | Description |
---|---|
System.ArgumentNullException | monitor;Monitor cannot be null |
System.ArgumentNullException | Throws if monitor is null |
Exception thrown when adb refuses a command.
Unable to connect to the device because it was not found in the list of available devices.
Just like System.IO.Path, except it is geared for Linux
Changes the extension of a path string.
Name | Description |
---|---|
extension | The new extension (with a leading period). Specify null to remove an existing extension from path. |
path | . |
Type | Description |
---|---|
System.ArgumentException | , |
System.ArgumentException | contains a wildcard character. |
Combine the specified paths to form one path
Name | Description |
---|---|
paths | The paths. |
Combines two path strings.
Name | Description |
---|---|
path2 | The second path. |
path1 | The first path. |
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
Name | Description |
---|---|
path1 | The path1. |
path2 | The path2. |
path3 | The path3. |
Combine the specified paths to form one path
Name | Description |
---|---|
path1 | The path1. |
path2 | The path2. |
path3 | The path3. |
path4 | The path4. |
Returns an escaped version of the entry name.
Name | Description |
---|---|
path | The path. |
Returns the directory information for the specified path string.
Name | Description |
---|---|
path | The path of a file or directory. |
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.
Name | Description |
---|---|
path | The path string from which to get the extension. |
Type | Description |
---|---|
System.ArgumentException | , |
System.ArgumentException | contains a wildcard character. |
Returns the file name and extension of the specified path string.
Name | Description |
---|---|
path | The path string from which to obtain the file name and extension. |
Type | Description |
---|---|
System.ArgumentException | , |
System.ArgumentException | contains a wildcard character. |
Returns the file name of the specified path string without the extension.
Name | Description |
---|---|
path | The path of the file. |
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.
Name | Description |
---|---|
path | The path from which to obtain root directory information. |
Type | Description |
---|---|
System.ArgumentException | was passed to path. |
Gets the path without file name.
Name | Description |
---|---|
path | The path. |
Determines whether a path includes a file name extension.
Name | Description |
---|---|
path | The path to search for an extension. |
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.
Name | Description |
---|---|
path | The path to test. |
Type | Description |
---|---|
System.ArgumentException | , |
System.ArgumentException | contains a wildcard character. |
A class that represents Rgb565 Image information
Converts the data to an image
Name | Description |
---|---|
data | The data. |
width | The width. |
height | The height. |
Gets the Image from the raw image data
Name | Description |
---|---|
format | The format. |
data | The data. |
width | The width. |
height | The height. |
Saves the image as an Rgb565 bitmap to disk
Name | Description |
---|---|
file | The file. |