TestSystemAppInstallSetup

public class TestSystemAppInstallSetup
extends Object implements ITargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.TestSystemAppInstallSetup


A ITargetPreparer that installs one or more apps from a getTestsDir() folder onto the /system partition on device.

Requires adb root

Summary

Public constructors

TestSystemAppInstallSetup()

Public methods

void addTestFileName(String fileName)

Adds a file to the list of apks to install

void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Public constructors

TestSystemAppInstallSetup

TestSystemAppInstallSetup ()

Public methods

addTestFileName

void addTestFileName (String fileName)

Adds a file to the list of apks to install

setUp

void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

Throws
TargetSetupError
DeviceNotAvailableException