停用SELinuxTargetPreparer
public class DisableSELinuxTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.DisableSELinuxTargetPreparer |
目標準備器將停用 SELinux(如果已啟用)。
拆卸後會恢復到原始狀態。
概括
公共構造函數 | |
---|---|
DisableSELinuxTargetPreparer () |
公共方法 | |
---|---|
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
公共構造函數
停用SELinuxTargetPreparer
public DisableSELinuxTargetPreparer ()
公共方法
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |