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 |
|