Cake.Android.Adb

Cake Aliases for Android's adb command line tool

#addin nuget:?package=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 Activity Manager commands

General

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