William Escande 01d65e01d0 Fix deathRecipient of BluetoothAudioProvider
The "provider" is managed with a shared_ptr but we do not hold it and
instead are giving the raw inner pointer as binderDiedCallbackAidl.
This can randomly generate crash as the provider may be freed outside of
this code.

Replacing the provider with a context that we can manually allocate and
deallocate.
Setup AIBinder_DeathRecipient_setOnUnlinked to clean the data allocated

Bug: 245009140
Test: m android.hardware.bluetooth.audio-impl and start / stop session +
      manually kill bluetooth process during audio play
(cherry picked from https://android-review.googlesource.com/q/commit:f3faab081a543ad43e86eec6d03cd7835ef5c712)
Merged-In: I0c14c062a8bde7e532ff02f01991d66da33ec569
Change-Id: I0c14c062a8bde7e532ff02f01991d66da33ec569
2023-05-15 18:47:00 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-21 01:51:49 +00:00
2023-05-11 16:30:21 -04:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-05-04 22:35:47 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
2023-04-07 23:41:20 +00:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%