Cake.Android.Adb

Cake Aliases for Android's adb command line tool

#addin nuget:?package=Cake.Android.Adb&version=3.2.0

<package id="Cake.Android.Adb" version="3.2.0" />

dotnet add package Cake.Android.Adb --version 3.2.0

<PackageReference Include="Cake.Android.Adb" Version="3.2.0" />

Aliases

Cake build aliases for Android ADB commands

General

AdbBugReport(ICakeContext, AdbToolSettings) Dumps out a bug report.
AdbConnect(ICakeContext, string, int, AdbToolSettings) Connects to a device or emulator by IP address.
AdbDevices(ICakeContext, AdbToolSettings) Gets a list of all attached emulator/device instances.
AdbDisconnect(ICakeContext, string, int, AdbToolSettings) Disconnects from a device or emulator.
AdbEmuKill(ICakeContext, AdbToolSettings) Kills an emulator by serial
AdbGetAvdName(ICakeContext, string) Connects to an emulator and queries its avd name
AdbGetSerialNumber(ICakeContext, AdbToolSettings) Gets the target's serial.
AdbGetState(ICakeContext, AdbToolSettings) Gets the target's state.
AdbInstall(ICakeContext, FilePath, AdbToolSettings) Installs an Android .APK file.
AdbKillServer(ICakeContext, AdbToolSettings) Terminates the adb server process.
AdbLogcat(ICakeContext, AdbLogcatOptions, string, AdbToolSettings) Dumps out Logcat output.
AdbPull(ICakeContext, DirectoryPath, DirectoryPath, AdbToolSettings) Pulls a directory from the target to a local destination.
AdbPull(ICakeContext, FilePath, DirectoryPath, AdbToolSettings) Pulls a file from the target to a local destination.
AdbPull(ICakeContext, FilePath, FilePath, AdbToolSettings) Pulls a file from the target to a local destination.
AdbPush(ICakeContext, DirectoryPath, DirectoryPath, AdbToolSettings) Pushes a local directory to the remote destination on the target.
AdbPush(ICakeContext, FilePath, DirectoryPath, AdbToolSettings) Pushes a local file to the remote destination on the target.
AdbPush(ICakeContext, FilePath, FilePath, AdbToolSettings) Pushes a local file to the remote destination on the target.
AdbRun(ICakeContext, string[], AdbToolSettings) Runs adb with an arbitrary list of arguments
AdbScreenCapture(ICakeContext, FilePath, AdbToolSettings) Captures a screenshot from the target.
AdbScreenRecord(ICakeContext, FilePath, Nullable<CancellationToken>, Nullable<TimeSpan>, Nullable<int>, Nullable<int>, Nullable<int>, bool, bool, AdbToolSettings) Records the screen of the target.
AdbShell(ICakeContext, string, AdbToolSettings) Executes a shell command on the target.
AdbStartServer(ICakeContext, AdbToolSettings) Checks whether the adb server process is running and starts it, if not.
AdbUninstall(ICakeContext, string, bool, AdbToolSettings) Uninstalls an application from the target.
AdbVersion(ICakeContext, AdbToolSettings) Gets the adb version number.
AdbWaitFor(ICakeContext, AdbTransport, AdbState, AdbToolSettings) Waits for a given transport and state
AdbWaitForEmulatorToBoot(ICakeContext, TimeSpan, AdbToolSettings) Waits for an emulator to boot (dev.bootcomplete=1)
AmBroadcast(ICakeContext, string, string, AdbToolSettings) Broadcasts an Intent on the target.
AmClearDebugApp(ICakeContext, AdbToolSettings) Clears the set debug app on the target.
AmDisplayDensity(ICakeContext, int, AdbToolSettings) Override the target's display density. This command is helpful for testing your app across different screen densities on high-density screen environment using a low density screen, and vice versa.
AmDisplaySize(ICakeContext, int, int, AdbToolSettings) Override the target's display size. This command is helpful for testing your app across different screen sizes by mimicking a small screen resolution using a device with a large screen, and vice versa.
AmDumpHeap(ICakeContext, string, FilePath, string, bool, AdbToolSettings) Dumps the heap from a process on the target.
AmForceStop(ICakeContext, string, AdbToolSettings) Force stops an application on the target.
AmInstrument(ICakeContext, string, AmInstrumentOptions, AdbToolSettings) Ams the instrument.
AmIntentToIntentURI(ICakeContext, string, AdbToolSettings) Convert the given intent specification to an Intent URI.
AmIntentToURI(ICakeContext, string, AdbToolSettings) Convert the given intent specification to a URI.
AmKill(ICakeContext, string, string, AdbToolSettings) Kills a service on the target.
AmKillAll(ICakeContext, AdbToolSettings) Kills all services on the target.
AmMonitor(ICakeContext, Nullable<int>, AdbToolSettings) Starts monitoring for crashes or ANRs on the target.
AmResetDisplaySize(ICakeContext, AdbToolSettings) Resets the target's display size.
AmScreenCompat(ICakeContext, bool, string, AdbToolSettings) Turn screen compatibility mode on/off for the given package on the target.
AmSetDebugApp(ICakeContext, string, bool, bool, AdbToolSettings) Set the debug app on the target.
AmStartActivity(ICakeContext, string, AmStartOptions, AdbToolSettings) Starts an Activity on the target.
AmStartProfiling(ICakeContext, string, FilePath, AdbToolSettings) Starts profiling on the target.
AmStartService(ICakeContext, string, string, AdbToolSettings) Starts a Service on the target.
AmStopProfiling(ICakeContext, string, AdbToolSettings) Stops profiling on the target.
PmClear(ICakeContext, string, AdbToolSettings) Clears all data associated with the package.
PmCreateUser(ICakeContext, string, AdbToolSettings) Creates a new user on the target.
PmDisable(ICakeContext, string, AdbToolSettings) Disables the given package or component
PmDisableUser(ICakeContext, string, string, AdbToolSettings) Disables a user for the given package or component.
PmEnable(ICakeContext, string, AdbToolSettings) Enables the given package or component
PmGetInstallLocation(ICakeContext, AdbToolSettings) Gets the current default install location for the target.
PmGetMaxUsers(ICakeContext, AdbToolSettings) Gets the max # of users the target supports.
PmGrant(ICakeContext, string, string, AdbToolSettings) Grants a permission to a package.
PmInstall(ICakeContext, FilePath, bool, bool, bool, string, bool, bool, bool, bool, AdbToolSettings) Installs an APK file from the given path on the target.
PmListFeatures(ICakeContext, AdbToolSettings) Gets a list of features implemented on the target.
PmListLibraries(ICakeContext, AdbToolSettings) Gets a list of libraries that exist on the target.
PmListPackages(ICakeContext, bool, PackageListState, PackageSourceType, AdbToolSettings) Gets a list of packages from the target.
PmListPermissionGroups(ICakeContext, AdbToolSettings) Gets a list of Permission Groups on the target.
PmListPermissions(ICakeContext, bool, bool, AdbToolSettings) Gets a list of Permissions, grouped by Permission Group on the target
PmPathToPackage(ICakeContext, string, AdbToolSettings) Gets the path for a given package name.
PmRemoveUser(ICakeContext, string, AdbToolSettings) Removes a user from a target.
PmRevoke(ICakeContext, string, string, AdbToolSettings) Revokes a permission from a package.
PmSetInstallLocation(ICakeContext, AdbInstallLocation, AdbToolSettings) Sets the default install location for the target. Note: This is only intended for debugging; using this can cause applications to break and other undesireable behavior.
PmSetPermissionEnforced(ICakeContext, string, bool, AdbToolSettings) Sets whether or not a permission is enforced on the target.
PmTrimCaches(ICakeContext, string, AdbToolSettings) Tries to free up space on the target by deleting caches.
PmUninstall(ICakeContext, string, bool, AdbToolSettings) Uninstalls a package from the target