packages/modules/Bluetooth/system/test/headless
cpeng b5f75efab3 android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
..
connect android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
dumpsys android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
nop android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
pairing android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
read android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
sdp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
Android.bp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
README.md android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
get_options.cc android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
get_options.h android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
headless.cc android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
headless.h android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
interface.h android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
main.cc android 13 from xiaosuan 2025-08-25 08:38:42 +08:00

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 out/target/product/<device..arch>/bt_headless/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 --flags=INIT_logging_debug_enabled_for_all=true,INIT_gd_acl=true nop