• Home
Name Date Size #Lines LOC

..--

adapter/06-Sep-2024-13481

connect/06-Sep-2024-195132

discovery/06-Sep-2024-11262

dumpsys/06-Sep-2024-7432

mode/06-Sep-2024-188128

nop/06-Sep-2024-7129

pairing/06-Sep-2024-6638

read/06-Sep-2024-18594

scan/06-Sep-2024-13786

sdp/06-Sep-2024-248141

tools/06-Sep-2024-85

utils/06-Sep-2024-215163

Android.bpD06-Sep-20244.4 KiB166162

README.mdD06-Sep-20241 KiB3832

android_namespace.ccD06-Sep-2024734 225

bt_property.hD06-Sep-2024319 1710

bt_stack_info.ccD06-Sep-20241.9 KiB6440

bt_stack_info.hD06-Sep-2024866 3412

config.ccD06-Sep-2024985 3310

dump.hD06-Sep-2024469 2416

get_options.ccD06-Sep-20245.5 KiB200161

get_options.hD06-Sep-20241.8 KiB7141

handler.ccD06-Sep-20241.3 KiB4924

handler.hD06-Sep-20241 KiB4219

headless.ccD06-Sep-202411.4 KiB330250

headless.hD06-Sep-20243.7 KiB13293

interface.hD06-Sep-20248.1 KiB236182

log.ccD06-Sep-20241.1 KiB3311

log.hD06-Sep-20244 KiB8451

main.ccD06-Sep-20245.1 KiB162115

messenger.ccD06-Sep-20244.5 KiB14297

messenger.hD06-Sep-20241.6 KiB6030

property.ccD06-Sep-20245.4 KiB131101

property.hD06-Sep-20246.2 KiB210159

pushme.shD06-Sep-2024368 135

stopwatch.hD06-Sep-20241.5 KiB5127

text.ccD06-Sep-20241.4 KiB4523

text.hD06-Sep-2024823 234

timeout.hD06-Sep-2024693 223

util.ccD06-Sep-2024953 3213

util.hD06-Sep-2024644 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