Currently it just registers a receiver for all Bluetooth intents, and prints them to logcat. For example: BTDEBUG : a.b.device.a.FOUND BTDEBUG : a.b.device.e.DEVICE = 00:18:13:F2:CC:33 BTDEBUG : a.b.device.e.RSSI = -35 BTDEBUG : a.b.device.e.CLASS = 200404 BTDEBUG : a.b.adapter.a.DISCOVERY_FINISHED BTDEBUG : a.b.device.a.BOND_STATE_CHANGED BTDEBUG : a.b.device.e.DEVICE = 00:18:13:F2:CC:33 BTDEBUG : a.b.device.e.BOND_STATE = 11 BTDEBUG : a.b.device.e.PREVIOUS_BOND_STATE = 10 BTDEBUG : a.b.device.a.ACL_CONNECTED BTDEBUG : a.b.device.e.DEVICE = 00:18:13:F2:CC:33 BTDEBUG : a.b.device.a.NAME_CHANGED BTDEBUG : a.b.device.e.DEVICE = 00:18:13:F2:CC:33 BTDEBUG : a.b.device.e.NAME = "HBH-IV840" This application is built by default, but is not installed. Use mmm development/apps/BluetoothDebug adb install -r $OUT/system/app/BluetoothDebug.apk to install it. Logging will begin immediately. Change-Id: I582e6415fc1c856a6a4581ecf52eda11818601cf
14 lines
250 B
Makefile
14 lines
250 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
|
|
LOCAL_JAVA_LIBRARIES :=
|
|
|
|
LOCAL_PACKAGE_NAME := BluetoothDebug
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
include $(BUILD_PACKAGE)
|