to top
public interface

IDeviceRecovery

com.android.tradefed.device.IDeviceRecovery
Known Indirect Subclasses

Class Overview

Interface for recovering a device that has gone offline.

Summary

Public Methods
abstract void recoverDevice(IDeviceStateMonitor monitor, boolean recoverUntilOnline)
Attempt to recover the given device that can no longer be communicated with.
abstract void recoverDeviceBootloader(IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in bootloader mode.
abstract void recoverDeviceRecovery(IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in recovery mode.

Public Methods

public abstract void recoverDevice (IDeviceStateMonitor monitor, boolean recoverUntilOnline)

Attempt to recover the given device that can no longer be communicated with.

Method should block and only return when device is in requested state.

Parameters
monitor the IDeviceStateMonitor to use.
recoverUntilOnline if true, method should return as soon as device is online on adb. If false, method should block until device is fully available for testing (ie waitForDeviceAvailable() succeeds.
Throws
DeviceNotAvailableException if device could not be recovered

public abstract void recoverDeviceBootloader (IDeviceStateMonitor monitor)

Attempt to recover the given unresponsive device in bootloader mode.

Parameters
monitor the IDeviceStateMonitor to use.
Throws
DeviceNotAvailableException if device could not be recovered

public abstract void recoverDeviceRecovery (IDeviceStateMonitor monitor)

Attempt to recover the given unresponsive device in recovery mode.

Parameters
monitor the IDeviceStateMonitor to use.
Throws
DeviceNotAvailableException if device could not be recovered