public final class UpdateInfoManager


This class interfaces with a SecurityPatchState to manage update information for system components.

Typically, OTA or other update clients utilize this class to expose update information to other applications or components within the system that need access to the latest security updates data. The client calls registerUpdate to add UpdateInfo to a local store and unregisterUpdate to remove it. UpdateInfoProvider then serves this data to the applications.

Summary

Public constructors

UpdateInfoManager(
    @NonNull Context context,
    SecurityPatchState customSecurityState
)

Public methods

final void

Registers information about an available update for the specified component.

final void

Unregisters information about an available update for the specified component.

Public constructors

UpdateInfoManager

Added in 1.0.0-alpha01
public UpdateInfoManager(
    @NonNull Context context,
    SecurityPatchState customSecurityState
)

Public methods

registerUpdate

Added in 1.0.0-alpha01
public final void registerUpdate(@NonNull UpdateInfo updateInfo)

Registers information about an available update for the specified component.

Parameters
@NonNull UpdateInfo updateInfo

Update information structure.

unregisterUpdate

Added in 1.0.0-alpha01
public final void unregisterUpdate(@NonNull UpdateInfo updateInfo)

Unregisters information about an available update for the specified component.

Parameters
@NonNull UpdateInfo updateInfo

Update information structure.