根目標準備器
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) |
公共構造函數
根目標準備器
public RootTargetPreparer ()
公共方法
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |