BootstrapBuildProvider
  public
  
  
  
  class
  BootstrapBuildProvider
  
    extends Object
  
  
  
  
  
      implements
      
        IDeviceBuildProvider
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.build.BootstrapBuildProvider | 
A IDeviceBuildProvider that bootstraps build info from the test device
 
This is typically used for devices with an externally supplied build, i.e. not generated by in-house build system. Certain information, specifically the branch, is not actually available from the device, therefore it's artificially generated.
All build meta data info comes from various ro.* property fields on device
Currently this build provider generates meta data as follows:
- branch:
 $(ro.product.brand)-$(ro.product.name)-$(ro.product.device)-$(ro.build.version.release),
 for example:
 - for Google Play edition Samsung S4 running Android 4.2: samsung-jgedlteue-jgedlte-4.2
- for Nexus 7 running Android 4.2: google-nakasi-grouper-4.2
 
- build flavor: as provided by ITestDevice.getBuildFlavor()
- build alias: as provided by ITestDevice.getBuildAlias()
- build id: as provided by ITestDevice.getBuildId()SummaryPublic constructorsBootstrapBuildProvider()Public methodsvoidcleanUp(IBuildInfo info)Clean up any temporary build files. IBuildInfogetBuild()Retrieve the data for build under test. IBuildInfogetBuild(ITestDevice device)Retrieve the data for build under test final FilegetTestsDir()Public constructorsBootstrapBuildProviderpublic BootstrapBuildProvider () Public methodscleanUppublic void cleanUp (IBuildInfo info) Clean up any temporary build files. Parameters infoIBuildInfogetBuildpublic IBuildInfo getBuild () Retrieve the data for build under test. Returns IBuildInfothe IBuildInfofor build under test ornullif no build is available for testingThrows BuildRetrievalErrorgetBuildpublic IBuildInfo getBuild (ITestDevice device) Retrieve the data for build under test Parameters deviceITestDevice: theITestDeviceallocated for testReturns IBuildInfothe IBuildInfofor build under test ornullif no build is available for testingThrows BuildRetrievalErrorDeviceNotAvailableExceptiongetTestsDirpublic final File getTestsDir () Returns File
