TestSystemAppInstallSetup
public
class
TestSystemAppInstallSetup
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.TestSystemAppInstallSetup | |
用于将一个或多个应用从 IDeviceBuildInfo.getTestsDir() 文件夹安装到设备上的 /system 分区中的 ITargetPreparer。
需要 adb root
摘要
公共构造函数 | |
|---|---|
TestSystemAppInstallSetup()
|
|
公共方法 | |
|---|---|
void
|
addTestFileName(String fileName)
将文件添加到要安装的 apk 列表中 |
void
|
setUp(TestInformation testInfo)
|
公共构造函数
TestSystemAppInstallSetup
public TestSystemAppInstallSetup ()
公共方法
addTestFileName
public void addTestFileName (String fileName)
将文件添加到要安装的 apk 列表
setUp
public void setUp (TestInformation testInfo)
| 参数 | |
|---|---|
testInfo |
TestInformation |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|