to top
public class

EraseUserDataPreparer

extends Object
implements ITargetPreparer @OptionClass(alias = "erase-user-data")
java.lang.Object
   ↳ com.android.tradefed.targetprep.EraseUserDataPreparer

Class Overview

A ITargetPreparer that wipes user data on the device.

Summary

Fields
private Collection<String> mDataWipeSkipList @Option(name = "wipe-skip-list", description = "list of /data subdirectories to NOT wipe when doing UserDataFlashOption.TESTS_ZIP")
private boolean mDisable @Option(name = "disable", description = "Retain data, don\'t erase anything, effectively disables this preparer")
private boolean mWaitForAvailable @Option(name = "wait-for-available", description = "Wait until device is available for testing before performing erase")
Public Constructors
EraseUserDataPreparer()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Fields

private Collection<String> mDataWipeSkipList

private boolean mDisable

private boolean mWaitForAvailable

Public Constructors

public EraseUserDataPreparer ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.
buildInfo IBuildInfo: data about the build under test.
Throws
TargetSetupError
BuildError
DeviceNotAvailableException