public interface

IFlashingResourcesParser

com.android.tradefed.targetprep.IFlashingResourcesParser
Known Indirect Subclasses

Class Overview

Interface for providing required versions of auxiliary image files needed to flash a device. (e.g. bootloader, baseband, etc)

Summary

Public Methods
abstract String getRequiredBasebandVersion()
Gets the required baseband version specified in the device image zip.
abstract Collection<String> getRequiredBoards()
Gets the required board type(s) specified in the device image zip.
abstract String getRequiredBootloaderVersion()
Gets the required bootloader version specified in the device image zip.
abstract String getRequiredImageVersion(String versionKey, String productName)
Gets the required custom image version specified in the device image zip.
abstract String getRequiredImageVersion(String versionKey)
Gets the required custom image version specified in the device image zip

Public Methods

public abstract String getRequiredBasebandVersion ()

Gets the required baseband version specified in the device image zip.

Returns
  • the baseband version or null if not specified

public abstract Collection<String> getRequiredBoards ()

Gets the required board type(s) specified in the device image zip.

Returns
  • the board types or null if not specified

public abstract String getRequiredBootloaderVersion ()

Gets the required bootloader version specified in the device image zip.

Returns
  • the bootloader version or null if not specified

public abstract String getRequiredImageVersion (String versionKey, String productName)

Gets the required custom image version specified in the device image zip. If productName is non-null, this method will check for (and return if present) image requirements specified for that particular product. If no product-specific requirement exists, it will fall back to returning the global requirement, or null if no requirement of any sort exists for that particular versionKey.

Parameters
versionKey the expected identifier of the image's version information
productName A specific product name to check
Returns
  • the required version for given image or null if not specified

public abstract String getRequiredImageVersion (String versionKey)

Gets the required custom image version specified in the device image zip

Parameters
versionKey the expected identifier of the image's version information
Returns
  • the required version for given image or null if not specified