PackageManagerAliases Class

Summary

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

Syntax

public static class PackageManagerAliases

Attributes

Type Description
CakeAliasCategoryAttribute

Methods

Name Value Summary
PmClear(ICakeContext, string, AdbToolSettings) void
Clears all data associated with the package.
static
PmCreateUser(ICakeContext, string, AdbToolSettings) void
Creates a new user on the target.
static
PmDisable(ICakeContext, string, AdbToolSettings) void
Disables the given package or component
static
PmDisableUser(ICakeContext, string, string, AdbToolSettings) void
Disables a user for the given package or component.
static
PmEnable(ICakeContext, string, AdbToolSettings) void
Enables the given package or component
static
PmGetInstallLocation(ICakeContext, AdbToolSettings) AdbInstallLocation
Gets the current default install location for the target.
static
PmGetMaxUsers(ICakeContext, AdbToolSettings) int
Gets the max # of users the target supports.
static
PmGrant(ICakeContext, string, string, AdbToolSettings) void
Grants a permission to a package.
static
PmInstall(ICakeContext, FilePath, bool, bool, bool, string, bool, bool, bool, bool, AdbToolSettings) void
Installs an APK file from the given path on the target.
static
PmListFeatures(ICakeContext, AdbToolSettings) List<string>
Gets a list of features implemented on the target.
static
PmListLibraries(ICakeContext, AdbToolSettings) List<string>
Gets a list of libraries that exist on the target.
static
PmListPackages(ICakeContext, bool, PackageListState, PackageSourceType, AdbToolSettings) List<AdbPackageListInfo>
Gets a list of packages from the target.
static
PmListPermissionGroups(ICakeContext, AdbToolSettings) List<string>
Gets a list of Permission Groups on the target.
static
PmListPermissions(ICakeContext, bool, bool, AdbToolSettings) List<AdbPermissionGroupInfo>
Gets a list of Permissions, grouped by Permission Group on the target
static
PmPathToPackage(ICakeContext, string, AdbToolSettings) FilePath
Gets the path for a given package name.
static
PmRemoveUser(ICakeContext, string, AdbToolSettings) void
Removes a user from a target.
static
PmRevoke(ICakeContext, string, string, AdbToolSettings) void
Revokes a permission from a package.
static
PmSetInstallLocation(ICakeContext, AdbInstallLocation, AdbToolSettings) void
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.
static
PmSetPermissionEnforced(ICakeContext, string, bool, AdbToolSettings) void
Sets whether or not a permission is enforced on the target.
static
PmTrimCaches(ICakeContext, string, AdbToolSettings) void
Tries to free up space on the target by deleting caches.
static
PmUninstall(ICakeContext, string, bool, AdbToolSettings) void
Uninstalls a package from the target
static

Extension Methods

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