MixKernelTargetPreparer

public class MixKernelTargetPreparer
extends BaseTargetPreparer implements ILabPreparer, IConfigurationReceiver

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.MixKernelTargetPreparer


A ITargetPreparer that allows to mix a kernel image with the device image.

Summary

Public constructors

MixKernelTargetPreparer()

Public methods

void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

void setUp(TestInformation testInfo)

Perform the target setup for testing.

Protected methods

void runMixKernelTool(ITestDevice device, File oldDeviceDir, File kernelDir, File gkiDir, File newDeviceDir)

Run mix kernel tool to generate the new device build

Mixing tool Usage: build_mixed_kernels device_dir out_dir target flavor kernel_dir

Public constructors

MixKernelTargetPreparer

public MixKernelTargetPreparer ()

Public methods

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration

setUp

public void setUp (TestInformation testInfo)

Perform the target setup for testing.

Parameters
testInfo TestInformation: The TestInformation of the invocation.

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

Protected methods

runMixKernelTool

protected void runMixKernelTool (ITestDevice device, 
                File oldDeviceDir, 
                File kernelDir, 
                File gkiDir, 
                File newDeviceDir)

Run mix kernel tool to generate the new device build

Mixing tool Usage: build_mixed_kernels device_dir out_dir target flavor kernel_dir

Parameters
device ITestDevice: the test device

oldDeviceDir File: the directory ERROR(/File) contains old device images

kernelDir File: the directory ERROR(/File) contains kernel images destination

gkiDir File: the directory ERROR(/File) contains GKI kernel images destination

newDeviceDir File: the directory ERROR(/File) where new device images will be generated to

Throws
TargetSetupError if fails to run mix kernel tool
IOException