C# Class DroidExplorer.Core.CommandRunner

Afficher le fichier Open project: camalot/droidexplorer Class Usage Examples

Private Properties

Свойство Type Description
AaptCommandRun CommandResult
AaptCommandToString string
AdbCommandToString string
CommandRun CommandResult
InternalGetDeviceState DeviceState
RunAaptCommand string
RunAdbCommand string
RunAdbCommand string
ShellLSRun CommandResult
ShellLSRun CommandResult
StringToDeviceState DeviceState

Méthodes publiques

Méthode 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

Méthode 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 méthode

gets Adbs command arguments.
public AdbCommandArguments ( string device, AdbCommand command ) : string
device string The device.
command AdbCommand The command.
Résultat string

AdbProcessCleanUp() public méthode

public AdbProcessCleanUp ( ) : void
Résultat void

ApplyUpdate() public méthode

Applies the update.
public ApplyUpdate ( ) : void
Résultat void

ApplyUpdate() public méthode

Applies the update.
public ApplyUpdate ( string device ) : void
device string The device.
Résultat void

Chmod() public méthode

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.
Résultat void

Chmod() public méthode

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.
Résultat void

Chmod() public méthode

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.
Résultat void

Chmod() public méthode

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.
Résultat void

CommandRunner() public méthode

Initializes a new instance of the CommandRunner class.
public CommandRunner ( ) : System
Résultat System

Connect() public méthode

Connects this instance.
public Connect ( ) : void
Résultat void

Connect() public méthode

Connects the specified device.
public Connect ( string device ) : void
device string The device.
Résultat void

DeleteDirectory() public méthode

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

DeleteDirectory() public méthode

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.
Résultat void

DeleteFile() public méthode

Deletes the file.
public DeleteFile ( string file ) : void
file string The file.
Résultat void

DeleteFile() public méthode

Deletes the file.
public DeleteFile ( string device, string file ) : void
device string The device.
file string The file.
Résultat void

DeviceBackup() public méthode

public DeviceBackup ( String output ) : void
output String
Résultat void

DeviceBackup() public méthode

public DeviceBackup ( String device, String output ) : void
device String
output String
Résultat void

DeviceBackup() public méthode

public DeviceBackup ( String device, String output, bool apk, bool system, bool shared ) : void
device String
output String
apk bool
system bool
shared bool
Résultat void

DeviceBackup() public méthode

public DeviceBackup ( String output, bool apk, bool system, bool shared ) : void
output String
apk bool
system bool
shared bool
Résultat void

DeviceRestore() public méthode

public DeviceRestore ( String backupFile ) : void
backupFile String
Résultat void

DeviceRestore() public méthode

public DeviceRestore ( String device, String backupFile ) : void
device String
backupFile String
Résultat void

Disconnect() public méthode

Disconnects this instance.
public Disconnect ( ) : void
Résultat void

Disconnect() public méthode

Disconnects the specified device.
public Disconnect ( string device ) : void
device string The device.
Résultat void

FastbootEraseRecovery() public méthode

Uses Fastboots to erase recovery image.
public FastbootEraseRecovery ( ) : void
Résultat void

FastbootEraseRecovery() public méthode

public FastbootEraseRecovery ( string device ) : void
device string
Résultat void

FastbootFlashImage() public méthode

public FastbootFlashImage ( string image ) : void
image string
Résultat void

FastbootFlashImage() public méthode

public FastbootFlashImage ( string device, string image ) : void
device string
image string
Résultat void

FlashImage() public méthode

Flashes the image.
public FlashImage ( string image ) : void
image string The image.
Résultat void

FlashImage() public méthode

Flashes the image.
public FlashImage ( string device, string image ) : void
device string The device.
image string The image.
Résultat void

Forward() public méthode

public Forward ( string local, string remote, bool rebind ) : void
local string local arg
remote string remote arg
rebind bool
Résultat void

Forward() public méthode

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
Résultat void

ForwardList() public méthode

public ForwardList ( ) : void
Résultat void

ForwardList() public méthode

Forwards the specified device.
public ForwardList ( string device ) : void
device string The device.
Résultat void

ForwardRemove() public méthode

public ForwardRemove ( string local ) : void
local string local arg
Résultat void

ForwardRemove() public méthode

Forwards the specified device.
public ForwardRemove ( string device, string local ) : void
device string The device.
local string The local.
Résultat void

ForwardRemoveAll() public méthode

public ForwardRemoveAll ( ) : void
Résultat void

ForwardRemoveAll() public méthode

Forwards the specified device.
public ForwardRemoveAll ( string device ) : void
device string The device.
Résultat void

GetAaptVersion() public méthode

Gets the aapt version.
public GetAaptVersion ( ) : string
Résultat string

GetAdbVersion() public méthode

Gets the adb version.
public GetAdbVersion ( ) : string
Résultat string

GetApkIconImage() public méthode

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

GetApkInformation() public méthode

public GetApkInformation ( string apkFile ) : AaptBrandingCommandResult
apkFile string
Résultat AaptBrandingCommandResult

GetApkInformationFromLocalCache() public méthode

public GetApkInformationFromLocalCache ( String apkFile, String cacheDirectory ) : AaptBrandingCommandResult
apkFile String
cacheDirectory String
Résultat AaptBrandingCommandResult

GetApkPermissions() public méthode

public GetApkPermissions ( string apkFile ) : List
apkFile string
Résultat List

GetBatteryInfo() public méthode

public GetBatteryInfo ( ) : BatteryInfo
Résultat DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() public méthode

public GetBatteryInfo ( String device ) : BatteryInfo
device String
Résultat DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() public méthode

public GetBatteryInfo ( String device, long freshness ) : BatteryInfo
device String
freshness long
Résultat DroidExplorer.Core.Adb.BatteryInfo

GetBatteryInfo() public méthode

public GetBatteryInfo ( long freshness ) : BatteryInfo
freshness long
Résultat DroidExplorer.Core.Adb.BatteryInfo

GetDeviceState() public méthode

Gets the state of the device.
public GetDeviceState ( ) : DeviceState
Résultat DeviceState

GetDeviceState() public méthode

Gets the state of the device.
public GetDeviceState ( string device ) : DeviceState
device string
Résultat DeviceState

GetDeviceStatus() public méthode

public GetDeviceStatus ( string device ) : DeviceState
device string
Résultat DeviceState

GetDevices() public méthode

Gets the devices.
public GetDevices ( ) : IEnumerable
Résultat IEnumerable

GetDirectoryContents() public méthode

Gets the directory contents.
public GetDirectoryContents ( string path ) : List
path string The path.
Résultat List

GetDirectoryContents() public méthode

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

GetInstalledPackages() public méthode

Gets the installed packages.
public GetInstalledPackages ( ) : PackageManagerListPackagesCommandResult
Résultat PackageManagerListPackagesCommandResult

GetInstalledPackages() public méthode

Gets the installed packages.
public GetInstalledPackages ( string device ) : PackageManagerListPackagesCommandResult
device string The device.
Résultat PackageManagerListPackagesCommandResult

GetInstalledPackagesApkInformation() public méthode

Gets the installed packages apk information.
public GetInstalledPackagesApkInformation ( ) : List
Résultat List

GetInstalledPackagesApkInformation() public méthode

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

GetLocalApkIconImage() public méthode

public GetLocalApkIconImage ( string apkFile ) : Image
apkFile string
Résultat Image

GetLocalApkInformation() public méthode

public GetLocalApkInformation ( string apkFile ) : AaptBrandingCommandResult
apkFile string
Résultat AaptBrandingCommandResult

GetLocalApkPermissions() public méthode

public GetLocalApkPermissions ( string apkFile ) : List
apkFile string
Résultat List

GetProcessIds() public méthode

Gets the process ids.
public GetProcessIds ( ) : List
Résultat List

GetProcessIds() public méthode

Gets the process ids.
public GetProcessIds ( string device ) : List
device string The device.
Résultat List

GetProcessInfoList() public méthode

Gets the process info list.
public GetProcessInfoList ( ) : List
Résultat List

GetProcessInfoList() public méthode

Gets the process info list.
public GetProcessInfoList ( string device ) : List
device string The device.
Résultat List

GetProperties() public méthode

Gets the properties.
public GetProperties ( ) : PropertyList
Résultat PropertyList

GetProperties() public méthode

Gets the properties.
public GetProperties ( string device ) : PropertyList
device string The device.
Résultat PropertyList

GetProperty() public méthode

public GetProperty ( ) : string
Résultat string

GetProperty() public méthode

Gets the property.
public GetProperty ( string propertyName ) : string
propertyName string Name of the property.
Résultat string

GetProperty() public méthode

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

GetScreenResolution() public méthode

public GetScreenResolution ( ) : Size
Résultat System.Drawing.Size

GetScreenResolution() public méthode

public GetScreenResolution ( string device ) : Size
device string
Résultat System.Drawing.Size

GetSerialNumber() public méthode

Gets the serial number.
public GetSerialNumber ( ) : string
Résultat string

GetSerialNumber() public méthode

Gets the serial number.
public GetSerialNumber ( string device ) : string
device string The device.
Résultat string

InstallApk() public méthode

Installs the apk.
public InstallApk ( string apkFile ) : bool
apkFile string The apk file.
Résultat bool

InstallApk() public méthode

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.
Résultat bool

IsAppDirectory() public static méthode

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

IsMountPoint() public méthode

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

IsMountPoint() public méthode

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.
Résultat bool

IsPackageInstalled() public méthode

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

IsPackageInstalled() public méthode

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.
Résultat bool

LaunchActivity() public méthode

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

LaunchActivity() public méthode

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.
Résultat void

LaunchAvdManager() public méthode

public LaunchAvdManager ( ) : void
Résultat void

LaunchDalvikDebugMonitor() public méthode

Launches the dalvik debug monitor.
public LaunchDalvikDebugMonitor ( ) : void
Résultat void

LaunchHierarchyViewer() public méthode

Launches the hierarchy viewer.
public LaunchHierarchyViewer ( ) : void
Résultat void

LaunchProcessWindow() public méthode

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].
Résultat void

LaunchRedirectedShellWindow() public méthode

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.
Résultat void

LaunchSdkManager() public méthode

public LaunchSdkManager ( ) : void
Résultat void

LaunchShellWindow() public méthode

Launches the shell window.
public LaunchShellWindow ( ) : void
Résultat void

LaunchShellWindow() public méthode

Launches the shell window.
public LaunchShellWindow ( string device ) : void
device string The device.
Résultat void

LaunchShellWindow() public méthode

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

ListDirectories() public méthode

Lists the directories.
public ListDirectories ( string path ) : List
path string The path.
Résultat List

ListDirectories() public méthode

Lists the directories.
public ListDirectories ( string device, string path ) : List
device string The device.
path string The path.
Résultat List

MakeReadOnly() public méthode

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

MakeReadOnly() public méthode

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

MakeReadWrite() public méthode

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

MakeReadWrite() public méthode

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

Mount() public méthode

Mounts the specified mount.
public Mount ( string mount ) : void
mount string The mount.
Résultat void

Mount() public méthode

Mounts the specified device.
public Mount ( string device, string mount ) : void
device string The device.
mount string The mount.
Résultat void

PullDirectory() public méthode

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

PullDirectory() public méthode

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

PullDirectory() public méthode

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.
Résultat System.IO.DirectoryInfo

PullFile() public méthode

Pulls the file.
public PullFile ( string path ) : System.IO.FileInfo
path string The path.
Résultat System.IO.FileInfo

PullFile() public méthode

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

PullFiles() public méthode

Pulls the files.
public PullFiles ( List paths ) : List
paths List The paths.
Résultat List

PullFiles() public méthode

Pulls the files.
public PullFiles ( string device, List paths ) : List
device string The device.
paths List The paths.
Résultat List

PushFile() public méthode

Pushes the file.
public PushFile ( string local, string remote ) : TransferCommandResult
local string The local.
remote string The remote.
Résultat TransferCommandResult

PushFile() public méthode

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

ReadFile() public méthode

Reads the file.
public ReadFile ( string file ) : GenericCommandResult
file string The file.
Résultat GenericCommandResult

ReadFile() public méthode

Reads the file.
public ReadFile ( string device, string file ) : GenericCommandResult
device string The device.
file string The file.
Résultat GenericCommandResult

Reboot() public méthode

Reboots the default device.
public Reboot ( ) : void
Résultat void

Reboot() public méthode

Reboots the specified device.
public Reboot ( string device ) : void
device string The device.
Résultat void

Reboot() public méthode

public Reboot ( string device, string mode ) : void
device string
mode string
Résultat void

RebootBootloader() public méthode

Reboots in to bootloader.
public RebootBootloader ( ) : void
Résultat void

RebootBootloader() public méthode

Reboots in to bootloader.
public RebootBootloader ( string device ) : void
device string The device.
Résultat void

RebootDownloadMode() public méthode

Reboots the device in download mode.
public RebootDownloadMode ( ) : void
Résultat void

RebootDownloadMode() public méthode

Reboots the device in download mode.
public RebootDownloadMode ( String device ) : void
device String The device.
Résultat void

RebootRecovery() public méthode

Reboots in to recovery.
public RebootRecovery ( ) : void
Résultat void

RebootRecovery() public méthode

Reboots in to recovery.
public RebootRecovery ( string device ) : void
device string The device.
Résultat void

ReinstallApk() public méthode

Reinstalls the apk.
public ReinstallApk ( string apkFile ) : bool
apkFile string The apk file.
Résultat bool

ReinstallApk() public méthode

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

Rename() public méthode

public Rename ( string path, string newName ) : void
path string
newName string
Résultat void

Rename() public méthode

public Rename ( string device, string path, string newName ) : void
device string
path string
newName string
Résultat void

RenameFile() public méthode

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

RenameFile() public méthode

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.
Résultat void

RestartServer() public méthode

public RestartServer ( ) : void
Résultat void

Reverse() public méthode

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].
Résultat void

Reverse() public méthode

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].
Résultat void

ReverseList() public méthode

public ReverseList ( ) : void
Résultat void

ReverseList() public méthode

Forwards the specified device.
public ReverseList ( string device ) : void
device string The device.
Résultat void

ReverseRemove() public méthode

public ReverseRemove ( string local ) : void
local string local arg
Résultat void

ReverseRemove() public méthode

Forwards the specified device.
public ReverseRemove ( string device, string local ) : void
device string The device.
local string The local.
Résultat void

ReverseRemoveAll() public méthode

public ReverseRemoveAll ( ) : void
Résultat void

ReverseRemoveAll() public méthode

Forwards the specified device.
public ReverseRemoveAll ( string device ) : void
device string The device.
Résultat void

ScreenCapture() public méthode

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
Résultat ScreenCaptureCommandResult

ShellRun() public méthode

Shell run a command.
public ShellRun ( string command ) : CommandResult
command string The command.
Résultat CommandResult

ShellRun() public méthode

Shell run a command.
public ShellRun ( string device, string command ) : CommandResult
device string The device.
command string The command.
Résultat CommandResult

StartAdbAsRoot() public méthode

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

StartServer() public méthode

Starts the server.
public StartServer ( ) : void
Résultat void

StopServer() public méthode

public StopServer ( ) : void
Résultat void

TcpConnect() public méthode

public TcpConnect ( string connection ) : bool
connection string
Résultat bool

TopProcessKill() public méthode

Tops the process kill.
public TopProcessKill ( ) : void
Résultat void

TopProcessRun() public méthode

Tops the process run.
public TopProcessRun ( ) : void
Résultat void

UninstallApk() public méthode

Uninstalls the apk.
public UninstallApk ( string package ) : bool
package string The package.
Résultat bool

UninstallApk() public méthode

Uninstalls the apk.
public UninstallApk ( string device, string package ) : bool
device string The device.
package string The package.
Résultat bool

shell_OutputDataReceived() public méthode

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.
Résultat void