Fix AVRC RemoveRecord
Because bad handle was passed, SDP records were not removed on stack shutdown. If bluetooth went into BLE_ON state, instead of full OFF, new records were created when stack started. This resulted in accumulation of SDP records for AVRCP. After 3-4 restarts, the SDP results for AVRCP became so big some earbuds were unable to discover them fully, and AVRCP stopped working. Repro steps: - make sure "Bluetooth scanning" in location services is "On" - restart bluetooth while playing music on BT headset couple times - try using AVRCP controls, i.e play/pause in logcat, one can observe growing value of "p_ccb->list_len = " after each Bluetooth restart. Test: mma -j32; Bug: 370488175 Bug: 341353017 Flag: com.android.bluetooth.flags.avrcp_sdp_records (cherry picked from https://android-review.googlesource.com/q/commit:7711b78b862b15dcc25d8838997dec773ff18902) Merged-In: I79041f5db1c884418b1abda9540872a0a66af303 Change-Id: I79041f5db1c884418b1abda9540872a0a66af303
Loading
Please register or sign in to comment