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 เสร็จสิ้น

วิธีการสาธารณะ

VerifyNoMallocDebugErrorOnPoc

public static NativePocAsserter assertNoMallocDebugErrorOnPoc (String options)

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

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

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

VerifyNoMallocDebugErrorOnService

public static NativePocAsserter assertNoMallocDebugErrorOnService (String options, 
                String service)

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

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

service String

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

ปิดอัตโนมัติได้

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

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

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

device ITestDevice

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

การขว้าง
DeviceNotAvailableException
TimeoutException
ProcessUtil.KillException