Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7808aea8 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Android Build Coastguard Worker
Browse files

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
parent 0ec93ed2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment