InstallMode

sealed interface InstallMode

Mode for an install session. Takes effect only when using InstallerType.SESSION_BASED installer.

  • Full (default) — mode for an install session whose staged APKs should fully replace any existing APKs for the target app.

  • InheritExisting — mode for an install session that should inherit any existing APKs for the target app, unless they have been explicitly overridden (based on split name) by the session.

Inheritors

Types

Link copied to clipboard
data object Full : InstallMode

Mode for an install session whose staged APKs should fully replace any existing APKs for the target app.

Link copied to clipboard
data class InheritExisting(val packageName: String) : InstallMode

Mode for an install session that should inherit any existing APKs for the target app, unless they have been explicitly overridden (based on split name) by the session. For example, this can be used to add one or more split APKs to an existing installation.