RootTargetPreparer

public final class RootTargetPreparer
extends BaseTargetPreparer

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


Préparateur cible qui exécute "adb root" ou "adb unroot" en fonction de l'option "force-root".

L'état racine d'origine sera rétabli lors du démontage.

Résumé

Constructeurs publics

RootTargetPreparer()

Méthodes publiques

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

Constructeurs publics

RootTargetPreparer

public RootTargetPreparer ()

Méthodes publiques

setUp

public void setUp (TestInformation testInfo)

Paramètres
testInfo TestInformation

Génère
BuildError
DeviceNotAvailableException
TargetSetupError

shouldForceRoot

public boolean shouldForceRoot ()

Renvoie
boolean

shouldThrowOnFailure

public boolean shouldThrowOnFailure ()

Renvoie
boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Paramètres
testInfo TestInformation

e Throwable

Génère
DeviceNotAvailableException