自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
adbd
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
adbd 模組會管理指令列 ADB 和 IDE 偵錯工作階段。這個模組可更新,也就是說,它可以在正常的 Android 發布週期之外接收功能更新。
將 adbd 模組化可加快效能改善 (過去幾年所做的改善和未來的新改善)、修正錯誤 (例如多項耗電錯誤,包括 adbd 持續以 100% CPU 運作,直到電池耗盡),以及尚未回移至舊版 Android 的功能。這類改善可提升 adbd 的可靠性,這對自動化測試至關重要,因為測試失敗可能會迫使應用程式開發人員和原始設備製造商手動重新插入/重新啟動離線裝置。穩定性問題也會影響工廠設定 (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 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],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."]]