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
Whether installation constraints are supported.
Whether InstallMode.InheritExisting.dontKillApp is supported.
The effective installer type after normalization and plugin resolution.
Whether setting the package source is supported.
Whether the pre-commit install approval flow is supported.
Whether requesting update ownership enforcement is supported.
Whether skipping user confirmation is available via modifying requireUserAction.
Functions
Returns the plugin-specific install capabilities for the given pluginClass, or null if the plugin was not in the resolved graph.