DeviceRecoveryModeUtil

public class DeviceRecoveryModeUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.DeviceRecoveryModeUtil


摘要

公共构造函数

DeviceRecoveryModeUtil()

公共方法

static void bootOutOfRecovery(IManagedTestDevice managedDevice, long timeoutMs, long bufferMs)

将处于恢复模式的设备重新启动到主操作系统。

static void bootOutOfRecovery(IManagedTestDevice device, long timeoutMs)

将处于恢复模式的设备重新启动到主操作系统。

公共构造函数

DeviceRecoveryModeUtil

public DeviceRecoveryModeUtil ()

公共方法

bootOutOfRecovery

public static void bootOutOfRecovery (IManagedTestDevice managedDevice, 
                long timeoutMs, 
                long bufferMs)

将处于恢复模式的设备重新启动到主操作系统。可以选择在恢复状态开始后等待,因为在恢复开始时可能无法立即发送 adb 命令。

参数
managedDevice IManagedTestDevice:要启动的 IManagedTestDevice

timeoutMs long:等待设备进入恢复状态的时长

bufferMs long:设备进入恢复状态后等待的毫秒数

抛出
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

bootOutOfRecovery

public static void bootOutOfRecovery (IManagedTestDevice device, 
                long timeoutMs)

将处于恢复模式的设备重新启动到主操作系统。

参数
device IManagedTestDevice:要启动的 IManagedTestDevice

timeoutMs long:等待设备进入恢复状态的时长

抛出
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException