自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
adbd
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
adbd 模块用于管理命令行 adb 和 IDE 调试会话。此模块是可更新的,这意味着它可在 Android 常规发布周期外的时间接收功能更新。
对 adbd 进行模块化处理可以更快地实现性能改进(前几年做出的改进以及即将推出的新改进)、bug 修复(如几个耗电 bug,其中包括 adbd 在 CPU 占用率达到 100% 时继续运行,直到电池电量耗尽)以及尚未向后移植到旧版 Android 的功能。此类改进有助于确保 adbd 可靠性,对于自动化测试(其中的故障会迫使应用开发者和 OEM 手动重新插拔/重启离线设备)而言,这至关重要。可靠性问题也会影响到出厂设置 (OEM) 和电路板组装(SoC 供应商)。
模块边界
对于 Android 12 及更高版本,adbd 模块代码为 packages/modules/adbd
。
对于 Android 11 及更低版本,adbd 模块边界为 /system/core/adb
和 /system/bin/adbd
。
adbd 模块 (com.android.adbd
) 采用 APEX 格式,适用于搭载 Android 11 或更高版本的设备。
模块依赖项
adbd 模块依赖于以下几项。
自定义
adbd 模块不支持自定义。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[[["易于理解","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-03-26。"],[],[],null,["# adbd\n\nThe adbd module manages command-line adb and IDE debugging sessions. This module\nis updatable, meaning it can receive updates to functionality outside of the\nnormal Android release cycle.\n\nModularizing adbd enables faster delivery of performance improvements (those\nmade in previous years and new improvements yet to come), bug fixes (such as\nseveral power-drain bugs, including adbd continuing at 100% of a CPU until the\nbattery depletes), and features that haven't been backported to older versions\nof Android. Such improvements contribute to adbd reliability, which is critical\nfor automated testing where failures can force app developers and OEMs to\nmanually replug/restart offline devices. Reliability issues also affect factory\nsetup (OEMs) and board bringup (SoC vendors).\n\nModule boundary\n---------------\n\nFor Android 12 and higher, the adbd module code is\n`packages/modules/adbd`.\n\nFor Android 11 and lower, the adbd module boundaries\nare `/system/core/adb` and `/system/bin/adbd`.\n\nModule format\n-------------\n\nThe adbd module (`com.android.adbd`) is in\n[APEX](/docs/core/ota/apex) format and is available for devices\nrunning Android 11 or higher.\n\nModule dependences\n------------------\n\nThe adbd module depends on the following.\n\n- Java Debug Wire Protocol (JDWP) debugging protocol with Android runtime. adbd\n dynamically links against `libadbconnection_server`.\n\n- Authentication with `system_server`. adbd dynamically links against\n `libadbd_auth`.\n\nCustomization\n-------------\n\nThe adbd module doesn't support customization."]]