RootTargetPreparer

public final class RootTargetPreparer
extends BaseTargetPreparer

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


'force-root' 옵션에 따라 'adb root' 또는 'adb unroot'를 실행하는 타겟 준비 도구입니다.

해체 시 원래 루트 상태로 복원됩니다.

요약

공개 생성자

RootTargetPreparer()

공개 메서드

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

공개 생성자

RootTargetPreparer

public RootTargetPreparer ()

공개 메서드

setUp

public void setUp (TestInformation testInfo)

매개변수
testInfo TestInformation

생성 값
BuildError
DeviceNotAvailableException
TargetSetupError

shouldForceRoot

public boolean shouldForceRoot ()

반환 값
boolean

shouldThrowOnFailure

public boolean shouldThrowOnFailure ()

반환 값
boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

매개변수
testInfo TestInformation

e Throwable

생성 값
DeviceNotAvailableException