| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| connect/ | 03-May-2024 | - | 171 | 112 | ||
| discovery/ | 03-May-2024 | - | 221 | 147 | ||
| dumpsys/ | 03-May-2024 | - | 74 | 33 | ||
| nop/ | 03-May-2024 | - | 71 | 30 | ||
| pairing/ | 03-May-2024 | - | 69 | 41 | ||
| read/ | 03-May-2024 | - | 185 | 96 | ||
| scan/ | 03-May-2024 | - | 151 | 94 | ||
| sdp/ | 03-May-2024 | - | 285 | 177 | ||
| tools/ | 03-May-2024 | - | 8 | 5 | ||
| Android.bp | D | 03-May-2024 | 3.4 KiB | 143 | 138 | |
| README.md | D | 03-May-2024 | 1 KiB | 38 | 32 | |
| bt_property.cc | D | 03-May-2024 | 4.4 KiB | 124 | 101 | |
| bt_property.h | D | 03-May-2024 | 244 | 15 | 9 | |
| dump.h | D | 03-May-2024 | 469 | 24 | 16 | |
| get_options.cc | D | 03-May-2024 | 5.5 KiB | 200 | 161 | |
| get_options.h | D | 03-May-2024 | 1.8 KiB | 70 | 41 | |
| handler.cc | D | 03-May-2024 | 1.3 KiB | 47 | 23 | |
| handler.h | D | 03-May-2024 | 1 KiB | 42 | 19 | |
| headless.cc | D | 03-May-2024 | 10.9 KiB | 308 | 232 | |
| headless.h | D | 03-May-2024 | 3.7 KiB | 136 | 97 | |
| interface.h | D | 03-May-2024 | 4 KiB | 122 | 102 | |
| log.cc | D | 03-May-2024 | 1.5 KiB | 49 | 25 | |
| log.h | D | 03-May-2024 | 4.1 KiB | 89 | 56 | |
| main.cc | D | 03-May-2024 | 4.7 KiB | 154 | 107 | |
| messenger.cc | D | 03-May-2024 | 6.1 KiB | 196 | 141 | |
| messenger.h | D | 03-May-2024 | 1 KiB | 49 | 30 | |
| property.cc | D | 03-May-2024 | 2.4 KiB | 67 | 38 | |
| property.h | D | 03-May-2024 | 3.9 KiB | 148 | 104 | |
| stopwatch.h | D | 03-May-2024 | 1.5 KiB | 52 | 28 | |
| timeout.h | D | 03-May-2024 | 693 | 22 | 3 | |
| util.cc | D | 03-May-2024 | 1 KiB | 35 | 14 | |
| util.h | D | 03-May-2024 | 644 | 18 | 1 |
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