Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Bluetooth
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Модуль Bluetooth — это дополнительный основной модуль, представленный в Android 13. В Android 16 и более поздних версиях модуль является обновляемым и содержит полностью сертифицированный двухрежимный стек хоста Bluetooth, что позволяет устройствам Android поддерживать как классический Bluetooth, так и Bluetooth Low Energy (BLE).
Основной целью создания модуля Bluetooth является предоставление производителям устройств, пользователям и разработчикам приложений более качественного опыта использования Bluetooth за счет:
Быстрое и регулярное предоставление обновлений с новыми функциями, исправлениями ошибок, улучшениями взаимодействия и исправлениями безопасности независимо от цикла выпуска ОС Android.
Снижение фрагментации и создание единообразного опыта для всей экосистемы Android.
Оптимизация разработки для партнеров за счет поставки проверенных Android модулей Bluetooth Mainline и исключения частого перебазирования, что позволяет сократить накладные расходы на разработку и тестирование.
Модуль Bluetooth использует формат APEX . Пакет com.google.android.bt
содержит APK-файл Bluetooth, определённый в packages/modules/Bluetooth/android/app
, встроенную библиотеку libbluetooth_jni.so
, API в packages/modules/Bluetooth/framework/java/android/bluetooth
, а также интерфейсы HIDL.
Граница модуля
На следующей диаграмме показана граница модуля Bluetooth:

Рисунок 1. Граница модуля Bluetooth.
Зависимости
Модуль Bluetooth зависит от следующего:
- Входящие и исходящие использования API
@hide
- Библиотека, необходимая для Bluetooth APK (
libbluetooth.so
). - Реализация HAL от поставщика чипсета Bluetooth
- Android Audio Framework для потоковой передачи звука
- Android-телефония для телефонных звонков
- Подключение Android к персональной сети Bluetooth (PAN)
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[[["Прост для понимания","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-29 UTC."],[],[],null,["# Bluetooth\n\nThe Bluetooth module is an optional Mainline module introduced in Android 13.\nIn Android 16 and higher, the module is updatable and contains a fully\ncertified dual-mode Bluetooth host stack, enabling Android devices to support\nboth classic Bluetooth and Bluetooth Low Energy (BLE) functionalities.\n\nThe primary motivation for the Bluetooth module is to provide a higher-quality\nBluetooth experience to device manufacturers, users, and app developers by:\n\n- **Delivering faster updates** with new features, bug fixes, interoperability\n enhancements, and security patches quickly and regularly, independently of\n the Android OS release cycle.\n\n- **Reducing fragmentation** and creating a consistent experience for the\n entire Android ecosystem.\n\n- **Streamlining partner development** by delivering Android-validated\n Bluetooth Mainline modules and avoiding frequent rebasing, thus reducing\n development and testing overhead.\n\nPackage format\n--------------\n\nThe Bluetooth module uses the [APEX](/docs/core/ota/apex) format. The `com.google.android.bt`\npackage contains the Bluetooth APK defined in\n`packages/modules/Bluetooth/android/app`, the built-in library\n`libbluetooth_jni.so`, the APIs under\n`packages/modules/Bluetooth/framework/java/android/bluetooth`, and the HIDL\ninterfaces.\n\nModule boundary\n---------------\n\nThe following diagram shows the Bluetooth module boundary:\n\n**Figure 1**. Bluetooth module boundary.\n\nDependencies\n------------\n\nThe Bluetooth module has dependencies on the following:\n\n- Incoming and outgoing `@hide` API usages\n- Library required for the Bluetooth APK (`libbluetooth.so`).\n- HAL implementation from the Bluetooth chipset provider\n- Android Audio Framework for audio streaming\n- Android telephony for phone calls\n- Android tethering for Bluetooth Personal Area Network (PAN)"]]