自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
com.android.sts.common
接口
类
枚举
异常
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# com.android.sts.common\n======================\n\nInterfaces\n----------\n\n|----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [NativePoc.AfterFunction](../../../../../../reference/sts/com/android/sts/common/NativePoc.AfterFunction.html) | Lambda construct to run after PoC finished executing but before assertion and cleanup. |\n| [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html) | Interface for an asserter to use with [NativePoc.asserter()](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#asserter()). |\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [CommandUtil](../../../../../../reference/sts/com/android/sts/common/CommandUtil.html) | Collection of utilities to help run commands on device via adb |\n| [FridaUtils](../../../../../../reference/sts/com/android/sts/common/FridaUtils.html) | AutoCloseable that downloads and push frida and scripts to device and cleans up when done |\n| [HostsideMainlineModuleDetector](../../../../../../reference/sts/com/android/sts/common/HostsideMainlineModuleDetector.html) | |\n| [MallocDebug](../../../../../../reference/sts/com/android/sts/common/MallocDebug.html) | Utilities to setup malloc debug options on a process, check for malloc debug errors, and cleaning up afterwards. |\n| [NativePoc](../../../../../../reference/sts/com/android/sts/common/NativePoc.html) | Setup and run a native PoC, asserting exit conditions |\n| [NativePoc.Builder](../../../../../../reference/sts/com/android/sts/common/NativePoc.Builder.html) | |\n| [NativePocCrashAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocCrashAsserter.html) | |\n| [NativePocMallocDebugAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocMallocDebugAsserter.html) | |\n| [NativePocStatusAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocStatusAsserter.html) | |\n| [OverlayFsUtils](../../../../../../reference/sts/com/android/sts/common/OverlayFsUtils.html) | TestWatcher that enables writing to read-only partitions and reboots device when done. |\n| [PocPusher](../../../../../../reference/sts/com/android/sts/common/PocPusher.html) | Utilities to help push a native PoC executable to the device |\n| [ProcessUtil](../../../../../../reference/sts/com/android/sts/common/ProcessUtil.html) | Various helpers to find, wait, and kill processes on the device |\n| [RegexUtils](../../../../../../reference/sts/com/android/sts/common/RegexUtils.html) | Contains wrappers around JUnit assertions with regex matching in strings |\n| [RootcanalUtils](../../../../../../reference/sts/com/android/sts/common/RootcanalUtils.html) | TestWatcher that sets up a virtual bluetooth HAL and reboots the device once done. |\n| [RootcanalUtils.HciDevice](../../../../../../reference/sts/com/android/sts/common/RootcanalUtils.HciDevice.html) | Class that encapsulates a virtual HCI device that can be controlled by HCI commands. |\n| [RootcanalUtils.RootcanalController](../../../../../../reference/sts/com/android/sts/common/RootcanalUtils.RootcanalController.html) | |\n| [SystemUtil](../../../../../../reference/sts/com/android/sts/common/SystemUtil.html) | Various system-related helper functions |\n\nEnums\n-----\n\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| [ProcessUtil.KillException.Reason](../../../../../../reference/sts/com/android/sts/common/ProcessUtil.KillException.Reason.html) | |\n\nExceptions\n----------\n\n|--------------------------------------------------------------------------------------------------------------------|---|\n| [ProcessUtil.KillException](../../../../../../reference/sts/com/android/sts/common/ProcessUtil.KillException.html) | |\n\n-\n\n Interfaces\n ----------\n\n - [NativePoc.AfterFunction](../../../../../../reference/sts/com/android/sts/common/NativePoc.AfterFunction.html)\n - [NativePocAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocAsserter.html)\n-\n\n Classes\n -------\n\n - [CommandUtil](../../../../../../reference/sts/com/android/sts/common/CommandUtil.html)\n - [FridaUtils](../../../../../../reference/sts/com/android/sts/common/FridaUtils.html)\n - [HostsideMainlineModuleDetector](../../../../../../reference/sts/com/android/sts/common/HostsideMainlineModuleDetector.html)\n - [MallocDebug](../../../../../../reference/sts/com/android/sts/common/MallocDebug.html)\n - [NativePoc](../../../../../../reference/sts/com/android/sts/common/NativePoc.html)\n - [NativePoc.Builder](../../../../../../reference/sts/com/android/sts/common/NativePoc.Builder.html)\n - [NativePocCrashAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocCrashAsserter.html)\n - [NativePocMallocDebugAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocMallocDebugAsserter.html)\n - [NativePocStatusAsserter](../../../../../../reference/sts/com/android/sts/common/NativePocStatusAsserter.html)\n - [OverlayFsUtils](../../../../../../reference/sts/com/android/sts/common/OverlayFsUtils.html)\n - [PocPusher](../../../../../../reference/sts/com/android/sts/common/PocPusher.html)\n - [ProcessUtil](../../../../../../reference/sts/com/android/sts/common/ProcessUtil.html)\n - [RegexUtils](../../../../../../reference/sts/com/android/sts/common/RegexUtils.html)\n - [RootcanalUtils](../../../../../../reference/sts/com/android/sts/common/RootcanalUtils.html)\n - [RootcanalUtils.HciDevice](../../../../../../reference/sts/com/android/sts/common/RootcanalUtils.HciDevice.html)\n - [RootcanalUtils.RootcanalController](../../../../../../reference/sts/com/android/sts/common/RootcanalUtils.RootcanalController.html)\n - [SystemUtil](../../../../../../reference/sts/com/android/sts/common/SystemUtil.html)\n-\n\n Enums\n -----\n\n - [ProcessUtil.KillException.Reason](../../../../../../reference/sts/com/android/sts/common/ProcessUtil.KillException.Reason.html)\n-\n\n Exceptions\n ----------\n\n - [ProcessUtil.KillException](../../../../../../reference/sts/com/android/sts/common/ProcessUtil.KillException.html)"]]