AdbAliases Class

Summary

Cake build aliases for Android ADB commands
Assembly
Cake.Android.Adb.dll
Namespace
Cake.AndroidAdb
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["AdbAliases"] class Type type-node

Syntax

public static class AdbAliases

Attributes

Type Description
CakeAliasCategoryAttribute

Methods

Name Value Summary
AdbBugReport(ICakeContext, AdbToolSettings) List<string>
Dumps out a bug report.
static
AdbConnect(ICakeContext, string, int, AdbToolSettings) void
Connects to a device or emulator by IP address.
static
AdbDevices(ICakeContext, AdbToolSettings) List<AdbDeviceInfo>
Gets a list of all attached emulator/device instances.
static
AdbDisconnect(ICakeContext, string, int, AdbToolSettings) void
Disconnects from a device or emulator.
static
AdbEmuKill(ICakeContext, AdbToolSettings) bool
Kills an emulator by serial
static
AdbGetAvdName(ICakeContext, string) string
Connects to an emulator and queries its avd name
static
AdbGetSerialNumber(ICakeContext, AdbToolSettings) string
Gets the target's serial.
static
AdbGetState(ICakeContext, AdbToolSettings) string
Gets the target's state.
static
AdbInstall(ICakeContext, FilePath, AdbToolSettings) void
Installs an Android .APK file.
static
AdbKillServer(ICakeContext, AdbToolSettings) void
Terminates the adb server process.
static
AdbLogcat(ICakeContext, AdbLogcatOptions, string, AdbToolSettings) List<string>
Dumps out Logcat output.
static
AdbPull(ICakeContext, DirectoryPath, DirectoryPath, AdbToolSettings) bool
Pulls a directory from the target to a local destination.
static
AdbPull(ICakeContext, FilePath, DirectoryPath, AdbToolSettings) bool
Pulls a file from the target to a local destination.
static
AdbPull(ICakeContext, FilePath, FilePath, AdbToolSettings) bool
Pulls a file from the target to a local destination.
static
AdbPush(ICakeContext, DirectoryPath, DirectoryPath, AdbToolSettings) bool
Pushes a local directory to the remote destination on the target.
static
AdbPush(ICakeContext, FilePath, DirectoryPath, AdbToolSettings) bool
Pushes a local file to the remote destination on the target.
static
AdbPush(ICakeContext, FilePath, FilePath, AdbToolSettings) bool
Pushes a local file to the remote destination on the target.
static
AdbRun(ICakeContext, string[], AdbToolSettings) List<string>
Runs adb with an arbitrary list of arguments
static
AdbScreenCapture(ICakeContext, FilePath, AdbToolSettings) void
Captures a screenshot from the target.
static
AdbScreenRecord(ICakeContext, FilePath, Nullable<CancellationToken>, Nullable<TimeSpan>, Nullable<int>, Nullable<int>, Nullable<int>, bool, bool, AdbToolSettings) void
Records the screen of the target.
static
AdbShell(ICakeContext, string, AdbToolSettings) List<string>
Executes a shell command on the target.
static
AdbStartServer(ICakeContext, AdbToolSettings) void
Checks whether the adb server process is running and starts it, if not.
static
AdbUninstall(ICakeContext, string, bool, AdbToolSettings) void
Uninstalls an application from the target.
static
AdbVersion(ICakeContext, AdbToolSettings) string
Gets the adb version number.
static
AdbWaitFor(ICakeContext, AdbTransport, AdbState, AdbToolSettings) void
Waits for a given transport and state
static
AdbWaitForEmulatorToBoot(ICakeContext, TimeSpan, AdbToolSettings) bool
Waits for an emulator to boot (dev.bootcomplete=1)
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin