BuildApiFlashingResourcesRetriever

public class BuildApiFlashingResourcesRetriever
extends Object implements IFlashingResourcesRetriever

java.lang.Object
   ↳ com.google.android.tradefed.targetprep.BuildApiFlashingResourcesRetriever


A IFlashingResourcesRetriever that retrieves auxiliary image files from android build apiary, fallback to nfs if the apiary is not available.

Summary

Public constructors

BuildApiFlashingResourcesRetriever(String deviceProductType, String buildEnvironment)

Constructor

Public methods

File retrieveFile(String imageName, String version)

Returns the image file with given name and version

Public constructors

BuildApiFlashingResourcesRetriever

public BuildApiFlashingResourcesRetriever (String deviceProductType, 
                String buildEnvironment)

Constructor

Parameters
deviceProductType String: type of the device

buildEnvironment String: the Build API environment to download from

Public methods

retrieveFile

public File retrieveFile (String imageName, 
                String version)

Returns the image file with given name and version

Parameters
imageName String: the name of the image (ie radio)

version String: the version of the file to return

Returns
File a temporary local image File

Throws
TargetSetupError