RootTargetPreparer

public final class RootTargetPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.RootTargetPreparer


Target preparer that performs "adb root" or "adb unroot" based on option "force-root".

Will restore back to original root state on tear down.

Summary

Public constructors

RootTargetPreparer()

Public methods

void setUp(TestInformation testInfo)
void tearDown(TestInformation testInfo, Throwable e)

Public constructors

RootTargetPreparer

public RootTargetPreparer ()

Public methods

setUp

public void setUp (TestInformation testInfo)

Parameters
testInfo TestInformation

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parameters
testInfo TestInformation

e Throwable

Throws
DeviceNotAvailableException