C# Class DroidExplorer.Core.CommandRunner

Datei anzeigen Open project: camalot/droidexplorer Class Usage Examples

Private Properties

Property Type Description
AaptCommandRun CommandResult
AaptCommandToString string
AdbCommandToString string
CommandRun CommandResult
InternalGetDeviceState DeviceState
RunAaptCommand string
RunAdbCommand string
RunAdbCommand string
ShellLSRun CommandResult
ShellLSRun CommandResult
StringToDeviceState DeviceState

Public Methods

Method Description
AdbCommandArguments ( string device, AdbCommand command ) : string

gets Adbs command arguments.

AdbProcessCleanUp ( ) : void
ApplyUpdate ( ) : void

Applies the update.

ApplyUpdate ( string device ) : void

Applies the update.

Chmod ( Permission user, Permission group, Permission other, string file ) : void

Change file system modes of files and directories. The modes include permissions and special modes.

Chmod ( int mode, string file ) : void

Change file system modes of files and directories. The modes include permissions and special modes.

Chmod ( string device, Permission user, Permission group, Permission other, string file ) : void

Change file system modes of files and directories. The modes include permissions and special modes.

Chmod ( string device, int mode, string file ) : void

Change file system modes of files and directories. The modes include permissions and special modes.

CommandRunner ( ) : System

Initializes a new instance of the CommandRunner class.

Connect ( ) : void

Connects this instance.

Connect ( string device ) : void

Connects the specified device.

DeleteDirectory ( string path ) : void

Deletes the Directory. This will recursively remove all files and sub-directories as well

DeleteDirectory ( string device, string path ) : void

Deletes the Directory. This will recursively remove all files and sub-directories as well

DeleteFile ( string file ) : void

Deletes the file.

DeleteFile ( string device, string file ) : void

Deletes the file.

DeviceBackup ( String output ) : void
DeviceBackup ( String device, String output ) : void
DeviceBackup ( String device, String output, bool apk, bool system, bool shared ) : void
DeviceBackup ( String output, bool apk, bool system, bool shared ) : void
DeviceRestore ( String backupFile ) : void
DeviceRestore ( String device, String backupFile ) : void
Disconnect ( ) : void

Disconnects this instance.

Disconnect ( string device ) : void

Disconnects the specified device.

FastbootEraseRecovery ( ) : void

Uses Fastboots to erase recovery image.

FastbootEraseRecovery ( string device ) : void
FastbootFlashImage ( string image ) : void
FastbootFlashImage ( string device, string image ) : void
FlashImage ( string image ) : void

Flashes the image.

FlashImage ( string device, string image ) : void

Flashes the image.

Forward ( string local, string remote, bool rebind ) : void

Forward ( string device, string local, string remote, bool rebind ) : void

Forwards the specified device.

ForwardList ( ) : void

ForwardList ( string device ) : void

Forwards the specified device.

ForwardRemove ( string local ) : void

ForwardRemove ( string device, string local ) : void

Forwards the specified device.

ForwardRemoveAll ( ) : void

ForwardRemoveAll ( string device ) : void

Forwards the specified device.

GetAaptVersion ( ) : string

Gets the aapt version.

GetAdbVersion ( ) : string

Gets the adb version.

GetApkIconImage ( string apkFile ) : Image

Gets the apk icon image.

GetApkInformation ( string apkFile ) : AaptBrandingCommandResult
GetApkInformationFromLocalCache ( String apkFile, String cacheDirectory ) : AaptBrandingCommandResult
GetApkPermissions ( string apkFile ) : List
GetBatteryInfo ( ) : BatteryInfo
GetBatteryInfo ( String device ) : BatteryInfo
GetBatteryInfo ( String device, long freshness ) : BatteryInfo
GetBatteryInfo ( long freshness ) : BatteryInfo
GetDeviceState ( ) : DeviceState

Gets the state of the device.

GetDeviceState ( string device ) : DeviceState

Gets the state of the device.

GetDeviceStatus ( string device ) : DeviceState
GetDevices ( ) : IEnumerable

Gets the devices.

GetDirectoryContents ( string path ) : List

Gets the directory contents.

GetDirectoryContents ( string device, string path ) : List

Gets the directory contents.

GetInstalledPackages ( ) : PackageManagerListPackagesCommandResult

Gets the installed packages.

GetInstalledPackages ( string device ) : PackageManagerListPackagesCommandResult

Gets the installed packages.

GetInstalledPackagesApkInformation ( ) : List

Gets the installed packages apk information.

GetInstalledPackagesApkInformation ( string device ) : List

Gets the installed packages apk information.

GetLocalApkIconImage ( string apkFile ) : Image
GetLocalApkInformation ( string apkFile ) : AaptBrandingCommandResult
GetLocalApkPermissions ( string apkFile ) : List
GetProcessIds ( ) : List

Gets the process ids.

GetProcessIds ( string device ) : List

Gets the process ids.

GetProcessInfoList ( ) : List

Gets the process info list.

GetProcessInfoList ( string device ) : List

Gets the process info list.

GetProperties ( ) : PropertyList

Gets the properties.

GetProperties ( string device ) : PropertyList

Gets the properties.

GetProperty ( ) : string
GetProperty ( string propertyName ) : string

Gets the property.

GetProperty ( string device, string propertyName ) : string

Gets the property.

GetScreenResolution ( ) : Size
GetScreenResolution ( string device ) : Size
GetSerialNumber ( ) : string

Gets the serial number.

GetSerialNumber ( string device ) : string

Gets the serial number.

InstallApk ( string apkFile ) : bool

Installs the apk.

InstallApk ( string device, string apkFile ) : bool

Installs the apk. If it fails, it attempts to "reinstall".

IsAppDirectory ( string path ) : bool

Determines whether [is app directory] [the specified path].

IsMountPoint ( string path ) : bool

Determines whether the specified path is a mount point on the default device.

IsMountPoint ( string device, string path ) : bool

Determines whether the specified path is a mount point on the specified device.

IsPackageInstalled ( string package ) : bool

Determines whether the specified package is installed on the default device.

IsPackageInstalled ( string device, string package ) : bool

Determines whether the specified package is installed on the device.

LaunchActivity ( string package, string classFullName ) : void

Launches the activity.

LaunchActivity ( string device, string package, string classFullName ) : void

Launches the activity.

LaunchAvdManager ( ) : void
LaunchDalvikDebugMonitor ( ) : void

Launches the dalvik debug monitor.

LaunchHierarchyViewer ( ) : void

Launches the hierarchy viewer.

LaunchProcessWindow ( string process, string args, bool visible ) : void

Launches the process window.

LaunchRedirectedShellWindow ( string device, string initialCommand, IShellProcess shellHandler ) : void

Launches the redirected shell window.

LaunchSdkManager ( ) : void
LaunchShellWindow ( ) : void

Launches the shell window.

LaunchShellWindow ( string device ) : void

Launches the shell window.

LaunchShellWindow ( string device, string initialCommand ) : void

Launches the shell window.

ListDirectories ( string path ) : List

Lists the directories.

ListDirectories ( string device, string path ) : List

Lists the directories.

MakeReadOnly ( string mountPoint ) : void

Makes the mount point read only.

MakeReadOnly ( string device, string mountPoint ) : void

Makes the mount point read only.

MakeReadWrite ( string mountPoint ) : void

Makes the mount point read write.

MakeReadWrite ( string device, string mountPoint ) : void

Makes the mount point read write.

Mount ( string mount ) : void

Mounts the specified mount.

Mount ( string device, string mount ) : void

Mounts the specified device.

PullDirectory ( string remotePath ) : System.IO.DirectoryInfo

Pulls the directory.

PullDirectory ( string remotePath, string localPath ) : System.IO.DirectoryInfo

Pulls the directory.

PullDirectory ( string device, string remotePath, string localPath ) : System.IO.DirectoryInfo

Pulls the directory.

PullFile ( string path ) : System.IO.FileInfo

Pulls the file.

PullFile ( string device, string path ) : System.IO.FileInfo

Pulls the file.

PullFiles ( List paths ) : List

Pulls the files.

PullFiles ( string device, List paths ) : List

Pulls the files.

PushFile ( string local, string remote ) : TransferCommandResult

Pushes the file.

PushFile ( string device, string local, string remote ) : TransferCommandResult

Pushes the file.

ReadFile ( string file ) : GenericCommandResult

Reads the file.

ReadFile ( string device, string file ) : GenericCommandResult

Reads the file.

Reboot ( ) : void

Reboots the default device.

Reboot ( string device ) : void

Reboots the specified device.

Reboot ( string device, string mode ) : void
RebootBootloader ( ) : void

Reboots in to bootloader.

RebootBootloader ( string device ) : void

Reboots in to bootloader.

RebootDownloadMode ( ) : void

Reboots the device in download mode.

RebootDownloadMode ( String device ) : void

Reboots the device in download mode.

RebootRecovery ( ) : void

Reboots in to recovery.

RebootRecovery ( string device ) : void

Reboots in to recovery.

ReinstallApk ( string apkFile ) : bool

Reinstalls the apk.

ReinstallApk ( string device, string apkFile ) : bool

Reinstalls the apk.

Rename ( string path, string newName ) : void
Rename ( string device, string path, string newName ) : void
RenameFile ( string file, string newName ) : void

Renames the file.

RenameFile ( string device, string file, string newName ) : void

Renames the file.

RestartServer ( ) : void
Reverse ( string local, string remote, bool rebind ) : void

Reverses the specified local.

Reverse ( string device, string local, string remote, bool rebind ) : void

Forwards the specified device.

ReverseList ( ) : void

ReverseList ( string device ) : void

Forwards the specified device.

ReverseRemove ( string local ) : void

ReverseRemove ( string device, string local ) : void

Forwards the specified device.

ReverseRemoveAll ( ) : void

ReverseRemoveAll ( string device ) : void

Forwards the specified device.

ScreenCapture ( string device, Size resolution, int bitrate, System.TimeSpan timeLimit, bool rotate, string file ) : ScreenCaptureCommandResult
ShellRun ( string command ) : CommandResult

Shell run a command.

ShellRun ( string device, string command ) : CommandResult

Shell run a command.

StartAdbAsRoot ( string device ) : void

Starts the adb service as root on the device.

StartServer ( ) : void

Starts the server.

StopServer ( ) : void
TcpConnect ( string connection ) : bool
TopProcessKill ( ) : void

Tops the process kill.

TopProcessRun ( ) : void

Tops the process run.

UninstallApk ( string package ) : bool

Uninstalls the apk.

UninstallApk ( string device, string package ) : bool

Uninstalls the apk.

shell_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Handles the OutputDataReceived event of the shell control.

Private Methods

Method Description
AaptCommandRun ( AaptCommand command, string args ) : CommandResult

Aapts the command run.

AaptCommandToString ( AaptCommand command ) : string

Convert the aapt Command to the string value

AdbCommandToString ( AdbCommand command ) : string

Convert the Adb Command to the string value

CommandRun ( string device, AdbCommand command, string args ) : CommandResult

runs the command

InternalGetDeviceState ( string device ) : DeviceState
RunAaptCommand ( AaptCommand command, string args ) : string

Runs the aapt command.

RunAdbCommand ( string device, AdbCommand command, string args ) : string
RunAdbCommand ( string device, AdbCommand command, string args, bool wait, bool logCommand ) : string

Runs the adb command.

ShellLSRun ( string command ) : CommandResult

Shell runs the LS command.

ShellLSRun ( string device, string command ) : CommandResult

Shell runs the LS command.

StringToDeviceState ( string val ) : DeviceState

Gets the device state from the string value

Method Details

AdbCommandArguments() public method

gets Adbs command arguments.
public AdbCommandArguments ( string device, AdbCommand command ) : string
device string The device.
command AdbCommand The command.
return string

AdbProcessCleanUp() public method

public AdbProcessCleanUp ( ) : void
return void

ApplyUpdate() public method

Applies the update.
public ApplyUpdate ( ) : void
return void

ApplyUpdate() public method

Applies the update.
public ApplyUpdate ( string device ) : void
device string The device.
return void

Chmod() public method

Change file system modes of files and directories. The modes include permissions and special modes.
public Chmod ( Permission user, Permission group, Permission other, string file ) : void
user DroidExplorer.Core.IO.Permission The user.
group DroidExplorer.Core.IO.Permission The group.
other DroidExplorer.Core.IO.Permission The other.
file string The file.
return void

Chmod() public method

Change file system modes of files and directories. The modes include permissions and special modes.
public Chmod ( int mode, string file ) : void
mode int The mode.
file string The file.
return void

Chmod() public method

Change file system modes of files and directories. The modes include permissions and special modes.
public Chmod ( string device, Permission user, Permission group, Permission other, string file ) : void
device string The device.
user DroidExplorer.Core.IO.Permission The user.
group DroidExplorer.Core.IO.Permission The group.
other DroidExplorer.Core.IO.Permission The other.
file string The file.
return void

Chmod() public method

Change file system modes of files and directories. The modes include permissions and special modes.
public Chmod ( string device, int mode, string file ) : void
device string The device.
mode int The mode.
file string The file.
return void

CommandRunner() public method

Initializes a new instance of the CommandRunner class.
public CommandRunner ( ) : System
return System

Connect() public method

Connects this instance.
public Connect ( ) : void
return void

Connect() public method

Connects the specified device.
public Connect ( string device ) : void
device string The device.
return void

DeleteDirectory() public method

Deletes the Directory. This will recursively remove all files and sub-directories as well
public DeleteDirectory ( string path ) : void
path string
return void

DeleteDirectory() public method

Deletes the Directory. This will recursively remove all files and sub-directories as well
public DeleteDirectory ( string device, string path ) : void
device string The device.
path string The path to delete.
return void

DeleteFile() public method

Deletes the file.
public DeleteFile ( string file ) : void
file string The file.
return void

DeleteFile() public method

Deletes the file.
public DeleteFile ( string device, string file ) : void
device string The device.
file string The file.
return void

DeviceBackup() public method

public DeviceBackup ( String output ) : void
output String
return void

DeviceBackup() public method

public DeviceBackup ( String device, String output ) : void
device String
output String
return void

DeviceBackup() public method

public DeviceBackup ( String device, String output, bool apk, bool system, bool shared ) : void
device String
output String
apk bool
system bool
shared bool
return void

DeviceBackup() public method

public DeviceBackup ( String output, bool apk, bool system, bool shared ) : void
output String
apk bool
system bool
shared bool
return void

DeviceRestore() public method

public DeviceRestore ( String backupFile ) : void
backupFile String
return void

DeviceRestore() public method

public DeviceRestore ( String device, String backupFile ) : void
device String
backupFile String
return void

Disconnect() public method

Disconnects this instance.
public Disconnect ( ) : void
return void

Disconnect() public method

Disconnects the specified device.
public Disconnect ( string device ) : void
device string The device.
return void

FastbootEraseRecovery() public method

Uses Fastboots to erase recovery image.
public FastbootEraseRecovery ( ) : void
return void

FastbootEraseRecovery() public method

public FastbootEraseRecovery ( string device ) : void
device string
return void

FastbootFlashImage() public method

public FastbootFlashImage ( string image ) : void
image string
return void

FastbootFlashImage() public method

public FastbootFlashImage ( string device, string image ) : void
device string
image string
return void

FlashImage() public method

Flashes the image.
public FlashImage ( string image ) : void
image string The image.
return void

FlashImage() public method

Flashes the image.
public FlashImage ( string device, string image ) : void
device string The device.
image string The image.
return void

Forward() public method

public Forward ( string local, string remote, bool rebind ) : void
local string local arg
remote string remote arg
rebind bool
return void

Forward() public method

Forwards the specified device.
public Forward ( string device, string local, string remote, bool rebind ) : void
device string The device.
local string The local.
remote string The remote.
rebind bool
return void

ForwardList() public method

public ForwardList ( ) : void
return void

ForwardList() public method

Forwards the specified device.
public ForwardList ( string device ) : void
device string The device.
return void

ForwardRemove() public method

public ForwardRemove ( string local ) : void
local string local arg
return void

ForwardRemove() public method

Forwards the specified device.
public ForwardRemove ( string device, string local ) : void
device string The device.
local string The local.
return void

ForwardRemoveAll() public method

public ForwardRemoveAll ( ) : void
return void

ForwardRemoveAll() public method

Forwards the specified device.
public ForwardRemoveAll ( string device ) : void
device string The device.
return void

GetAaptVersion() public method

Gets the aapt version.
public GetAaptVersion ( ) : string
return string

GetAdbVersion() public method

Gets the adb version.
public GetAdbVersion ( ) : string
return string

GetApkIconImage() public method

Gets the apk icon image.
public GetApkIconImage ( string apkFile ) : Image
apkFile string The apk file.
return Image

GetApkInformation() public method

public GetApkInformation ( string apkFile ) : AaptBrandingCommandResult
apkFile string
return AaptBrandingCommandResult

GetApkInformationFromLocalCache() public method

public GetApkInformationFromLocalCache ( String apkFile, String cacheDirectory ) : AaptBrandingCommandResult
apkFile String
cacheDirectory String
return AaptBrandingCommandResult

GetApkPermissions() public method

public GetApkPermissions ( string apkFile ) : List
apkFile string
return List

GetBatteryInfo() public method

public GetBatteryInfo ( ) : BatteryInfo
return DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() public method

public GetBatteryInfo ( String device ) : BatteryInfo
device String
return DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() public method

public GetBatteryInfo ( String device, long freshness ) : BatteryInfo
device String
freshness long
return DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() public method

public GetBatteryInfo ( long freshness ) : BatteryInfo
freshness long
return DroidExplorer.Core.Adb.BatteryInfo

GetDeviceState() public method

Gets the state of the device.
public GetDeviceState ( ) : DeviceState
return DeviceState

GetDeviceState() public method

Gets the state of the device.
public GetDeviceState ( string device ) : DeviceState
device string
return DeviceState

GetDeviceStatus() public method

public GetDeviceStatus ( string device ) : DeviceState
device string
return DeviceState

GetDevices() public method

Gets the devices.
public GetDevices ( ) : IEnumerable
return IEnumerable

GetDirectoryContents() public method

Gets the directory contents.
public GetDirectoryContents ( string path ) : List
path string The path.
return List

GetDirectoryContents() public method

Gets the directory contents.
public GetDirectoryContents ( string device, string path ) : List
device string The device.
path string The path.
return List

GetInstalledPackages() public method

Gets the installed packages.
public GetInstalledPackages ( ) : PackageManagerListPackagesCommandResult
return PackageManagerListPackagesCommandResult

GetInstalledPackages() public method

Gets the installed packages.
public GetInstalledPackages ( string device ) : PackageManagerListPackagesCommandResult
device string The device.
return PackageManagerListPackagesCommandResult

GetInstalledPackagesApkInformation() public method

Gets the installed packages apk information.
public GetInstalledPackagesApkInformation ( ) : List
return List

GetInstalledPackagesApkInformation() public method

Gets the installed packages apk information.
public GetInstalledPackagesApkInformation ( string device ) : List
device string The device.
return List

GetLocalApkIconImage() public method

public GetLocalApkIconImage ( string apkFile ) : Image
apkFile string
return Image

GetLocalApkInformation() public method

public GetLocalApkInformation ( string apkFile ) : AaptBrandingCommandResult
apkFile string
return AaptBrandingCommandResult

GetLocalApkPermissions() public method

public GetLocalApkPermissions ( string apkFile ) : List
apkFile string
return List

GetProcessIds() public method

Gets the process ids.
public GetProcessIds ( ) : List
return List

GetProcessIds() public method

Gets the process ids.
public GetProcessIds ( string device ) : List
device string The device.
return List

GetProcessInfoList() public method

Gets the process info list.
public GetProcessInfoList ( ) : List
return List

GetProcessInfoList() public method

Gets the process info list.
public GetProcessInfoList ( string device ) : List
device string The device.
return List

GetProperties() public method

Gets the properties.
public GetProperties ( ) : PropertyList
return PropertyList

GetProperties() public method

Gets the properties.
public GetProperties ( string device ) : PropertyList
device string The device.
return PropertyList

GetProperty() public method

public GetProperty ( ) : string
return string

GetProperty() public method

Gets the property.
public GetProperty ( string propertyName ) : string
propertyName string Name of the property.
return string

GetProperty() public method

Gets the property.
public GetProperty ( string device, string propertyName ) : string
device string The device.
propertyName string Name of the property.
return string

GetScreenResolution() public method

public GetScreenResolution ( ) : Size
return System.Drawing.Size

GetScreenResolution() public method

public GetScreenResolution ( string device ) : Size
device string
return System.Drawing.Size

GetSerialNumber() public method

Gets the serial number.
public GetSerialNumber ( ) : string
return string

GetSerialNumber() public method

Gets the serial number.
public GetSerialNumber ( string device ) : string
device string The device.
return string

InstallApk() public method

Installs the apk.
public InstallApk ( string apkFile ) : bool
apkFile string The apk file.
return bool

InstallApk() public method

Installs the apk. If it fails, it attempts to "reinstall".
public InstallApk ( string device, string apkFile ) : bool
device string The device.
apkFile string The apk file.
return bool

IsAppDirectory() public static method

Determines whether [is app directory] [the specified path].
public static IsAppDirectory ( string path ) : bool
path string The path.
return bool

IsMountPoint() public method

Determines whether the specified path is a mount point on the default device.
public IsMountPoint ( string path ) : bool
path string The path.
return bool

IsMountPoint() public method

Determines whether the specified path is a mount point on the specified device.
public IsMountPoint ( string device, string path ) : bool
device string The device.
path string The path.
return bool

IsPackageInstalled() public method

Determines whether the specified package is installed on the default device.
public IsPackageInstalled ( string package ) : bool
package string The package.
return bool

IsPackageInstalled() public method

Determines whether the specified package is installed on the device.
public IsPackageInstalled ( string device, string package ) : bool
device string The device.
package string The package.
return bool

LaunchActivity() public method

Launches the activity.
public LaunchActivity ( string package, string classFullName ) : void
package string The package.
classFullName string Full name of the class.
return void

LaunchActivity() public method

Launches the activity.
public LaunchActivity ( string device, string package, string classFullName ) : void
device string The device.
package string The package.
classFullName string Full name of the class.
return void

LaunchAvdManager() public method

public LaunchAvdManager ( ) : void
return void

LaunchDalvikDebugMonitor() public method

Launches the dalvik debug monitor.
public LaunchDalvikDebugMonitor ( ) : void
return void

LaunchHierarchyViewer() public method

Launches the hierarchy viewer.
public LaunchHierarchyViewer ( ) : void
return void

LaunchProcessWindow() public method

Launches the process window.
public LaunchProcessWindow ( string process, string args, bool visible ) : void
process string The process.
args string The args.
visible bool if set to true [visible].
return void

LaunchRedirectedShellWindow() public method

Launches the redirected shell window.
public LaunchRedirectedShellWindow ( string device, string initialCommand, IShellProcess shellHandler ) : void
device string The device.
initialCommand string The initial command.
shellHandler IShellProcess The shell handler.
return void

LaunchSdkManager() public method

public LaunchSdkManager ( ) : void
return void

LaunchShellWindow() public method

Launches the shell window.
public LaunchShellWindow ( ) : void
return void

LaunchShellWindow() public method

Launches the shell window.
public LaunchShellWindow ( string device ) : void
device string The device.
return void

LaunchShellWindow() public method

Launches the shell window.
public LaunchShellWindow ( string device, string initialCommand ) : void
device string The device.
initialCommand string The initial command.
return void

ListDirectories() public method

Lists the directories.
public ListDirectories ( string path ) : List
path string The path.
return List

ListDirectories() public method

Lists the directories.
public ListDirectories ( string device, string path ) : List
device string The device.
path string The path.
return List

MakeReadOnly() public method

Makes the mount point read only.
public MakeReadOnly ( string mountPoint ) : void
mountPoint string The mount point.
return void

MakeReadOnly() public method

Makes the mount point read only.
public MakeReadOnly ( string device, string mountPoint ) : void
device string The device.
mountPoint string The mount point.
return void

MakeReadWrite() public method

Makes the mount point read write.
public MakeReadWrite ( string mountPoint ) : void
mountPoint string The mount point.
return void

MakeReadWrite() public method

Makes the mount point read write.
public MakeReadWrite ( string device, string mountPoint ) : void
device string The device.
mountPoint string The mount point.
return void

Mount() public method

Mounts the specified mount.
public Mount ( string mount ) : void
mount string The mount.
return void

Mount() public method

Mounts the specified device.
public Mount ( string device, string mount ) : void
device string The device.
mount string The mount.
return void

PullDirectory() public method

Pulls the directory.
public PullDirectory ( string remotePath ) : System.IO.DirectoryInfo
remotePath string The remote path.
return System.IO.DirectoryInfo

PullDirectory() public method

Pulls the directory.
public PullDirectory ( string remotePath, string localPath ) : System.IO.DirectoryInfo
remotePath string The remote path.
localPath string The local path.
return System.IO.DirectoryInfo

PullDirectory() public method

Pulls the directory.
public PullDirectory ( string device, string remotePath, string localPath ) : System.IO.DirectoryInfo
device string The device.
remotePath string The remote path.
localPath string The local path.
return System.IO.DirectoryInfo

PullFile() public method

Pulls the file.
public PullFile ( string path ) : System.IO.FileInfo
path string The path.
return System.IO.FileInfo

PullFile() public method

Pulls the file.
public PullFile ( string device, string path ) : System.IO.FileInfo
device string The device.
path string The path.
return System.IO.FileInfo

PullFiles() public method

Pulls the files.
public PullFiles ( List paths ) : List
paths List The paths.
return List

PullFiles() public method

Pulls the files.
public PullFiles ( string device, List paths ) : List
device string The device.
paths List The paths.
return List

PushFile() public method

Pushes the file.
public PushFile ( string local, string remote ) : TransferCommandResult
local string The local.
remote string The remote.
return TransferCommandResult

PushFile() public method

Pushes the file.
public PushFile ( string device, string local, string remote ) : TransferCommandResult
device string The device.
local string The local.
remote string The remote.
return TransferCommandResult

ReadFile() public method

Reads the file.
public ReadFile ( string file ) : GenericCommandResult
file string The file.
return GenericCommandResult

ReadFile() public method

Reads the file.
public ReadFile ( string device, string file ) : GenericCommandResult
device string The device.
file string The file.
return GenericCommandResult

Reboot() public method

Reboots the default device.
public Reboot ( ) : void
return void

Reboot() public method

Reboots the specified device.
public Reboot ( string device ) : void
device string The device.
return void

Reboot() public method

public Reboot ( string device, string mode ) : void
device string
mode string
return void

RebootBootloader() public method

Reboots in to bootloader.
public RebootBootloader ( ) : void
return void

RebootBootloader() public method

Reboots in to bootloader.
public RebootBootloader ( string device ) : void
device string The device.
return void

RebootDownloadMode() public method

Reboots the device in download mode.
public RebootDownloadMode ( ) : void
return void

RebootDownloadMode() public method

Reboots the device in download mode.
public RebootDownloadMode ( String device ) : void
device String The device.
return void

RebootRecovery() public method

Reboots in to recovery.
public RebootRecovery ( ) : void
return void

RebootRecovery() public method

Reboots in to recovery.
public RebootRecovery ( string device ) : void
device string The device.
return void

ReinstallApk() public method

Reinstalls the apk.
public ReinstallApk ( string apkFile ) : bool
apkFile string The apk file.
return bool

ReinstallApk() public method

Reinstalls the apk.
public ReinstallApk ( string device, string apkFile ) : bool
device string The device.
apkFile string The apk file.
return bool

Rename() public method

public Rename ( string path, string newName ) : void
path string
newName string
return void

Rename() public method

public Rename ( string device, string path, string newName ) : void
device string
path string
newName string
return void

RenameFile() public method

Renames the file.
public RenameFile ( string file, string newName ) : void
file string The file.
newName string The new name.
return void

RenameFile() public method

Renames the file.
public RenameFile ( string device, string file, string newName ) : void
device string The device.
file string The file.
newName string The new name.
return void

RestartServer() public method

public RestartServer ( ) : void
return void

Reverse() public method

Reverses the specified local.
public Reverse ( string local, string remote, bool rebind ) : void
local string local arg
remote string remote arg
rebind bool if set to true [rebind].
return void

Reverse() public method

Forwards the specified device.
public Reverse ( string device, string local, string remote, bool rebind ) : void
device string The device.
local string The local.
remote string The remote.
rebind bool if set to true [rebind].
return void

ReverseList() public method

public ReverseList ( ) : void
return void

ReverseList() public method

Forwards the specified device.
public ReverseList ( string device ) : void
device string The device.
return void

ReverseRemove() public method

public ReverseRemove ( string local ) : void
local string local arg
return void

ReverseRemove() public method

Forwards the specified device.
public ReverseRemove ( string device, string local ) : void
device string The device.
local string The local.
return void

ReverseRemoveAll() public method

public ReverseRemoveAll ( ) : void
return void

ReverseRemoveAll() public method

Forwards the specified device.
public ReverseRemoveAll ( string device ) : void
device string The device.
return void

ScreenCapture() public method

public ScreenCapture ( string device, Size resolution, int bitrate, System.TimeSpan timeLimit, bool rotate, string file ) : ScreenCaptureCommandResult
device string
resolution System.Drawing.Size
bitrate int
timeLimit System.TimeSpan
rotate bool
file string
return ScreenCaptureCommandResult

ShellRun() public method

Shell run a command.
public ShellRun ( string command ) : CommandResult
command string The command.
return CommandResult

ShellRun() public method

Shell run a command.
public ShellRun ( string device, string command ) : CommandResult
device string The device.
command string The command.
return CommandResult

StartAdbAsRoot() public method

Starts the adb service as root on the device.
public StartAdbAsRoot ( string device ) : void
device string The device.
return void

StartServer() public method

Starts the server.
public StartServer ( ) : void
return void

StopServer() public method

public StopServer ( ) : void
return void

TcpConnect() public method

public TcpConnect ( string connection ) : bool
connection string
return bool

TopProcessKill() public method

Tops the process kill.
public TopProcessKill ( ) : void
return void

TopProcessRun() public method

Tops the process run.
public TopProcessRun ( ) : void
return void

UninstallApk() public method

Uninstalls the apk.
public UninstallApk ( string package ) : bool
package string The package.
return bool

UninstallApk() public method

Uninstalls the apk.
public UninstallApk ( string device, string package ) : bool
device string The device.
package string The package.
return bool

shell_OutputDataReceived() public method

Handles the OutputDataReceived event of the shell control.
public shell_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void
sender object The source of the event.
e System.Diagnostics.DataReceivedEventArgs The instance containing the event data.
return void