RootTargetPreparer
public
final
class
RootTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RootTargetPreparer |
כלי להכנת יעד שמבצע את הפקודה 'adb root' או 'adb unroot' על סמך האפשרות 'force-root'.
שחזור למצב הבסיסי המקורי בזמן הפירוק.
סיכום
יוצרים ציבוריים | |
---|---|
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 |