IFlashingResourcesParser
public
interface
IFlashingResourcesParser
com.android.tradefed.targetprep.IFlashingResourcesParser |
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
|
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)
Gets the required custom image 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. |
Public methods
getRequiredBasebandVersion
public abstract String getRequiredBasebandVersion ()
Gets the required baseband version specified in the device image zip.
Returns | |
---|---|
String |
the baseband version or null if not specified |
getRequiredBoards
public abstractgetRequiredBoards ()
Gets the required board type(s) specified in the device image zip.
Returns | |
---|---|
|
the board types or null if not specified |
getRequiredBootloaderVersion
public abstract String getRequiredBootloaderVersion ()
Gets the required bootloader version specified in the device image zip.
Returns | |
---|---|
String |
the bootloader version or null if not specified |
getRequiredImageVersion
public abstract String getRequiredImageVersion (String versionKey)
Gets the required custom image version specified in the device image zip
Parameters | |
---|---|
versionKey |
String : the expected identifier of the image's version information |
Returns | |
---|---|
String |
the required version for given image or null if not specified |
getRequiredImageVersion
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 |
String : the expected identifier of the image's version information |
productName |
String : A specific product name to check |
Returns | |
---|---|
String |
the required version for given image or null if not specified |