• Home
Name Date Size #Lines LOC

..--

adapter/04-Jul-2025-12976

connect/04-Jul-2025-192129

discovery/04-Jul-2025-10858

dumpsys/04-Jul-2025-6524

mode/04-Jul-2025-179119

nop/04-Jul-2025-6927

pairing/04-Jul-2025-6537

read/04-Jul-2025-18190

scan/04-Jul-2025-12978

sdp/04-Jul-2025-242135

tools/04-Jul-2025-85

utils/04-Jul-2025-200149

Android.bpD04-Jul-20254.4 KiB165161

README.mdD04-Jul-20251 KiB3832

bt_property.hD04-Jul-2025319 1710

bt_stack_info.ccD04-Jul-20251.8 KiB5935

bt_stack_info.hD04-Jul-2025864 3412

dump.hD04-Jul-2025469 2416

get_options.ccD04-Jul-20254.9 KiB171137

get_options.hD04-Jul-20251.6 KiB6637

handler.ccD04-Jul-20251.3 KiB4924

handler.hD04-Jul-20251 KiB4219

headless.ccD04-Jul-202511.6 KiB311231

headless.hD04-Jul-20253.4 KiB12688

interface.hD04-Jul-20257.8 KiB213159

log.ccD04-Jul-20251 KiB3311

log.hD04-Jul-20253.9 KiB7644

main.ccD04-Jul-20254.9 KiB14497

messenger.ccD04-Jul-20254.5 KiB14095

messenger.hD04-Jul-20251.6 KiB5929

property.ccD04-Jul-20255.9 KiB12696

property.hD04-Jul-20256.1 KiB203152

pushme.shD04-Jul-2025368 135

stopwatch.hD04-Jul-20251.4 KiB5026

text.ccD04-Jul-20251.3 KiB4422

text.hD04-Jul-2025823 234

timeout.hD04-Jul-2025693 223

util.ccD04-Jul-2025986 3414

util.hD04-Jul-2025644 181

README.md

1##
2## bluetooth headless
3##
4## A device-side executable that consists of a binary executable
5## driving the Android libbluetooth libraries.
6##
7
8Requirements:
9    1. Android installation,
10    2. Root access to adb connected Android device.
11
12Build: Source, lunch and build as typical Android target for selected device and architecture.
13    cd $ANDROID_BUILD_TOP
14    . build/envsetup.sh && lunch <target>
15    make bt_headless
16
17Install: Push the binary to an executable area on target device.
18    adb push ${ANDROID_PRODUCT_OUT}/system/bin/bt_headless /data/data/.
19
20Prepare: Ensure the system is queisced to prevent resource conflicts from the bluetooth process.
21    adb shell stop
22
23Run: Script or directly execute the target file.
24    adb shell /data/data/bt_headless --loop=10 nop
25    ```
26    [1102/174836.145418:INFO:btif_config_cache.cc(67)] BtifConfigCache, capacity: 10000
27    Nop loop:0
28    Nop loop:1
29    Nop loop:2
30    Nop loop:3
31    Nop loop:4
32    Nop loop:5
33    Nop loop:6
34    Nop loop:7
35    Nop loop:8
36    Nop loop:9
37    ```
38