PocPusher

public class PocPusher
extends TestWatcher

java.lang.Object 中
   ↳ org.junit.rules.TestWatcher
     ↳ com.android.sts.common.PocPusher 类的构造函数


有助于将原生 PoC 可执行文件推送到设备的实用程序

摘要

字段

public boolean appendBitness

public boolean bitness32

public boolean bitness64

public boolean cleanup

公共构造函数

PocPusher()

公共方法

PocPusher appendBitness(boolean append)
PocPusher bothBitness()
PocPusher cleanup(boolean cleanup)
PocPusher only32()
PocPusher only64()
void pushFile(String testFile, String remoteFile)
PocPusher setAbi(IAbi abi)
PocPusher setBuild(IBuildInfo buildInfo)
PocPusher setDevice(ITestDevice device)

受保护的方法

void finished(Description d)
void starting(Description d)

字段

appBitness

public boolean appendBitness

位 32

public boolean bitness32

位 64

public boolean bitness64

清理

public boolean cleanup

公共构造函数

PocPusher

public PocPusher ()

公共方法

appBitness

public PocPusher appendBitness (boolean append)

参数
append boolean

返回
PocPusher

DuetBitness

public PocPusher bothBitness ()

返回
PocPusher

清理

public PocPusher cleanup (boolean cleanup)

参数
cleanup boolean

返回
PocPusher

仅限 32

public PocPusher only32 ()

返回
PocPusher

仅限 64

public PocPusher only64 ()

返回
PocPusher

pushFile

public void pushFile (String testFile, 
                String remoteFile)

参数
testFile String

remoteFile String

抛出
FileNotFoundException
DeviceNotAvailableException

SetAbi

public PocPusher setAbi (IAbi abi)

参数
abi IAbi

返回
PocPusher

setBuild

public PocPusher setBuild (IBuildInfo buildInfo)

参数
buildInfo IBuildInfo

返回
PocPusher

setDevice

public PocPusher setDevice (ITestDevice device)

参数
device ITestDevice

返回
PocPusher

受保护的方法

已收市

protected void finished (Description d)

参数
d Description

开始录制

protected void starting (Description d)

参数
d Description