unplugged-system/packages/modules/Bluetooth/system/test/headless
2025-10-06 13:59:42 +00:00
..
connect Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
discovery Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
dumpsys Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
nop Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
pairing Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
read Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
scan Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
sdp Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
tools Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Android.bp_disable Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
bt_property.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
bt_property.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
dump.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
get_options.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
get_options.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
handler.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
handler.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
headless.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
headless.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
interface.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
log.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
log.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
main.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
messenger.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
messenger.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
property.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
property.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.md Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
stopwatch.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
timeout.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
util.cc Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
util.h Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

bluetooth headless

A device-side executable that consists of a binary executable

driving the Android libbluetooth libraries.

Requirements: 1. Android installation, 2. Root access to adb connected Android device.

Build: Source, lunch and build as typical Android target for selected device and architecture. cd $ANDROID_BUILD_TOP . build/envsetup.sh && lunch make bt_headless

Install: Push the binary to an executable area on target device. adb push ${ANDROID_PRODUCT_OUT}/system/bin/bt_headless /data/data/.

Prepare: Ensure the system is queisced to prevent resource conflicts from the bluetooth process. adb shell stop

Run: Script or directly execute the target file. adb shell /data/data/bt_headless --loop=10 nop [1102/174836.145418:INFO:btif_config_cache.cc(67)] BtifConfigCache, capacity: 10000 Nop loop:0 Nop loop:1 Nop loop:2 Nop loop:3 Nop loop:4 Nop loop:5 Nop loop:6 Nop loop:7 Nop loop:8 Nop loop:9