tree: 316b93ac07b5776114298ebbcdd7e187a3011dab [path history] [tgz]
  1. adapter/
  2. connect/
  3. discovery/
  4. dumpsys/
  5. mode/
  6. nop/
  7. pairing/
  8. read/
  9. scan/
  10. sdp/
  11. tools/
  12. utils/
  13. Android.bp
  14. android_namespace.cc
  15. bt_property.h
  16. bt_stack_info.cc
  17. bt_stack_info.h
  18. config.cc
  19. dump.h
  20. get_options.cc
  21. get_options.h
  22. handler.cc
  23. handler.h
  24. headless.cc
  25. headless.h
  26. interface.h
  27. log.cc
  28. log.h
  29. main.cc
  30. messenger.cc
  31. messenger.h
  32. property.cc
  33. property.h
  34. pushme.sh
  35. README.md
  36. stopwatch.h
  37. text.cc
  38. text.h
  39. timeout.h
  40. util.cc
  41. util.h
system/test/headless/README.md

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