NativePocMallocDebugAsserter

public class NativePocMallocDebugAsserter
extends Object implements NativePocAsserter

java.lang.Object
   ↳ com.android.sts.common.NativePocMallocDebugAsserter


สรุป

เมธอดสาธารณะ

static NativePocAsserter assertNoMallocDebugErrorOnPoc(String options)

ส่งคืน NativePocAsserter ที่แนบการแก้ไขข้อบกพร่อง libc malloc กับ PoC และตรวจหาข้อผิดพลาดการแก้ไขข้อบกพร่อง malloc ขณะ PoC ทำงาน

static NativePocAsserter assertNoMallocDebugErrorOnService(String options, String service)

แสดงผล NativePocAsserter ที่แนบการแก้ไขข้อบกพร่องของ libc malloc กับบริการก่อนเรียกใช้ PoC และตรวจสอบข้อผิดพลาดในการแก้ไขข้อบกพร่องของ malloc ในบริการนั้นขณะที่ PoC ทำงาน

AutoCloseable withAutoCloseable(NativePoc nativePoc, ITestDevice device)

เรียกใช้ก่อน PoC ทำงาน แสดงผล AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น

เมธอดสาธารณะ

assertNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

ส่งคืน NativePocAsserter ที่แนบการแก้ไขข้อบกพร่อง libc malloc กับ PoC และตรวจหาข้อผิดพลาดการแก้ไขข้อบกพร่อง malloc ขณะ PoC ทำงาน

พารามิเตอร์
options String

คิกรีเทิร์น
NativePocAsserter

assertNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

แสดงผล NativePocAsserter ที่แนบการแก้ไขข้อบกพร่องของ libc malloc กับบริการก่อนเรียกใช้ PoC และตรวจสอบข้อผิดพลาดในการแก้ไขข้อบกพร่องของ malloc ในบริการนั้นขณะที่ PoC ทำงาน

พารามิเตอร์
options String

service String

คิกรีเทิร์น
NativePocAsserter

withAutoCloseable

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

เรียกใช้ก่อน PoC ทำงาน แสดงผล AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น

พารามิเตอร์
nativePoc NativePoc

device ITestDevice

คิกรีเทิร์น
AutoCloseable

การโยน
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException