RootTargetPreparer

public final class RootTargetPreparer
extends BaseTargetPreparer

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


Narzędzie do przygotowywania docelowych urządzeń, które wykonuje polecenie „adb root” lub „adb unroot” na podstawie opcji „force-root”.

Po usunięciu przywróci stan pierwotny.

Podsumowanie

Konstruktory publiczne

RootTargetPreparer()

Metody publiczne

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

Konstruktory publiczne

RootTargetPreparer

public RootTargetPreparer ()

Metody publiczne

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Rzuty
BuildError
DeviceNotAvailableException
TargetSetupError

shouldForceRoot

public boolean shouldForceRoot ()

Zwroty
boolean

shouldThrowOnFailure

public boolean shouldThrowOnFailure ()

Zwroty
boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Rzuty
DeviceNotAvailableException