[Galaxy S I9000 Q&A, Help & Troubleshooting] phi770:
An educated guess to get bluetooth HID on the desire working

logcat (relevant part)

V/BluetoothEventRedirector( 455): Received android.bluetooth.adapter.action.STATE_CHANGED
I/BluetoothEventRedirector( 455): EXTRA_STATE = 11
E/BTL-SERVER( 947): BTLD starting...
E/BTL-SERVER( 947): main: main :: BTLD starting
V/BTL_CFG ( 947): btl_cfg_set_btld_status: service.brcm.bt.btld=1, ret=0
V/BTL_CFG ( 947): btl_cfg_set_btld_status success : service.brcm.bt.btld = 1, ret = 0
V/BTL_CFG ( 947): btld_cfg_btld_pid : service.brcm.bt.btld_pid = 947
I/BTL_CFG ( 947): btl_cfg_set_btld_pid success : service.brcm.bt.btld_pid = 947, ret = 0
I/BTL-SERVER( 947): BTE version BCM1200_MI_10.3.14.36
I/BTL-SERVER( 947): btld version BTL-ANDROID_MI_2.0.50_htc_032+sniff_fix starting...
I/BTL-SERVER( 947): Build time: Jun 21 2010 12:34:01
I/BTL-SERVER( 947): BTLD Registering on_off handler for signal 12
I/BTL-SERVER( 947): get specific BD address...
I/BTL-SERVER( 947): Got BD address 00:23:76:f6:db:af
I/BTL-SERVER( 947): from /sys/module/board_bravo/parameters/bdaddress
I/BTL_CFG ( 947): SetProperties: save default BDA: 002376f6dbaf
I/BTL-SERVER( 947): Convert BD to binary 00:23:76:F6:DB:AF
I/BTL_CFG ( 947): btl_cfg_get_bdaddr: BDA=002376f6dbaf
E/BTL_CFG ( 947): WARNING : property_get failed (0)
E/BTL_CFG ( 947): WARNING : property_get failed (0)
E/BTL_CFG ( 947): WARNING : property_get failed (0)
I/BTL_CFG ( 947): btl_cfg_get_lpm_params: service.brcm.bt.bt_wake_polar=0
E/BTL_CFG ( 947): WARNING : property_get failed (0)
I/BTL_CFG ( 947): btl_cfg_get_lpm_params: service.brcm.bt.host_wake_polar=0
E/BTL_CFG ( 947): WARNING : property_get failed (0)
E/BTL_CFG ( 947): WARNING : property_get failed (0)
I/BTL_CFG ( 947): btl_cfg_get_contacts_db: service.brcm.bt.contacts_db=/data/data/com.android.providers.contacts/databases/contacts2.db
I/ ( 947): #### : lpm_through_rfkill = 0
D/dalvikvm( 455): GC_FOR_MALLOC freed 15968 objects / 869784 bytes in 39ms
I/USERIAL_LINUX( 947): USERIAL_Open
I/USERIAL_LINUX( 947): USERIAL_Open opening /dev/ttyHS0
I/USERIAL_LINUX( 947): USERIAL_Open open successfull (7)
I/USERIAL_LINUX( 947): Leaving USERIAL_Open
E/BTL_CFG ( 947): WARNING : property_get failed (0)
D/BTLD ( 947): [bttrc] using compile default trace settings
I/GKI_LINUX( 947): Leaving GKI_create_task 10500 0 1f8238 HCI 1cf0cc 0
I/GKI_LINUX( 947): GKI creating task 2
I/GKI_LINUX( 947): gki_task_entry task_id=2
I/GKI_LINUX( 947): Leaving GKI_create_task 12b34 2 1ffce8 APPL 1cf0cc 0
I/GKI_LINUX( 947): GKI creating task 3
I/GKI_LINUX( 947): gki_task_entry task_id=3
I/GKI_LINUX( 947): Leaving GKI_create_task 38cd0 3 1ffd28 SBC 1cf0cc 0
I/GKI_LINUX( 947): GKI creating task 4
I/GKI_LINUX( 947): gki_task_entry task_id=4
I/GKI_LINUX( 947): Leaving GKI_create_task 382b0 4 1ffd68 AVR 1cf0cc 0
I/GKI_LINUX( 947): GKI creating task 5
I/GKI_LINUX( 947): PBS SQL lowest priority task
I/GKI_LINUX( 947): Leaving GKI_create_task 1a754 5 1ffda8 PBS 1cf0cc 0
I/GKI_LINUX( 947): GKI_run
I/GKI_LINUX( 947): gki_task_entry task_id=5
I/PBS_CO ( 947): pbs_sql_task started.
I//system/bin/btld( 946): gki_alloc_free_queue in, id:3
I//system/bin/btld( 946): gki_alloc_free_queue calling gki_init_free_queue, id:3 size:1712, totol:50
I//system/bin/btld( 946): gki_alloc_free_queue ret OK, id:3 size:1712, totol:50
I//system/bin/btld( 946): gki_alloc_free_queue in, id:2
I//system/bin/btld( 946): gki_alloc_free_queue calling gki_init_free_queue, id:2 size:660, totol:45
I//system/bin/btld( 946): gki_alloc_free_queue ret OK, id:2 size:660, totol:45
D/USERIAL_LINUX( 947): USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR ioctl
I/USERIAL_LINUX( 947): USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR ioctl 14
I/USERIAL_LINUX( 947): userial_change_rate: Closing UART Port
D/USERIAL_LINUX( 947): socket signaled
D/USERIAL_LINUX( 947): socket signal reseted
W/USERIAL_LINUX( 947): my_read return size <=0:-1, exiting userial_read_thread
I/USERIAL_LINUX( 947): USERIAL_Close
I//system/bin/btld( 946): gki_alloc_free_queue in, id:0
I//system/bin/btld( 946): gki_alloc_free_queue calling gki_init_free_queue, id:0 size:64, totol:48
I//system/bin/btld( 946): gki_alloc_free_queue ret OK, id:0 size:64, totol:48
I//system/bin/btld( 946): userial_change_rate: Closing UART Port
D/USERIAL_LINUX( 947): userial_change_rate: Attempting to reopen the UART Port at 0x002dc6c0
I/USERIAL_LINUX( 947): userial_change_rate: Attempting to reopen the UART Port at 3000000
I/USERIAL_LINUX( 947): USERIAL_Open
I/USERIAL_LINUX( 947): USERIAL_Open opening /dev/ttyHS0
I/USERIAL_LINUX( 947): USERIAL_Open open successfull (7)
I/USERIAL_LINUX( 947): Leaving USERIAL_Open
I/BTL-SERVER( 947): Found patchfile: /system/etc/firmware//BCM4329B1_002.002.023.0436.0439.hcd
I/BTL-SERVER( 947): bte_main_rln_cplt: Downloading patchfile /system/etc/firmware/BCM4329B1_002.002.023.0436.0439.hcd
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTLD ( 947): BCM2045_PRM_Init
I/BTLD ( 947): Minidrv download completed
I//system/bin/btld( 946): gki_alloc_free_queue in, id:1
I//system/bin/btld( 946): gki_alloc_free_queue calling gki_init_free_queue, id:1 size:288, totol:26
I//system/bin/btld( 946): gki_alloc_free_queue ret OK, id:1 size:288, totol:26
E/BTLD ( 947): [hcis] Unknown HCI message type drop this byte 0x34
E/BTLD ( 947): [hcis] Unknown HCI message type drop this byte 0x31
I/BTLD ( 947): Launch RAM successful
D/USERIAL_LINUX( 947): USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR ioctl
I/USERIAL_LINUX( 947): USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR ioctl 7
I/USERIAL_LINUX( 947): userial_change_rate: Closing UART Port
D/USERIAL_LINUX( 947): socket signaled
D/USERIAL_LINUX( 947): socket signal reseted
W/USERIAL_LINUX( 947): my_read return size <=0:-1, exiting userial_read_thread
I/USERIAL_LINUX( 947): USERIAL_Close
I//system/bin/btld( 946): userial_change_rate: Closing UART Port
D/USERIAL_LINUX( 947): userial_change_rate: Attempting to reopen the UART Port at 0x0001c200
I/USERIAL_LINUX( 947): userial_change_rate: Attempting to reopen the UART Port at 115200
I/USERIAL_LINUX( 947): USERIAL_Open
I/USERIAL_LINUX( 947): USERIAL_Open opening /dev/ttyHS0
I/USERIAL_LINUX( 947): USERIAL_Open open successfull (7)
I/USERIAL_LINUX( 947): Leaving USERIAL_Open
D/USERIAL_LINUX( 947): USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR ioctl
I/USERIAL_LINUX( 947): USERIAL_Ioctl: Received USERIAL_OP_BAUD_WR ioctl 14
I/USERIAL_LINUX( 947): userial_change_rate: Closing UART Port
D/USERIAL_LINUX( 947): socket signaled
D/USERIAL_LINUX( 947): socket signal reseted
W/USERIAL_LINUX( 947): my_read return size <=0:-1, exiting userial_read_thread
I/USERIAL_LINUX( 947): USERIAL_Close
I//system/bin/btld( 946): userial_change_rate: Closing UART Port
D/USERIAL_LINUX( 947): userial_change_rate: Attempting to reopen the UART Port at 0x002dc6c0
I/USERIAL_LINUX( 947): userial_change_rate: Attempting to reopen the UART Port at 3000000
I/USERIAL_LINUX( 947): USERIAL_Open
I/USERIAL_LINUX( 947): USERIAL_Open opening /dev/ttyHS0
I/USERIAL_LINUX( 947): USERIAL_Open open successfull (7)
I/USERIAL_LINUX( 947): Leaving USERIAL_Open
I/BTL-SERVER( 947): Setting local bd addr to 00:23:76:F6:DB:AF
I/ ( 947): dtun_server_register_interface: Register DTUN interface [0]
D/ ( 947): dtun_server_start: dtun_server_start()
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [DTUN]
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTL-BTE_APPL( 947): BTE_appl_task is exiting.
I/BTAPP_FM( 947): BTAPP_FM: Initialized IFS (res = 6)
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [FM]
I/BTAPP_FM( 947): BTAPP_FM: Registered IFS (res = 0)
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [TEST]
I/BTL_CFG ( 947): btl_cfg_get_btport_redirection_enable: service.brcm.bt.btport_redir_on=
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [DUN]
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [SPP]
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [AG]
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [SCO]
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTA_AG_CO: ( 947): bta_ag_co_init: ag_voice_settings = 96
I/BTA_AG_CO: ( 947): bta_ag_co_init: ag_vsc_sco_pcm(0x172e1b) = {0, 4, 0, 0, 0}
I/BTA_AG_CO: ( 947): bta_ag_co_init: ag_vsc_pcm_config(0x172e16) = {0, 0, 3, 3, 0}
I/BTL-BTAPP_OPC:( 947): **** Starting DTUN [OPC] Interface ****
I/BTL-BTAPP_OPS:( 947): OPS Supported Formats = 0x45
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTL-BTAPP_OPS:( 947): OPS event:0
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [FTPS]
I/BTAPP_PR:( 947): Initialized IFS (res = 6)
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [PR]
I/BTAPP_PR:( 947): Registered IFS (res = 0)
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTL-BTAPP_AV( 947): AVRCP enabled
I/BTL-BTAPP_AV( 947): Advanced Audio enabled
D/BTAPP_PBS:( 947): btapp_pbs_init IFS init result = 6
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystem: Registered subsystem [PBS]
D/BTAPP_PBS:( 947): BTL_IF_RegisterSubSystem result = 0 btl_if_pbs_handle = 8
I/ ( 947): btapp_bts_init: btapp_bts_init
I/BTL-IFS ( 947): BTL_IF_RegisterSubSystemMultiClnt: Registered subsystem [BTS]
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
D/ ( 947): jvapi_if_dm_cback: #### jw_if_dm_cback ev BTA_JV_ENABLE_EVT ####
I/BTL-BTE_APPL( 947): BTE_appl_task is exiting.
I/BTL-IFS-WRAPPER( 947): wrp_sock_create: wrp_sock_create : created socket (fd 14)
D/BTL-IFS-WRAPPER( 947): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
D/BTL-IFS-WRAPPER( 947): wrp_sock_bind: btl_ifs:wrp_sock_bind:socket_local_server_bind result:0 server_name:brcm.bt.dtun.9000
D/BTL-IFS-WRAPPER( 947): wrp_sock_bind: socket_local_server_bind on port 9000
I/BTL-IFS-WRAPPER( 947): wrp_sock_listen: wrp_sock_listen : (CTRL) listening on brcm.bt.dtun:9000 (14)
I/bluedroid( 162): $#$#$#$#$# Start bluetoothd...
I/DTUN_HCID_BZ4( 959): HCID DTUN client starting
I/DTUN_CLNT( 959): dtun_start_interface : iface [DTUN_INTERFACE] starting...
D/DTUN_CLNT( 959): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
I/BTL-IFS ( 947): main_server_thread: [CTRL] Client connected (15)
I/BTL-IFS ( 947): attach_client: ######## Attached client subsystem DTUN (15) ########
D/BTL-IFS ( 947): send_registration_rsp: send_registration_rsp [0]
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 15)
D/DTUN_CLNT( 959): create_subprocess : [DTUN_INTERFACE]
I/DTUN_CLNT( 959): Client calling DTUN_METHOD_DM_GET_LOCAL_INFO (id 1)
I/ ( 947): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
I/ ( 947): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_GET_LOCAL_INFO (id 1), len 0
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 15)
I/DTUN_HCID_BZ4( 959): hcid main loop starting
D/DTUN_HCID_BZ4( 959): dtun_dm_sig_local_info()
I/DTUN_CLNT( 959): Client calling DTUN_METHOD_DM_SET_NAME (id 13)
I/ ( 947): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
I/ ( 947): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_SET_NAME (id 13), len 248
D/ADAPTER ( 959): btd_adapter_ref(0xf180): ref=1
I/DTUN_HCID_BZ4( 959): manager start adapter
I//system/bin/btld( 946): btapp_dm_GetLocalInfo()
I//system/bin/btld( 946): btapp_dm_SetName()
I/DTUN_CLNT( 959): Client calling DTUN_METHOD_DM_SET_MODE (id 12)
I/ ( 947): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
I/ ( 947): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_SET_MODE (id 12), len 1
E/DTUN_HCID_BZ4( 959): ...dtunops_set_limited_discoverable unimplemented!!!
D/DEVICE ( 959): Creating device /org/bluez/959/hci0/dev_00_14_51_D0_96_F6
D/DEVICE ( 959): Creating device [address = 00:14:51:D0:96:F6] /org/bluez/959/hci0/dev_00_14_51_D0_96_F6 [name = siegfriedruckels Maus]
D/DEVICE ( 959): btd_device_ref(0xf518): ref=1
D/DEVICE ( 959): Just add the profiles for /org/bluez/959/hci0/dev_00_14_51_D0_96_F6
D/DTUN_HCID_BZ4( 959): dtun_add_devices_do_append()
I/DTUN_HCID_BZ4( 959): key = 00:14:51:D0:96:F6 value = 9ED7D8FE36844E8FB8E1C1E9D6640028 0 4
I/DTUN_CLNT( 959): Client calling DTUN_METHOD_DM_ADD_DEV (id 14)
I/ ( 947): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
I/ ( 947): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_ADD_DEV (id 14), len 23
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I//system/bin/btld( 946): btapp_dm_SetMode()
I//system/bin/btld( 946): btapp_dm_AddDev()
I/ADAPTER ( 959): Adapter /org/bluez/959/hci0 has been enabled
D/dtun_obexd( 959): Obex: g_dbus_register_interface in_conn = 0xca28 conn=0xca28
I/BatteryStatsImpl( 162): notePhoneSignalStrengthLocked: 4->3
I/bluedroid( 162): $#$#$#$# New state is BTON_FMOFF_handling
D/ADAPTER ( 959): Agent registered for hci0 at :1.0:/android/bluetooth/agent
I/BluetoothEventLoop.cpp( 162): agent_event_filter: Received method org.bluez.Agent:Release
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
I/global ( 162): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
I/BluetoothService( 162): loadBondState(): val = /org/bluez/959/hci0/dev_00_14_51_D0_96_F6,
D/BluetoothService( 162): found 1 bonded devices
D/BluetoothService( 162): Bluetooth state 11 -> 12
V/BluetoothEventRedirector( 455): Received android.bluetooth.adapter.action.STATE_CHANGED
I/BluetoothEventRedirector( 455): EXTRA_STATE = 12
V/BluetoothDataGatewayService( 162): #### DataGateway Service Received message ####
V/BluetoothDataGatewayService( 162): #### Enable Data Gateway Server ####
I/BluetoothDataGateway.cpp( 162): dataGatewayEnableNative
I/BTL_IFC ( 162): BTL_IFC_RegisterSubSystem: Register subsystem [SPP]
I/BTL_IFC ( 162): btl_ifc_ctrl_connect: Connect control channel for subsystem [SPP]
D/BTL_IFC_WRP( 162): wrp_sock_create: CTRL
D/BTL_IFC_WRP( 162): wrp_alloc_new_sock: wrp_alloc_new_sock sub 1
D/BTL_IFC_WRP( 162): wrp_sock_create: 142
D/BTL_IFC_WRP( 162): wrp_sock_connect: wrp_sock_connect brcm.bt.dtun:9000 (142)
D/BTL_IFC_WRP( 162): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
I/BTL-IFS ( 947): main_server_thread: [CTRL] Client connected (16)
I/BTL_IFC_WRP( 162): wrp_sock_connect: Connected. (142)
I/BTL_IFC ( 162): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_REGISTER_SUBSYS_REQ (SPP) 0 pbytes (hdl 142)
I/BTL-IFS ( 947): attach_client: ######## Attached client subsystem SPP (16) ########
D/BTL-IFS ( 947): send_registration_rsp: send_registration_rsp [0]
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 16)
D/BTL_IFC ( 162): BTL_IFC_RegisterSubSystem: add new ctrl fd to active set
I/BrcmBtServiceLoader( 162): ***Received Bluetooth ON Event****
D/BluetoothServiceManager( 162): onBluetoothEnabled()
D/BluetoothServiceManager( 162): ***startService(): Bluetooth service bluetooth_ftp not enabled. Skipping...***
D/BluetoothServiceManager( 162): ***startService(): Starting service: bluetooth_pbs***
D/com_broadcom_bt_service_pbap_PBAPService.cpp( 162): enableDefaultPbapServerNative
I/BTL_IFC ( 162): BTL_IFC_RegisterSubSystem: Register subsystem [PBS]
I/BTL_IFC ( 162): btl_ifc_ctrl_connect: Connect control channel for subsystem [PBS]
D/BTL_IFC_WRP( 162): wrp_sock_create: CTRL
D/BTL_IFC_WRP( 162): wrp_alloc_new_sock: wrp_alloc_new_sock sub 1
D/BTL_IFC_WRP( 162): wrp_sock_create: 143
D/BTL_IFC_WRP( 162): wrp_sock_connect: wrp_sock_connect brcm.bt.dtun:9000 (143)
D/BTL_IFC_WRP( 162): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
I/BTL-IFS ( 947): main_server_thread: [CTRL] Client connected (17)
D/BluetoothHeadsetService( 264): Loaded priority 00:14:51:D0:96:F6 = 0
I/BTL_IFC_WRP( 162): wrp_sock_connect: Connected. (143)
I/BTL_IFC ( 162): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_REGISTER_SUBSYS_REQ (PBS) 0 pbytes (hdl 143)
I/BTL-IFS ( 947): attach_client: ######## Attached client subsystem PBS (17) ########
D/BTL-IFS ( 947): send_registration_rsp: send_registration_rsp [0]
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 17)
D/BTL_IFC ( 162): BTL_IFC_RegisterSubSystem: add new ctrl fd to active set
D/BTL_IFC ( 162): BTL_IFC_CtrlSend: BTL_IFC_CtrlSend
I/BTL_IFC ( 162): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_PBS_ENABLE (PBS) 0 pbytes (hdl 143)
I/GKI_LINUX( 947): GKI_sched_lock
I/GKI_LINUX( 947): GKI_sched_unlock
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_PBS_ENABLE_EVT (PBS) 0 pbytes (hdl 17)
I/BTL_IFC ( 162): btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_PBS_ENABLE_EVT (PBS) 2 pbytes (hdl 143)
D/com_broadcom_bt_service_pbap_PBAPService.cpp( 162): #### handlePbapEvent 0xad3f224a ####
D/com_broadcom_bt_service_pbap_PBAPService.cpp( 162): ### PBAP Opend ####
I/BluetoothPBAPService( 162): onPbapEnabled
D/BluetoothServiceManager( 162): ***startService(): Done starting service: bluetooth_pbs***
I/BluetoothAudioGateway.cpp( 264): Calling blz_wrapper_init
I/BTL_IFC ( 264): BTL_IFC_RegisterSubSystem: Register subsystem [AG]
I/BTL_IFC ( 264): btl_ifc_ctrl_connect: Connect control channel for subsystem [AG]
D/BTL_IFC_WRP( 264): wrp_sock_create: CTRL
D/BTL_IFC_WRP( 264): wrp_alloc_new_sock: wrp_alloc_new_sock sub 1
D/BTL_IFC_WRP( 264): wrp_sock_create: 52
D/BTL_IFC_WRP( 264): wrp_sock_connect: wrp_sock_connect brcm.bt.dtun:9000 (52)
D/BTL_IFC_WRP( 264): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
I/BTL-IFS ( 947): main_server_thread: [CTRL] Client connected (18)
I/BTL_IFC_WRP( 264): wrp_sock_connect: Connected. (52)
I/BTL_IFC ( 264): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_REGISTER_SUBSYS_REQ (AG) 0 pbytes (hdl 52)
I/BTL-IFS ( 947): attach_client: ######## Attached client subsystem AG (18) ########
D/BTL-IFS ( 947): send_registration_rsp: send_registration_rsp [0]
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 18)
D/BTL_IFC ( 264): BTL_IFC_RegisterSubSystem: add new ctrl fd to active set
I/BLZ_WRAPPER( 264): btl_if_socket: btl_if_socket :: fam 31, type 1, proto 3
D/BTL_IFC_WRP( 264): wrp_sock_create: AG
D/BTL_IFC_WRP( 264): wrp_alloc_new_sock: wrp_alloc_new_sock sub 3
D/BTL_IFC_WRP( 264): wrp_sock_create: 58
D/BLZ_WRAPPER( 264): btl_if_setsockopt: btl_if_setsockopt level:18, optname:3
I/BLZ_WRAPPER( 264): btl_if_setsockopt: configure rfcomm lm mode
D/BLZ_WRAPPER( 264): btl_if_bind: [btl_if_bind] : (58:-1), disc_pending 0, asnc 0, selct 0, flags 0
I/BLZ_WRAPPER( 264): btl_if_bind: btl_if_bind : [rfc] rc chan 10, bd[0:0]
D/BTL_IFC_WRP( 264): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9017
D/BTL_IFC_WRP( 264): wrp_sock_bind: wrp_sock_bind:socket_local_server_bind result:0 server_name:brcm.bt.dtun.9017
D/BTL_IFC_WRP( 264): wrp_sock_bind: socket_local_server_bind on port 9017
D/BTL_IFC ( 264): BTL_IFC_CtrlSend: BTL_IFC_CtrlSend
I/BTL_IFC ( 264): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_LISTEN_REQ (AG) 8 pbytes (hdl 52)
D/BLZ_WRAPPER( 264): btl_if_listen: [btl_if_listen] : (58:-1), disc_pending 0, asnc 0, selct 0, flags 0
D/BLZ_WRAPPER( 264): btl_if_listen: btl_if_listen : fd 58 [brcm.bt.dtun]
D/BTL_IFC_WRP( 264): wrp_sock_listen: wrp_sock_listen : fd 58 brcm.bt.dtun:9017
I/BLZ_WRAPPER( 264): btl_if_socket: btl_if_socket :: fam 31, type 1, proto 3
D/BTL_IFC_WRP( 264): wrp_sock_create: AG
D/BTL_IFC_WRP( 264): wrp_alloc_new_sock: wrp_alloc_new_sock sub 3
D/BTL_IFC_WRP( 264): wrp_sock_create: 59
D/BLZ_WRAPPER( 264): btl_if_setsockopt: btl_if_setsockopt level:18, optname:3
I/BLZ_WRAPPER( 264): btl_if_setsockopt: configure rfcomm lm mode
D/BLZ_WRAPPER( 264): btl_if_bind: [btl_if_bind] : (59:-1), disc_pending 0, asnc 0, selct 0, flags 0
I/BLZ_WRAPPER( 264): btl_if_bind: btl_if_bind : [rfc] rc chan 11, bd[0:0]
D/BTL_IFC_WRP( 264): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9018
D/BTL_IFC_WRP( 264): wrp_sock_bind: wrp_sock_bind:socket_local_server_bind result:0 server_name:brcm.bt.dtun.9018
D/BTL_IFC_WRP( 264): wrp_sock_bind: socket_local_server_bind on port 9018
D/BTL_IFC ( 264): BTL_IFC_CtrlSend: BTL_IFC_CtrlSend
I/BTL_IFC ( 264): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_LISTEN_REQ (AG) 8 pbytes (hdl 52)
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
D/BLZ_WRAPPER( 264): btl_if_listen: [btl_if_listen] : (59:-1), disc_pending 0, asnc 0, selct 0, flags 0
D/BLZ_WRAPPER( 264): btl_if_listen: btl_if_listen : fd 59 [brcm.bt.dtun]
D/BTL_IFC_WRP( 264): wrp_sock_listen: wrp_sock_listen : fd 59 brcm.bt.dtun:9018
I/BTL_IFC ( 264): BTL_IFC_RegisterSubSystem: Register subsystem [SCO]
I/BTL_IFC ( 264): btl_ifc_ctrl_connect: Connect control channel for subsystem [SCO]
D/BTL_IFC_WRP( 264): wrp_sock_create: CTRL
D/BTL_IFC_WRP( 264): wrp_alloc_new_sock: wrp_alloc_new_sock sub 1
D/BTL_IFC_WRP( 264): wrp_sock_create: 60
D/BTL_IFC_WRP( 264): wrp_sock_connect: wrp_sock_connect brcm.bt.dtun:9000 (60)
D/BTL_IFC_WRP( 264): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
I/BTL-IFS ( 947): main_server_thread: [CTRL] Client connected (19)
I/BTL_IFC_WRP( 264): wrp_sock_connect: Connected. (60)
I/BTL_IFC ( 264): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_REGISTER_SUBSYS_REQ (SCO) 0 pbytes (hdl 60)
I/BTL-IFS ( 947): attach_client: ######## Attached client subsystem SCO (19) ########
D/BTL-IFS ( 947): send_registration_rsp: send_registration_rsp [0]
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 19)
D/BTL_IFC ( 264): BTL_IFC_RegisterSubSystem: add new ctrl fd to active set
I/bluetooth_ScoSocket.cpp( 264): BTL_IFC_RegisterSubSystem SUB_SCO chdl:0x3c
I/bluetooth_ScoSocket.cpp( 264): New acceptor object 0x46cc1fa0
E/BluetoothOPP( 694): setOppsPath
D/BluetoothOPP.cpp( 694): setOppsPathNative
D/dtun_obexd( 959): setDefaultPath: default_path:/mnt/sdcard/downloads/bluetooth/
I/DTUN_CLNT( 959): Client calling DTUN_METHOD_END (id 34)
I/ ( 947): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
I/ ( 947): handle_method_call: handle_method_call :: received DTUN_METHOD_OP_SET_DEFAULT_PATH (id 34), len 256
I/BTL-BTAPP_OPS:( 947): btapp_op_set_default_path(/mnt/sdcard/downloads/bluetooth/)
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 6 pbytes (hdl 15)
D/dtun_obexd( 959): dtun_sig_op_set_default_path
E/BluetoothEventLoop.cpp( 162): event_filter: Received signal org.bluez.Btla:OpSetDefaultPath from /org/bluez/btlaobex0
I/BluetoothEventLoop.cpp( 162): OpSetDefaultPath signal received
I/BluetoothEventLoop.cpp( 162): OpSetDefaultPath signal received with status:1
E/BluetoothEventLoop( 162): >>>>>onOpSetDefaultPath<<<<<<
V/BtEventReceiver( 701): #### Received Bluetooth State Change Action ####
D/BluetoothServiceManager( 162): ServiceStateChanged: bluetooth_pbs, 2
D/com_broadcom_bt_service_pbap_PBAPService.cpp( 162): ### PBAP Opend ####
I/BluetoothPBAPService( 162): onPbapConnected
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
D/AutoSetting( 351): service - ***setupWizardIsCompleted: true
D/AutoSetting( 351): service - ***chkConnected, mbReqChecking:true,mbApplyAll:true

I/ActivityManager( 162): Starting activity: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.bluetooth.BluetoothSettings }
I/ActivityManager( 162): Displayed activity com.android.settings/.bluetooth.BluetoothSettings: 219 ms (total 219 ms)
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
I/CheckinService( 358): Preparing to send checkin request
I/EventLogService( 358): Accumulating logs since 1284461202732
I/CheckinTask( 358): Sending checkin request (542 bytes)
I/CheckinTask( 358): Checkin success: [url]https://android.clients.google.com/checkin[/url] (1 requests sent)
D/dalvikvm( 358): GC_FOR_MALLOC freed 3608 objects / 391344 bytes in 40ms
I/CheckinService( 358): From server: Intent { act=android.server.checkin.FOTA_CANCEL }
W/ActivityManager( 162): Permission Denial: broadcasting Intent { act=android.server.checkin.FOTA_CANCEL } from com.google.android.gsf (pid=358, uid=10016) re
uires android.permission.HTC_FOTA_UPDATE due to registered receiver BroadcastFilter{46f5c850 ReceiverList{46f5c7d8 162 system/1000 local:46f5c638}}
I/DTUN_CLNT( 959): Client calling DTUN_METHOD_DM_START_DISCOVERY (id 2)
I/ ( 947): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
I/ ( 947): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_START_DISCOVERY (id 2), len 0
D/BTL_CFG ( 947): +btl_cfg_getBDAFilterCond getting property service.brcm.bt.INQ_FILTER_BDA
E/BTL_CFG ( 947): WARNING : property_get failed (0)
D/BTL_CFG ( 947): -btl_cfg_getBDAFilterCond bdaddr=, nRet=0
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 4 pbytes (hdl 15)
I//system/bin/btld( 946): btapp_dm_DiscoverDevices()
W/BTLD ( 947): bta_dm_check_av:0
I/ADAPTER ( 959): Discovery session 0xe1b0 with :1.0 activated
D/ADAPTER ( 959): session_ref(0xe1b0): ref=1
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
D/DTUN_HCID_BZ4( 959): dtun_dm_sig_discovery_started()
E/BluetoothEventLoop.cpp( 162): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/959/hci0
V/BluetoothEventRedirector( 455): Received android.bluetooth.adapter.action.DISCOVERY_STARTED
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 16 pbytes (hdl 15)
I/DTUN_HCID_BZ4( 959): *** Found device [00:14:51:D0:96:F6] class = [2580] ***
I/DTUN_HCID_BZ4( 959):
E/BluetoothEventLoop.cpp( 162): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/959/hci0
D/BluetoothService( 162): updateDeviceServiceChannelCache(00:14:51:D0:96:F6)
V/BluetoothEventRedirector( 455): Received android.bluetooth.device.action.FOUND
I/dalvikvm( 455): Jit: resizing JitTable from 4096 to 8192
I//system/bin/btld( 946): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
W/BTLD ( 947): l2c_link_hci_conn_comp(222L):p_lcb->is_bonding:0
W/BTLD ( 947): info:x0
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 15)
I/BTL-IFS ( 947): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 4 pbytes (hdl 15)
D/DTUN_HCID_BZ4( 959): dtun_dm_sig_link_up()
I/DTUN_HCID_BZ4( 959): dtun_dm_sig_link_up: dummy_handle = 256
D/ADAPTER ( 959): adapter_get_device(00:14:51:D0:96:F6)
E/BluetoothEventLoop.cpp( 162): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/959/hci0/dev_00_14_51_D0_96_F6
D/DTUN_HCID_BZ4( 959): dtun_dm_sig_discovery_complete()
E/BluetoothEventLoop.cpp( 162): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/959/hci0
D/ADAPTER ( 959): session_unref(0xe1b0): ref=0

any ideas what's missing/wrong here??? maybe there is a service missing? could someone post the "service list" from a working bluetooth hid please?

/ # hcitool dev
Devices:
/ #
/ # hciattach -l
any 0x0000,0x0000
ericsson 0x0000,0x0000
digi 0x0000,0x0000
bcsp 0x0000,0x0000
xircom 0x0105,0x080a
csr 0x0000,0x0000
bboxes 0x0160,0x0002
swave 0x0000,0x0000
texas 0x0000,0x0000
texasalt 0x0000,0x0000
st 0x0000,0x0000
stlc2500 0x0000,0x0000
philips 0x0000,0x0000
bgb2xx 0x0000,0x0000
picocard 0x025e,0x1000
inventel 0x0000,0x0000
comone 0xffff,0x0101
tdk 0x0105,0x4254
socket 0x0104,0x0096
3com 0x0101,0x0041
bt2000c 0x022d,0x2000
zoom 0x0279,0x950b
sitecom 0x0279,0x950b
billionton0x0279,0x950b
bcm2035 0x0a5c,0x2035
/ #
/ # bttest enable
enable
= 0
/ #
"bttest enable" turns off the bluetooth

I think the main problem is that hcitools dev returns nothing.... And, like said here http://xdaforums.com/showthread.php?p=8146952#post8146952 Post#51 and #52... something is missing.

Noticed the Bluetooth HID Service is not included in /system/framework/services.jar ->classes.dex (is cyanogenmod there is a lot of BluetoothHID in it...)

Replacing services.jar leads to a non booting phone. Anybody knows how to add a service into the "service list"?

[Edit]

In /system/app there is a brcmbluetoothservices.apk package. I don't know for sure but I think it adds some bluetooth services. Maybe adding bluetooth HID is possible after all....