C# Класс DroidExplorer.Core.CommandRunner

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AaptCommandRun CommandResult
AaptCommandToString string
AdbCommandToString string
CommandRun CommandResult
InternalGetDeviceState DeviceState
RunAaptCommand string
RunAdbCommand string
RunAdbCommand string
ShellLSRun CommandResult
ShellLSRun CommandResult
StringToDeviceState DeviceState

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AdbCommandArguments() публичный Метод

gets Adbs command arguments.
public AdbCommandArguments ( string device, AdbCommand command ) : string
device string The device.
command AdbCommand The command.
Результат string

AdbProcessCleanUp() публичный Метод

public AdbProcessCleanUp ( ) : void
Результат void

ApplyUpdate() публичный Метод

Applies the update.
public ApplyUpdate ( ) : void
Результат void

ApplyUpdate() публичный Метод

Applies the update.
public ApplyUpdate ( string device ) : void
device string The device.
Результат void

Chmod() публичный Метод

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.
Результат void

Chmod() публичный Метод

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.
Результат void

Chmod() публичный Метод

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.
Результат void

Chmod() публичный Метод

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.
Результат void

CommandRunner() публичный Метод

Initializes a new instance of the CommandRunner class.
public CommandRunner ( ) : System
Результат System

Connect() публичный Метод

Connects this instance.
public Connect ( ) : void
Результат void

Connect() публичный Метод

Connects the specified device.
public Connect ( string device ) : void
device string The device.
Результат void

DeleteDirectory() публичный Метод

Deletes the Directory. This will recursively remove all files and sub-directories as well
public DeleteDirectory ( string path ) : void
path string
Результат void

DeleteDirectory() публичный Метод

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.
Результат void

DeleteFile() публичный Метод

Deletes the file.
public DeleteFile ( string file ) : void
file string The file.
Результат void

DeleteFile() публичный Метод

Deletes the file.
public DeleteFile ( string device, string file ) : void
device string The device.
file string The file.
Результат void

DeviceBackup() публичный Метод

public DeviceBackup ( String output ) : void
output String
Результат void

DeviceBackup() публичный Метод

public DeviceBackup ( String device, String output ) : void
device String
output String
Результат void

DeviceBackup() публичный Метод

public DeviceBackup ( String device, String output, bool apk, bool system, bool shared ) : void
device String
output String
apk bool
system bool
shared bool
Результат void

DeviceBackup() публичный Метод

public DeviceBackup ( String output, bool apk, bool system, bool shared ) : void
output String
apk bool
system bool
shared bool
Результат void

DeviceRestore() публичный Метод

public DeviceRestore ( String backupFile ) : void
backupFile String
Результат void

DeviceRestore() публичный Метод

public DeviceRestore ( String device, String backupFile ) : void
device String
backupFile String
Результат void

Disconnect() публичный Метод

Disconnects this instance.
public Disconnect ( ) : void
Результат void

Disconnect() публичный Метод

Disconnects the specified device.
public Disconnect ( string device ) : void
device string The device.
Результат void

FastbootEraseRecovery() публичный Метод

Uses Fastboots to erase recovery image.
public FastbootEraseRecovery ( ) : void
Результат void

FastbootEraseRecovery() публичный Метод

public FastbootEraseRecovery ( string device ) : void
device string
Результат void

FastbootFlashImage() публичный Метод

public FastbootFlashImage ( string image ) : void
image string
Результат void

FastbootFlashImage() публичный Метод

public FastbootFlashImage ( string device, string image ) : void
device string
image string
Результат void

FlashImage() публичный Метод

Flashes the image.
public FlashImage ( string image ) : void
image string The image.
Результат void

FlashImage() публичный Метод

Flashes the image.
public FlashImage ( string device, string image ) : void
device string The device.
image string The image.
Результат void

Forward() публичный Метод

public Forward ( string local, string remote, bool rebind ) : void
local string local arg
remote string remote arg
rebind bool
Результат void

Forward() публичный Метод

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
Результат void

ForwardList() публичный Метод

public ForwardList ( ) : void
Результат void

ForwardList() публичный Метод

Forwards the specified device.
public ForwardList ( string device ) : void
device string The device.
Результат void

ForwardRemove() публичный Метод

public ForwardRemove ( string local ) : void
local string local arg
Результат void

ForwardRemove() публичный Метод

Forwards the specified device.
public ForwardRemove ( string device, string local ) : void
device string The device.
local string The local.
Результат void

ForwardRemoveAll() публичный Метод

public ForwardRemoveAll ( ) : void
Результат void

ForwardRemoveAll() публичный Метод

Forwards the specified device.
public ForwardRemoveAll ( string device ) : void
device string The device.
Результат void

GetAaptVersion() публичный Метод

Gets the aapt version.
public GetAaptVersion ( ) : string
Результат string

GetAdbVersion() публичный Метод

Gets the adb version.
public GetAdbVersion ( ) : string
Результат string

GetApkIconImage() публичный Метод

Gets the apk icon image.
public GetApkIconImage ( string apkFile ) : Image
apkFile string The apk file.
Результат Image

GetApkInformation() публичный Метод

public GetApkInformation ( string apkFile ) : AaptBrandingCommandResult
apkFile string
Результат AaptBrandingCommandResult

GetApkInformationFromLocalCache() публичный Метод

public GetApkInformationFromLocalCache ( String apkFile, String cacheDirectory ) : AaptBrandingCommandResult
apkFile String
cacheDirectory String
Результат AaptBrandingCommandResult

GetApkPermissions() публичный Метод

public GetApkPermissions ( string apkFile ) : List
apkFile string
Результат List

GetBatteryInfo() публичный Метод

public GetBatteryInfo ( ) : BatteryInfo
Результат DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() публичный Метод

public GetBatteryInfo ( String device ) : BatteryInfo
device String
Результат DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() публичный Метод

public GetBatteryInfo ( String device, long freshness ) : BatteryInfo
device String
freshness long
Результат DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() публичный Метод

public GetBatteryInfo ( long freshness ) : BatteryInfo
freshness long
Результат DroidExplorer.Core.Adb.BatteryInfo

GetDeviceState() публичный Метод

Gets the state of the device.
public GetDeviceState ( ) : DeviceState
Результат DeviceState

GetDeviceState() публичный Метод

Gets the state of the device.
public GetDeviceState ( string device ) : DeviceState
device string
Результат DeviceState

GetDeviceStatus() публичный Метод

public GetDeviceStatus ( string device ) : DeviceState
device string
Результат DeviceState

GetDevices() публичный Метод

Gets the devices.
public GetDevices ( ) : IEnumerable
Результат IEnumerable

GetDirectoryContents() публичный Метод

Gets the directory contents.
public GetDirectoryContents ( string path ) : List
path string The path.
Результат List

GetDirectoryContents() публичный Метод

Gets the directory contents.
public GetDirectoryContents ( string device, string path ) : List
device string The device.
path string The path.
Результат List

GetInstalledPackages() публичный Метод

Gets the installed packages.
public GetInstalledPackages ( ) : PackageManagerListPackagesCommandResult
Результат PackageManagerListPackagesCommandResult

GetInstalledPackages() публичный Метод

Gets the installed packages.
public GetInstalledPackages ( string device ) : PackageManagerListPackagesCommandResult
device string The device.
Результат PackageManagerListPackagesCommandResult

GetInstalledPackagesApkInformation() публичный Метод

Gets the installed packages apk information.
public GetInstalledPackagesApkInformation ( ) : List
Результат List

GetInstalledPackagesApkInformation() публичный Метод

Gets the installed packages apk information.
public GetInstalledPackagesApkInformation ( string device ) : List
device string The device.
Результат List

GetLocalApkIconImage() публичный Метод

public GetLocalApkIconImage ( string apkFile ) : Image
apkFile string
Результат Image

GetLocalApkInformation() публичный Метод

public GetLocalApkInformation ( string apkFile ) : AaptBrandingCommandResult
apkFile string
Результат AaptBrandingCommandResult

GetLocalApkPermissions() публичный Метод

public GetLocalApkPermissions ( string apkFile ) : List
apkFile string
Результат List

GetProcessIds() публичный Метод

Gets the process ids.
public GetProcessIds ( ) : List
Результат List

GetProcessIds() публичный Метод

Gets the process ids.
public GetProcessIds ( string device ) : List
device string The device.
Результат List

GetProcessInfoList() публичный Метод

Gets the process info list.
public GetProcessInfoList ( ) : List
Результат List

GetProcessInfoList() публичный Метод

Gets the process info list.
public GetProcessInfoList ( string device ) : List
device string The device.
Результат List

GetProperties() публичный Метод

Gets the properties.
public GetProperties ( ) : PropertyList
Результат PropertyList

GetProperties() публичный Метод

Gets the properties.
public GetProperties ( string device ) : PropertyList
device string The device.
Результат PropertyList

GetProperty() публичный Метод

public GetProperty ( ) : string
Результат string

GetProperty() публичный Метод

Gets the property.
public GetProperty ( string propertyName ) : string
propertyName string Name of the property.
Результат string

GetProperty() публичный Метод

Gets the property.
public GetProperty ( string device, string propertyName ) : string
device string The device.
propertyName string Name of the property.
Результат string

GetScreenResolution() публичный Метод

public GetScreenResolution ( ) : Size
Результат System.Drawing.Size

GetScreenResolution() публичный Метод

public GetScreenResolution ( string device ) : Size
device string
Результат System.Drawing.Size

GetSerialNumber() публичный Метод

Gets the serial number.
public GetSerialNumber ( ) : string
Результат string

GetSerialNumber() публичный Метод

Gets the serial number.
public GetSerialNumber ( string device ) : string
device string The device.
Результат string

InstallApk() публичный Метод

Installs the apk.
public InstallApk ( string apkFile ) : bool
apkFile string The apk file.
Результат bool

InstallApk() публичный Метод

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.
Результат bool

IsAppDirectory() публичный статический Метод

Determines whether [is app directory] [the specified path].
public static IsAppDirectory ( string path ) : bool
path string The path.
Результат bool

IsMountPoint() публичный Метод

Determines whether the specified path is a mount point on the default device.
public IsMountPoint ( string path ) : bool
path string The path.
Результат bool

IsMountPoint() публичный Метод

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.
Результат bool

IsPackageInstalled() публичный Метод

Determines whether the specified package is installed on the default device.
public IsPackageInstalled ( string package ) : bool
package string The package.
Результат bool

IsPackageInstalled() публичный Метод

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.
Результат bool

LaunchActivity() публичный Метод

Launches the activity.
public LaunchActivity ( string package, string classFullName ) : void
package string The package.
classFullName string Full name of the class.
Результат void

LaunchActivity() публичный Метод

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.
Результат void

LaunchAvdManager() публичный Метод

public LaunchAvdManager ( ) : void
Результат void

LaunchDalvikDebugMonitor() публичный Метод

Launches the dalvik debug monitor.
public LaunchDalvikDebugMonitor ( ) : void
Результат void

LaunchHierarchyViewer() публичный Метод

Launches the hierarchy viewer.
public LaunchHierarchyViewer ( ) : void
Результат void

LaunchProcessWindow() публичный Метод

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].
Результат void

LaunchRedirectedShellWindow() публичный Метод

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.
Результат void

LaunchSdkManager() публичный Метод

public LaunchSdkManager ( ) : void
Результат void

LaunchShellWindow() публичный Метод

Launches the shell window.
public LaunchShellWindow ( ) : void
Результат void

LaunchShellWindow() публичный Метод

Launches the shell window.
public LaunchShellWindow ( string device ) : void
device string The device.
Результат void

LaunchShellWindow() публичный Метод

Launches the shell window.
public LaunchShellWindow ( string device, string initialCommand ) : void
device string The device.
initialCommand string The initial command.
Результат void

ListDirectories() публичный Метод

Lists the directories.
public ListDirectories ( string path ) : List
path string The path.
Результат List

ListDirectories() публичный Метод

Lists the directories.
public ListDirectories ( string device, string path ) : List
device string The device.
path string The path.
Результат List

MakeReadOnly() публичный Метод

Makes the mount point read only.
public MakeReadOnly ( string mountPoint ) : void
mountPoint string The mount point.
Результат void

MakeReadOnly() публичный Метод

Makes the mount point read only.
public MakeReadOnly ( string device, string mountPoint ) : void
device string The device.
mountPoint string The mount point.
Результат void

MakeReadWrite() публичный Метод

Makes the mount point read write.
public MakeReadWrite ( string mountPoint ) : void
mountPoint string The mount point.
Результат void

MakeReadWrite() публичный Метод

Makes the mount point read write.
public MakeReadWrite ( string device, string mountPoint ) : void
device string The device.
mountPoint string The mount point.
Результат void

Mount() публичный Метод

Mounts the specified mount.
public Mount ( string mount ) : void
mount string The mount.
Результат void

Mount() публичный Метод

Mounts the specified device.
public Mount ( string device, string mount ) : void
device string The device.
mount string The mount.
Результат void

PullDirectory() публичный Метод

Pulls the directory.
public PullDirectory ( string remotePath ) : System.IO.DirectoryInfo
remotePath string The remote path.
Результат System.IO.DirectoryInfo

PullDirectory() публичный Метод

Pulls the directory.
public PullDirectory ( string remotePath, string localPath ) : System.IO.DirectoryInfo
remotePath string The remote path.
localPath string The local path.
Результат System.IO.DirectoryInfo

PullDirectory() публичный Метод

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.
Результат System.IO.DirectoryInfo

PullFile() публичный Метод

Pulls the file.
public PullFile ( string path ) : System.IO.FileInfo
path string The path.
Результат System.IO.FileInfo

PullFile() публичный Метод

Pulls the file.
public PullFile ( string device, string path ) : System.IO.FileInfo
device string The device.
path string The path.
Результат System.IO.FileInfo

PullFiles() публичный Метод

Pulls the files.
public PullFiles ( List paths ) : List
paths List The paths.
Результат List

PullFiles() публичный Метод

Pulls the files.
public PullFiles ( string device, List paths ) : List
device string The device.
paths List The paths.
Результат List

PushFile() публичный Метод

Pushes the file.
public PushFile ( string local, string remote ) : TransferCommandResult
local string The local.
remote string The remote.
Результат TransferCommandResult

PushFile() публичный Метод

Pushes the file.
public PushFile ( string device, string local, string remote ) : TransferCommandResult
device string The device.
local string The local.
remote string The remote.
Результат TransferCommandResult

ReadFile() публичный Метод

Reads the file.
public ReadFile ( string file ) : GenericCommandResult
file string The file.
Результат GenericCommandResult

ReadFile() публичный Метод

Reads the file.
public ReadFile ( string device, string file ) : GenericCommandResult
device string The device.
file string The file.
Результат GenericCommandResult

Reboot() публичный Метод

Reboots the default device.
public Reboot ( ) : void
Результат void

Reboot() публичный Метод

Reboots the specified device.
public Reboot ( string device ) : void
device string The device.
Результат void

Reboot() публичный Метод

public Reboot ( string device, string mode ) : void
device string
mode string
Результат void

RebootBootloader() публичный Метод

Reboots in to bootloader.
public RebootBootloader ( ) : void
Результат void

RebootBootloader() публичный Метод

Reboots in to bootloader.
public RebootBootloader ( string device ) : void
device string The device.
Результат void

RebootDownloadMode() публичный Метод

Reboots the device in download mode.
public RebootDownloadMode ( ) : void
Результат void

RebootDownloadMode() публичный Метод

Reboots the device in download mode.
public RebootDownloadMode ( String device ) : void
device String The device.
Результат void

RebootRecovery() публичный Метод

Reboots in to recovery.
public RebootRecovery ( ) : void
Результат void

RebootRecovery() публичный Метод

Reboots in to recovery.
public RebootRecovery ( string device ) : void
device string The device.
Результат void

ReinstallApk() публичный Метод

Reinstalls the apk.
public ReinstallApk ( string apkFile ) : bool
apkFile string The apk file.
Результат bool

ReinstallApk() публичный Метод

Reinstalls the apk.
public ReinstallApk ( string device, string apkFile ) : bool
device string The device.
apkFile string The apk file.
Результат bool

Rename() публичный Метод

public Rename ( string path, string newName ) : void
path string
newName string
Результат void

Rename() публичный Метод

public Rename ( string device, string path, string newName ) : void
device string
path string
newName string
Результат void

RenameFile() публичный Метод

Renames the file.
public RenameFile ( string file, string newName ) : void
file string The file.
newName string The new name.
Результат void

RenameFile() публичный Метод

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.
Результат void

RestartServer() публичный Метод

public RestartServer ( ) : void
Результат void

Reverse() публичный Метод

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].
Результат void

Reverse() публичный Метод

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].
Результат void

ReverseList() публичный Метод

public ReverseList ( ) : void
Результат void

ReverseList() публичный Метод

Forwards the specified device.
public ReverseList ( string device ) : void
device string The device.
Результат void

ReverseRemove() публичный Метод

public ReverseRemove ( string local ) : void
local string local arg
Результат void

ReverseRemove() публичный Метод

Forwards the specified device.
public ReverseRemove ( string device, string local ) : void
device string The device.
local string The local.
Результат void

ReverseRemoveAll() публичный Метод

public ReverseRemoveAll ( ) : void
Результат void

ReverseRemoveAll() публичный Метод

Forwards the specified device.
public ReverseRemoveAll ( string device ) : void
device string The device.
Результат void

ScreenCapture() публичный Метод

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
Результат ScreenCaptureCommandResult

ShellRun() публичный Метод

Shell run a command.
public ShellRun ( string command ) : CommandResult
command string The command.
Результат CommandResult

ShellRun() публичный Метод

Shell run a command.
public ShellRun ( string device, string command ) : CommandResult
device string The device.
command string The command.
Результат CommandResult

StartAdbAsRoot() публичный Метод

Starts the adb service as root on the device.
public StartAdbAsRoot ( string device ) : void
device string The device.
Результат void

StartServer() публичный Метод

Starts the server.
public StartServer ( ) : void
Результат void

StopServer() публичный Метод

public StopServer ( ) : void
Результат void

TcpConnect() публичный Метод

public TcpConnect ( string connection ) : bool
connection string
Результат bool

TopProcessKill() публичный Метод

Tops the process kill.
public TopProcessKill ( ) : void
Результат void

TopProcessRun() публичный Метод

Tops the process run.
public TopProcessRun ( ) : void
Результат void

UninstallApk() публичный Метод

Uninstalls the apk.
public UninstallApk ( string package ) : bool
package string The package.
Результат bool

UninstallApk() публичный Метод

Uninstalls the apk.
public UninstallApk ( string device, string package ) : bool
device string The device.
package string The package.
Результат bool

shell_OutputDataReceived() публичный Метод

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.
Результат void