InstallerCapabilities

Capabilities of a PackageInstaller configuration as determined by PackageInstaller.getCapabilities.

The installerType field reflects the effective backend after normalization and plugin resolution, which may differ from the requested value (e.g., when the requested backend is not supported by the current Android version).

Note: Install capabilities are not split-aware. The capabilities API does not accept APK count or split metadata, so the split-install invariant that forces InstallerType.SESSION_BASED is not reflected here. If split APKs are in use, InstallerType.SESSION_BASED will be enforced at session creation time regardless of what getCapabilities reports for a given requested type.

Properties

Link copied to clipboard

Whether installation constraints are supported.

Link copied to clipboard
Link copied to clipboard

The effective installer type after normalization and plugin resolution.

Link copied to clipboard

Whether setting the package source is supported.

Link copied to clipboard

Whether the pre-commit install approval flow is supported.

Link copied to clipboard

Whether requesting update ownership enforcement is supported.

Link copied to clipboard

Whether skipping user confirmation is available via modifying requireUserAction.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns the plugin-specific install capabilities for the given pluginClass, or null if the plugin was not in the resolved graph.

Link copied to clipboard
open override fun toString(): String