[Samsung Galaxy S 5 Unified Development] DragonriderX:
More Bugs found

After using the ROM for more than a week now, more bugs start to pop up from my daily use, these are:

Bluetooth Bug

Bluetooth audio streaming appears broken

Contact syncing occasionally doesn't work via bluetooth

Lockscreen Bug

Ocasionally, the lockscreen doesn't appear on device wakeup (and is bypassed completely o.O)

Bluetooth Bug in detail

So with the bluetooth, on stock samsung roms, I had no trouble with Bluetooth audio streaming with my car or my headphones, but on this ROM, it appears to be stuttering or plays no sound at all. In addition to this, contact syncing with my car sometimes fails so caller ID does not show when a phone call comes through on my head unit. Logs have been provided.

Noteable log message as follows (when the audio stutter occurs)

11-24 14:44:54.310 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.310 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.310 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.310 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.328 14739 14749 I art : Background partial concurrent mark sweep GC freed 56644(3MB) AllocSpace objects, 13(272KB) LOS objects, 33% free, 31MB/47MB, paused 13.768ms total 213.367ms

11-24 14:44:54.338 14739 19629 W System : ClassLoader referenced unknown path: /system/framework/tcmclient.jar

11-24 14:44:54.370 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.370 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.370 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.370 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.370 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.390 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.410 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.430 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.430 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.430 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.430 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.430 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.430 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.430 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.430 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.450 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.470 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.470 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.470 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.470 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.470 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.470 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.470 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.470 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.490 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.510 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.530 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.530 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.531 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.531 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.531 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.531 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.531 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.531 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.550 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.552 24603 24637 E Surface : getSlotFromBufferLocked: unknown buffer: 0x95fb2120

11-24 14:44:54.570 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.590 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.590 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.590 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.590 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.590 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.590 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.590 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.590 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.610 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.630 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.630 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.650 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.650 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.650 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.650 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.650 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.650 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.650 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.670 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.690 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.690 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.710 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.710 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.710 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.710 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.710 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.710 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.710 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.730 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.750 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.750 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.770 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.770 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.770 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.770 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.770 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.790 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.790 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.810 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.830 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.830 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.830 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.830 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.830 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.850 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.850 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.850 16763 16796 E bt_btif : bta_av_proc_stream_evt: p_data is null

11-24 14:44:54.890 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.890 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.890 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.890 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.890 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.910 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.910 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.930 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.950 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.950 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

11-24 14:44:54.950 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.950 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.950 14586 18864 I bt_a2dp_hw: out_get_format: format 0x1

11-24 14:44:54.950 14586 18864 I bt_a2dp_hw: out_get_channels: channels 0x3

11-24 14:44:54.970 16763 16818 W bt_btif : btif_media_aa_prep_2_send() - TX queue buffer count 6/5

Notable Log messages (when contact sync fails):

11-24 14:41:49.012 16763 16789 W bt_hci_packet_fragmenter: reassemble_and_dispatch complete l2cap packet received:l2cap full length 82 and hci length 90.

11-24 14:41:49.013 16763 18866 I BluetoothPbapObexServer: maxListCount=80 listStartOffset=0 searchValue= searchAttr= needTag=2 vcard21=true order=

11-24 14:41:49.038 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.039 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.040 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.041 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.042 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.042 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.043 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.044 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.045 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.046 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.047 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.048 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.048 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.049 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.050 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.051 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.052 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.053 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.054 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.054 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.055 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.056 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.057 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.057 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.058 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.059 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.060 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.061 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.062 16763 18866 I vCard : Use the charset "UTF-8" for export.

11-24 14:41:49.063 16763 16796 W bt_l2cap: L2CA_SetDesireRole() new:x0, disallow_switch:0

11-24 14:41:49.068 16763 16815 E Avrcp : **MESSAGE_PLAYSTATUS_TIMEOUT: Addr:-HIDDEN- Msg: 0

Notable error messages when audio doesn't play at all:

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

11-24 14:22:14.964 16763 16784 E bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

What I was doing when i captured these logs:

Turn on car, head unit auto connect to phone via BT, open spotify, play music, Drive for 30 minutes.

Lockscreen Bug

As for the lockscreen bug, it's hard for me to log since it happens so intermittently but it seems to occur when the device goes to sleep after a 2 minute timeout -- This results in the lock screen never showing and the device never locking resulting in a surprise when the phone is woken with the power button to see that it didn't ask for a security passcode. -- Will try to get logs if i am lucky enough to reproduce this reliably.

Logs are linked here:

https://www.dropbox.com/sh/hbx061xm37hq7ca/AADb-l_c-IcUG2OF6Q1VhxkFa?dl=0

Since they are too large to be attached