Android Open Accessory (AOA) 支援功能可讓外部 USB 硬體 (Android USB 配件) 在配件模式下與 Android 裝置互動。當 Android 裝置處於配件模式時,連接的配件會充當 USB 主機 (為匯流排供電並列舉裝置),而 Android 裝置則充當 USB 配件。
Android USB 配件可連接至 Android 裝置。這類配件遵循 AOA,可偵測支援配件模式的 Android 裝置,且必須提供 5V/500mA 的充電電力。部分先前推出的 Android 裝置只能充當 USB 裝置,無法與外部 USB 裝置建立連線。AOA 支援功能可克服這項限制,讓您建構可啟動連線並與各種 Android 裝置互動的配件。
[[["容易理解","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,["# Android Open Accessory (AOA) support allows external USB hardware\n(Android USB accessories) to interact with Android-powered devices in\n*accessory mode*. When an Android-powered device is in\naccessory mode, the connected accessory acts as the USB host (powers the bus and\nenumerates devices) and the Android-powered device acts as the USB accessory.\n\nAndroid USB accessories are designed to attach to Android-powered devices.\nSuch accessories adhere to AOA, enabling them to detect Android-powered devices\nthat support accessory mode, and must provide 500mA at 5V for charging power.\nSome previously-released Android-powered devices are capable of acting only\nas a USB device and cannot initiate connections with external USB devices. AOA\nsupport overcomes this limitation, enabling you to build accessories that can\ninitiate connections and interact with an assortment of Android-powered devices.\n| **Note:** Accessory mode is dependent on device hardware; not all devices support accessory mode. Devices that support accessory mode can be filtered using a `\u003cuses-feature\u003e` element in the corresponding application's Android manifest. For details, see the [USB Accessory](http://developer.android.com/guide/topics/connectivity/usb/accessory.html#manifest) developer guide.\n\nAOA has two versions that support different types of communication:\n\n- **[AOAv1](/docs/core/interaction/accessories/aoa).** Supports generic accessory communication and adb debugging.\n- **[AOAv2](/docs/core/interaction/accessories/aoa2).** Supports human interface device (HID) capabilities. Available in Android 4.1 (API Level 16) and higher."]]