Stay organized with collections Save and categorize content based on your preferences.

FeatureFlagTargetPreparer

public class FeatureFlagTargetPreparer
extends BaseTargetPreparer

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


Updates the DeviceConfig (feature flags tuned by a remote service) using values from files.

This can be used to reproduce the state of a device (by dumping all flag values to a file using `adb shell device_config list`) or to bulk enable/disable flags (all-on/all-off testing).

Should be used in combination with DeviceSetup to disable DeviceConfig syncing during the test which could overwrite the changes made by this preparer.

Summary

Public constructors

FeatureFlagTargetPreparer()

Public methods

void setUp(TestInformation testInformation)
void tearDown(TestInformation testInformation, Throwable e)

Public constructors

FeatureFlagTargetPreparer

public FeatureFlagTargetPreparer ()

Public methods

setUp

public void setUp (TestInformation testInformation)

Parameters
testInformation TestInformation

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInformation, 
                Throwable e)

Parameters
testInformation TestInformation

e Throwable

Throws
DeviceNotAvailableException