DeviceRecoveryModeUtil

public class DeviceRecoveryModeUtil
extends Object

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


Summary

Public constructors

DeviceRecoveryModeUtil()

Public methods

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

Boots a device in recovery mode back into the main OS.

static void bootOutOfRecovery(IManagedTestDevice device, long timeoutMs)

Boots a device in recovery mode back into the main OS.

Public constructors

DeviceRecoveryModeUtil

DeviceRecoveryModeUtil ()

Public methods

bootOutOfRecovery

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

Boots a device in recovery mode back into the main OS. Can optionally wait after the RECOVERY state begins, as it may not be immediately possible to send adb commands when recovery starts.

Parameters
managedDevice IManagedTestDevice: the IManagedTestDevice to boot

timeoutMs long: how long to wait for the device to be in the recovery state

bufferMs long: the number of ms to wait after the device enters the recovery state

Throws
DeviceNotAvailableException

bootOutOfRecovery

void bootOutOfRecovery (IManagedTestDevice device, 
                long timeoutMs)

Boots a device in recovery mode back into the main OS.

Parameters
device IManagedTestDevice: the IManagedTestDevice to boot

timeoutMs long: how long to wait for the device to be in the recovery state

Throws
DeviceNotAvailableException