PackageManagerAliases.

PmInstall(ICakeContext, FilePath, bool, bool, bool, string, bool, bool, bool, bool, AdbToolSettings) Method

Summary

Installs an APK file from the given path on the target.
Assembly
Cake.Android.Adb.dll
Namespace
Cake.AndroidAdb
Containing Type
PackageManagerAliases

Syntax

public static void PmInstall(this ICakeContext context, FilePath pathOnDevice, bool forwardLock = false, bool reinstall = false, bool allowTestApks = false, string installerPackageName = null, bool installOnSharedStorage = false, bool installOnInternalSystemMemory = false, bool allowVersionDowngrade = false, bool grantAllManifestPermissions = false, AdbToolSettings settings = null)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext Context.
pathOnDevice FilePath Path of the APK to install on the target.
forwardLock bool If set to true install the package with a forward lock.
reinstall bool If set to true reinstall the package, keeping its data.
allowTestApks bool If set to true allow test APKs to be installed.
installerPackageName string Installer package name.
installOnSharedStorage bool If set to true install on shared storage.
installOnInternalSystemMemory bool If set to true install on internal system memory.
allowVersionDowngrade bool If set to true allow version downgrade.
grantAllManifestPermissions bool If set to true grant all manifest permissions.
settings AdbToolSettings Settings.

Return Value

Type Description
void