IDeviceRecovery
public
interface
IDeviceRecovery
com.android.tradefed.device.IDeviceRecovery |
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
|
recoverDeviceFastbootd(IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in fastbootd mode. |
abstract
void
|
recoverDeviceRecovery(IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in recovery mode. |
default
void
|
setFastbootPath(String fastbootPath)
Sets the path to the fastboot binary to be used. |
Public methods
recoverDevice
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 |
IDeviceStateMonitor : the IDeviceStateMonitor to use. |
recoverUntilOnline |
boolean : 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
IDeviceStateMonitor#waitForDeviceAvailable() succeeds. |
Throws | |
---|---|
DeviceNotAvailableException |
if device could not be recovered |
recoverDeviceBootloader
public abstract void recoverDeviceBootloader (IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in bootloader mode.
Parameters | |
---|---|
monitor |
IDeviceStateMonitor : the IDeviceStateMonitor to use. |
Throws | |
---|---|
DeviceNotAvailableException |
if device could not be recovered |
recoverDeviceFastbootd
public abstract void recoverDeviceFastbootd (IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in fastbootd mode.
Parameters | |
---|---|
monitor |
IDeviceStateMonitor : the IDeviceStateMonitor to use. |
Throws | |
---|---|
DeviceNotAvailableException |
if device could not be recovered |
recoverDeviceRecovery
public abstract void recoverDeviceRecovery (IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in recovery mode.
Parameters | |
---|---|
monitor |
IDeviceStateMonitor : the IDeviceStateMonitor to use. |
Throws | |
---|---|
DeviceNotAvailableException |
if device could not be recovered |
setFastbootPath
public void setFastbootPath (String fastbootPath)
Sets the path to the fastboot binary to be used.
Parameters | |
---|---|
fastbootPath |
String : a String defining the path to the fastboot binary. |