This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Android.Adb.
Summary
Installs an APK file from the given path on the target.
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