[Galaxy Note 3 Android Development] titan-computer:
i've found the problem but i don't know how it will be fixed.

this rom is ok with BT Calling and BLE service but A2DP service is not properly working.

A2DP is a service for playing music and streams and its different from phone calling option. you can check/uncheck these service on your bluetooth device (headset/speaker) which connected to your device.

if you check just "phone calls" , there will be no problem on your bluetooth and everything just fine.

but if you check Media audio , the A2DP service will be activated and after few moment of playing music or browsing on instagram with sounds, this service will crashes and bluetooth app will be closed immidiately and then its restart to connect your headset/speaker again and again and...

some crash codes :

10-11 15:59:54.946 W/wificond(504): Copy constructor is only used for unit tests
10-11 15:59:54.946 W/wificond(504): Failed to get NL80211_ATTR_EXT_FEATURES
10-11 15:59:54.947 W/wificond(504): Copy constructor is only used for unit tests
10-11 15:59:54.947 W/wificond(504): Failed to get NL80211_ATTR_EXT_FEATURES
10-11 15:59:54.948 W/wificond(504): Copy constructor is only used for unit tests
10-11 15:59:54.948 W/wificond(504): Failed to get NL80211_ATTR_EXT_FEATURES
10-11 15:59:55.150 I/Telecom (733): BluetoothPhoneService: queryPhoneState: BPSI.qPS@EFA
10-11 15:59:55.150 I/Telecom (733): BluetoothPhoneService: updateHeadsetWithCallState numActive 0, numHeld 0, callState 6, ringing number ***, ringing type 128: BPSI.qPS@EFA
10-11 15:59:55.159 I/Telecom (733): BluetoothRouteManager: Message received: NEW_DEVICE_CONNECTED.: BSR.oR->BRM.pM_1@EFE
10-11 15:59:55.159 I/Telecom (733): BluetoothStateReceiver: Device 1C:48:F9:68:32:6F changed state to 2: BSR.oR@EFE
10-11 15:59:55.163 I/Telecom (733): CallAudioRouteStateMachine: Message received: BLUETOOTH_DEVICE_LIST_CHANGED=7, arg1=0: BSR.oR->CARSM.pM_BLUETOOTH_DEVICE_LIST_CHANGED@EFE
10-11 15:59:55.164 I/Telecom (733): Logging.Events: Non-call EVENT: AUDIO_ROUTE, Bluetooth device list changed: BSR.oR->CARSM.pM_BLUETOOTH_DEVICE_LIST_CHANGED@EFE
10-11 15:59:55.164 I/Telecom (733): QuiescentEarpieceRoute: Processing message BLUETOOTH_DEVICE_LIST_CHANGED: BSR.oR->CARSM.pM_BLUETOOTH_DEVICE_LIST_CHANGED@EFE
10-11 15:59:55.260 I/Telecom (733): BluetoothStateReceiver: Device 1C:48:F9:68:32:6F is now the preferred HFP device: BSR.oR@EFI
10-11 15:59:55.508 I/Telecom (733): BluetoothPhoneService: listcurrentCalls: BPSI.lCC@EFM
10-11 15:59:55.556 I/ActivityManager(733): Start proc 21405:com.enflick.android.TextNow/u0a395 for broadcast com.enflick.android.TextNow/io.presage.core.receiver.BluetoothReceiver
10-11 15:59:56.533 V/SettingsProvider(733): Notifying for 0: content://settings/global/bluetooth_a2dp_sink_priority_1C:48:F9:68:32:6F
10-11 15:59:56.534 V/SettingsProvider(733): Notifying for 0: content://settings/global/bluetooth_headset_priority_1C:48:F9:68:32:6F
10-11 15:59:56.536 V/SettingsProvider(733): Notifying for 0: content://settings/global/bluetooth_a2dp_sink_priority_1C:48:F9:68:32:6F
10-11 15:59:56.540 V/SettingsProvider(733): Notifying for 0: content://settings/global/bluetooth_headset_priority_1C:48:F9:68:32:6F
10-11 15:59:57.547 W/ActivityManager(733): Unable to start service Intent { cmp=com.accuweather.paid.android/.SdlRouterService (has extras) } U=0: not found
10-11 15:59:57.840 W/BroadcastQueue(733): Unable to launch app com.sec.android.app.shealth/10330 for broadcast Intent { act=android.bluetooth.device.action.ACL_CONNECTED flg=0x5000010 (has extras) }: process is bad
10-11 15:59:58.393 E/NotificationService(733): Suppressing notification from package by user request.
10-11 15:59:58.645 W/ActivityManager(733): Background start not allowed: service Intent { cmp=com.enflick.android.TextNow/com.leanplum.LeanplumPushRegistrationService } to com.enflick.android.TextNow/com.leanplum.LeanplumPushRegistrationService from pid=21405 uid=10395 pkg=com.enflick.android.TextNow startFg?=false
10-11 15:59:58.904 W/BroadcastQueue(733): Unable to launch app com.sec.android.app.shealth/10330 for broadcast Intent { act=android.bluetooth.device.action.ACL_CONNECTED flg=0x5000010 (has extras) }: process is bad
10-11 15:59:58.911 W/BroadcastQueue(733): Background execution not allowed: receiving Intent { act=android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
10-11 15:59:59.246 W/Adjust-pool-17-(21509): type=1300 audit(0.0:2312): arch=40000028 syscall=322 per=800008 success=no exit=-13 a0=ffffff9c a1=973d53c3 a2=20000 a3=0 items=1 ppid=437 ppcomm=main auid=4294967295 uid=10395 gid=10395 euid=10395 suid=10395 fsuid=10395 egid=10395 sgid=10395 fsgid=10395 tty=(none) ses=4294967295 exe="/system/bin/app_process32" subj=u:r:untrusted_app:s0:c139,c257,c512,c768 key=(null)
10-11 15:59:59.246 W/auditd (397): type=1302 audit(0.0:2312): item=0 name="/proc/tty/drivers" inode=4026531851 dev=00:03 mode=0100444 ouid=0 ogid=0 rdev=00:00 obj=u:object_r:proc_tty_drivers:s0

10-11 16:02:51.971 V/chatty (20923): uid=1002(bluetooth) expire 22 lines
10-11 16:02:51.972 V/chatty (19937): uid=10241(com.instagram.android) expire 6 lines
10-11 16:02:51.972 V/chatty (733): uid=1000(system) Binder:733_1 expire 1 line
10-11 16:02:51.974 V/chatty (20923): uid=1002(bluetooth) expire 4 lines
10-11 16:02:51.975 V/chatty (20923): uid=1002(bluetooth) expire 6 lines
10-11 16:02:52.128 I/btif_av (20923): btif_report_audio_state: peer_address=1c:48:f9:68:32:6f state=2
10-11 16:02:52.128 I/btif_av (20923): virtual bool BtifAvStateMachine::StateOpened::ProcessEvent(uint32_t, void *): Peer 1c:48:f9:68:32:6f : event=BTA_AV_START_EVT(0x4) status=0 suspending=0 initiator=1 flags=0x4(PENDING_START)
10-11 16:02:52.128 I/bt_bta_av(20923): bta_av_link_role_ok: peer 1c:48:f9:68:32:6f hndl:0x41 role:0 conn_audio:0x1 bits:1 features:0x865b
10-11 16:02:52.128 I/bt_btif_a2dp(20923): btif_a2dp_on_started: ## ON A2DP STARTED ## peer 1c:48:f9:68:32:6f pending_start:true p_av_start:0xb0620548
10-11 16:02:52.128 I/bt_btif_a2dp(20923): btif_a2dp_on_started: peer 1c:48:f9:68:32:6f pending_start:true status:0 suspending:false initiator:true
10-11 16:02:52.128 I/bt_btif_a2dp_source(20923): btif_a2dp_source_start_audio_req: state=STATE_RUNNING
10-11 16:02:52.128 V/chatty (19620): uid=1041(audioserver) expire 2 lines
10-11 16:02:52.128 W/bt_btif (20923): bta_dm_rm_cback:2, status:0
10-11 16:02:52.128 W/bt_btif (20923): bta_dm_rm_cback:2, status:7
10-11 16:02:52.128 W/bt_btif (20923): btif_a2dp_command_ack: ## a2dp ack : A2DP_CTRL_CMD_START, status 0 ##
10-11 16:02:52.128 W/bt_btif (20923): btif_a2dp_data_cb: BTIF MEDIA (A2DP-DATA) EVENT UIPC_OPEN_EVT
10-11 16:02:52.129 D/A2dpNativeInterface(20923): onAudioStateChanged: A2dpStackEvent {type:EVENT_TYPE_AUDIO_STATE_CHANGED, device:1C:48:F9:68:32:6F, value1:STARTED}
10-11 16:02:52.129 D/A2dpStateMachine(20923): handleMessage: E msg.what=101
10-11 16:02:52.129 D/a2dp_sbc_encoder(20923): a2dp_sbc_feeding_reset: PCM bytes per tick 3528
10-11 16:02:52.129 I/BluetoothA2dpServiceJni(20923): bta2dp_audio_state_callback
10-11 16:02:52.129 I/bt_btif_a2dp_source(20923): btif_a2dp_source_audio_tx_start_event: media_alarm is not running, streaming false state=STATE_RUNNING
10-11 16:02:52.130 D/A2dpStateMachine(20923): A2DP Playing state : device: 1C:48:F9:68:32:6F State:NOT_PLAYING->PLAYING
10-11 16:02:52.130 D/A2dpStateMachine(20923): Connected process message(1C:48:F9:68:32:6F): STACK_EVENT
10-11 16:02:52.130 D/A2dpStateMachine(20923): Connected: stack event: A2dpStackEvent {type:EVENT_TYPE_AUDIO_STATE_CHANGED, device:1C:48:F9:68:32:6F, value1:STARTED}
10-11 16:02:52.130 D/A2dpStateMachine(20923): handleMessage: X
10-11 16:02:52.130 D/A2dpStateMachine(20923): processMsg: Connected
10-11 16:02:52.130 I/A2dpStateMachine(20923): Connected: started playing: 1C:48:F9:68:32:6F

10-11 16:04:41.696 I/btif_av (20923): virtual bool BtifAvStateMachine::StateStarted::ProcessEvent(uint32_t, void *): Peer 1c:48:f9:68:32:6f : event=BTIF_AV_SUSPEND_STREAM_REQ_EVT(0x1d) flags=0x0(None)
10-11 16:04:41.696 I/bt_a2dp_hw(19620): suspend_audio_datapath: state 1
10-11 16:04:41.696 I/bt_bta_av(20923): BTA_AvStop: handle=65 suspend=true
10-11 16:04:41.696 I/bt_btif_a2dp_source(20923): btif_a2dp_source_set_tx_flush: enable=true state=STATE_RUNNING
10-11 16:04:41.696 W/bt_btif (20923): bta_dm_rm_cback:2, status:6
10-11 16:04:41.696 W/bt_btif (20923): btif_a2dp_recv_ctrl_data: a2dp-ctrl-cmd : A2DP_CTRL_CMD_SUSPEND
10-11 16:04:41.696 W/bt_btif (20923): btif_a2dp_recv_ctrl_data: a2dp-ctrl-cmd : A2DP_CTRL_CMD_SUSPEND DONE
10-11 16:04:41.759 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 4, 0
10-11 16:04:41.759 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.759 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.778 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.778 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.778 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.788 W/a2dp_sbc_encoder(20923): a2dp_sbc_get_num_frame_iteration: limiting frames to be sent from 18 to 14
10-11 16:04:41.799 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.799 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.799 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.809 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.809 W/a2dp_sbc_encoder(20923): a2dp_sbc_get_num_frame_iteration: limiting frames to be sent from 25 to 14
10-11 16:04:41.809 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.809 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.819 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.819 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.819 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.829 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.829 W/a2dp_sbc_encoder(20923): a2dp_sbc_get_num_frame_iteration: limiting frames to be sent from 32 to 14
10-11 16:04:41.829 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.829 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.834 I/BluetoothA2dpServiceJni(20923): bta2dp_audio_state_callback
10-11 16:04:41.834 I/btif_av (20923): btif_report_audio_state: peer_address=1c:48:f9:68:32:6f state=1
10-11 16:04:41.834 I/btif_av (20923): virtual bool BtifAvStateMachine::StateStarted::ProcessEvent(uint32_t, void *): Peer 1c:48:f9:68:32:6f : event=BTA_AV_SUSPEND_EVT(0xf) status=0 initiator=1 flags=0x1(LOCAL_SUSPEND_PENDING)
10-11 16:04:41.834 I/bt_btif_a2dp(20923): btif_a2dp_on_suspended: ## ON A2DP SUSPENDED ## p_av_suspend=0xb0620a20
10-11 16:04:41.834 I/bt_btif_a2dp_source(20923): btif_a2dp_source_on_suspended: state=STATE_RUNNING
10-11 16:04:41.834 I/bt_btif_a2dp_source(20923): btif_a2dp_source_stop_audio_req: state=STATE_RUNNING
10-11 16:04:41.834 W/bt_btif (20923): bta_dm_rm_cback:2, status:6
10-11 16:04:41.835 D/A2dpNativeInterface(20923): onAudioStateChanged: A2dpStackEvent {type:EVENT_TYPE_AUDIO_STATE_CHANGED, device:1C:48:F9:68:32:6F, value1:STOPPED}
10-11 16:04:41.835 D/A2dpStateMachine(20923): handleMessage: E msg.what=101
10-11 16:04:41.835 D/A2dpStateMachine(20923): processMsg: Connected
10-11 16:04:41.836 D/A2dpStateMachine(20923): A2DP Playing state : device: 1C:48:F9:68:32:6F State:PLAYING->NOT_PLAYING
10-11 16:04:41.836 D/A2dpStateMachine(20923): Connected process message(1C:48:F9:68:32:6F): STACK_EVENT
10-11 16:04:41.836 D/A2dpStateMachine(20923): Connected: stack event: A2dpStackEvent {type:EVENT_TYPE_AUDIO_STATE_CHANGED, device:1C:48:F9:68:32:6F, value1:STOPPED}
10-11 16:04:41.836 I/A2dpStateMachine(20923): Connected: stopped playing: 1C:48:F9:68:32:6F
10-11 16:04:41.836 I/Avrcp (20923): Skipping update due to invalid playback state
10-11 16:04:41.837 E/bt_btif (20923): register_notification_rsp: Avrcp device is not connected, handle: 0x0
10-11 16:04:41.838 D/A2dpStateMachine(20923): handleMessage: X
10-11 16:04:41.839 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.839 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.839 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.849 W/bt_btif (20923): poll timeout (10 ms)
10-11 16:04:41.849 W/bt_btif_a2dp_source(20923): btif_a2dp_source_read_callback: UNDERFLOW: ONLY READ 0 BYTES OUT OF 512
10-11 16:04:41.850 I/bt_btif_a2dp_source(20923): btif_a2dp_source_audio_tx_stop_event: media_alarm is running, streaming true state=STATE_RUNNING
10-11 16:04:41.850 W/a2dp_sbc_encoder(20923): a2dp_sbc_encode_frames: underflow 7, 0
10-11 16:04:41.860 D/a2dp_sbc_encoder(20923): a2dp_sbc_feeding_reset: PCM bytes per tick 3528
10-11 16:04:41.860 E/bt_btif (20923): btif_a2dp_command_ack: warning : no command pending, ignore ack
10-11 16:04:41.860 E/bt_btif_a2dp_source(20923): btif_a2dp_source_audio_handle_timer: ERROR Media task Scheduled after Suspend
10-11 16:04:41.860 I/bt_a2dp_hw(19620): skt_disconnect: fd 39
10-11 16:04:41.860 W/bt_btif (20923): btif_a2dp_command_ack: ## a2dp ack : A2DP_CTRL_CMD_NONE, status 0 ##
10-11 16:04:41.860 W/bt_btif (20923): btif_a2dp_command_ack: ## a2dp ack : A2DP_CTRL_CMD_SUSPEND, status 0 ##
10-11 16:04:41.860 W/bt_btif (20923): btif_a2dp_data_cb: BTIF MEDIA (A2DP-DATA) EVENT UIPC_CLOSE_EVT