android-ble
Installation
SKILL.md
Android BLE
Step 1: Define the Android BLE contract
- DEFINE scan/discovery | advertise/peripheral | direct/automatic GATT connection | service discovery/cache | read/write/subscribe | background presence/connection | bond/re-pairing | Android 17 migration | OEM failure.
- IDENTIFY min/compile/target SDK, device/Android/OEM matrix, BLE central/peripheral and GATT client/server roles, identity/filter, foreground/background/process-death behavior, permissions, association/bond model, connection owner, callback executor, operation queue, timeout/retry policy, and user-visible behavior.
- READ
references/ble-overview.mdand the current Android BLE overview before choosing the platform flow, role names, or security boundary. - SEPARATE central/peripheral link roles from GATT client/server procedure roles. Name both axes in state, logs, and tests.
- TREAT pairing/link protection as shared device transport security, not app isolation. For sensitive data, define application-layer confidentiality, authentication, and key ownership.
- READ the official Android BLE background guide, Bluetooth permissions, and relevant API-level branch before editing.
- READ
references/source-audit.mdbefore applying Android 17 claims from secondary sources. Separate all-app changes, target-37 changes, older enforced requirements, empirical OEM behavior, and Bluetooth Classic-only changes. - ROUTE ADB executable/device/shell/diagnostic mechanics to
android-debug-bridge, Android GATT connection/status failure diagnosis toandroid-ble-gatt-status, BLE inspector/diagnostic Compose surfaces toandroid-ble-inspector, localBluetoothGattServerdatabase/request/notification internals toandroid-ble-gatt-server, remote client operation serialization/races toandroid-ble-gatt-queue, RFCOMM and LE L2CAP CoC socket transports toandroid-bluetooth-sockets, logical GAP/GATT/ATT/L2CAP design toble-protocol-stack, PHY/MTU throughput tuning toble-throughput, application security protocols tonoise-protocol, and generic Kotlin/coroutine/build mechanics to their dedicated skills.
Completion: SDK/device matrix, both role axes, permission/background model, transport/application security boundary, connection/operation owner, and observable success/failure states are explicit.