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)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
公共构造函数
RootTargetPreparer
public RootTargetPreparer ()
公共方法
setUp
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo |
TestInformation |
抛出 | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
抛出 | |
---|---|
DeviceNotAvailableException |