RootTargetPreparer

public final class RootTargetPreparer
extends BaseTargetPreparer

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


Preparador de destino que realiza "adb root" o "adb unroot" según la opción "force-root".

Se restablecerá al estado raíz original durante el desmantelamiento.

Resumen

Constructores públicos

RootTargetPreparer()

Métodos públicos

void setUp(TestInformation testInfo)
boolean shouldForceRoot()
boolean shouldThrowOnFailure()
void tearDown(TestInformation testInfo, Throwable e)

Constructores públicos

RootTargetPreparer

public RootTargetPreparer ()

Métodos públicos

setUp

public void setUp (TestInformation testInfo)

Parámetros
testInfo TestInformation

Arroja
BuildError
DeviceNotAvailableException
TargetSetupError

shouldForceRoot

public boolean shouldForceRoot ()

Muestra
boolean

shouldThrowOnFailure

public boolean shouldThrowOnFailure ()

Muestra
boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parámetros
testInfo TestInformation

e Throwable

Arroja
DeviceNotAvailableException