FastbootHelper

public class FastbootHelper
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.FastbootHelper


A helper class for fastboot operations.

Summary

Public constructors

FastbootHelper(IRunUtil runUtil, String fastbootPath)

Constructor.

Public methods

String executeCommand(String serial, String command)

Executes a fastboot command on a device and return the output.

Set<String> getDevices()

Returns a set of device serials in fastboot mode or an empty set if no fastboot devices.

boolean isFastbootAvailable()

Determine if fastboot is available for use.

Public constructors

FastbootHelper

FastbootHelper (IRunUtil runUtil, 
                String fastbootPath)

Constructor.

Parameters
runUtil IRunUtil: a IRunUtil.

fastbootPath String

Public methods

executeCommand

String executeCommand (String serial, 
                String command)

Executes a fastboot command on a device and return the output.

Parameters
serial String: a device serial.

command String: a fastboot command to run.

Returns
String the output of the fastboot command. null if the command failed.

getDevices

Set<String> getDevices ()

Returns a set of device serials in fastboot mode or an empty set if no fastboot devices.

Returns
Set<String> a set of device serials.

isFastbootAvailable

boolean isFastbootAvailable ()

Determine if fastboot is available for use.

Returns
boolean