AssertStorageAction


public final class AssertStorageAction implements BackupDeviceAction


Asserts the correctness of restored test data.

Parses the configuration from BackupDeviceActionArgs and verifies android.content.SharedPreferences, SQLite databases, or raw file contents in credential-encrypted or device-protected storage.

Summary

Public constructors

Public methods

@NonNull BackupDeviceActionResult

Runs the action payload.

int

Lifecycle phase when this action runs.

Public constructors

AssertStorageAction

Added in 1.0.0-alpha01
public AssertStorageAction()

Public methods

execute

public @NonNull BackupDeviceActionResult execute(@NonNull Context context, @NonNull BackupDeviceActionArgs args)

Runs the action payload.

Parameters
@NonNull Context context

application context on the target device

@NonNull BackupDeviceActionArgs args

input arguments passed from the host orchestrator

Returns
@NonNull BackupDeviceActionResult

result returned to the host

getPhase

public int getPhase()

Lifecycle phase when this action runs.