波克推手

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)

领域

追加位数

public boolean appendBitness

位数32

public boolean bitness32

位数64

public boolean bitness64

清理

public boolean cleanup

公共构造函数

波克推手

public PocPusher ()

公共方法

追加位数

public PocPusher appendBitness (boolean append)

参数
append boolean

退货
PocPusher

两者比特性

public PocPusher bothBitness ()

退货
PocPusher

清理

public PocPusher cleanup (boolean cleanup)

参数
cleanup boolean

退货
PocPusher

只有32

public PocPusher only32 ()

退货
PocPusher

只有64

public PocPusher only64 ()

退货
PocPusher

推送文件

public void pushFile (String testFile, 
                String remoteFile)

参数
testFile String

remoteFile String

投掷
FileNotFoundException
DeviceNotAvailableException

设置阿比

public PocPusher setAbi (IAbi abi)

参数
abi IAbi

退货
PocPusher

设置构建

public PocPusher setBuild (IBuildInfo buildInfo)

参数
buildInfo IBuildInfo

退货
PocPusher

设置设备

public PocPusher setDevice (ITestDevice device)

参数
device ITestDevice

退货
PocPusher

受保护的方法

完成的

protected void finished (Description d)

参数
d Description

开始

protected void starting (Description d)

参数
d Description