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

Skip to content
Commit 067cd6c9 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi
Browse files

Fix APS death notification

Our death recipient object was being kept alive only by the reference
held by the remote process, the one we want the death notifications
from. When it dies, we have a race condition between the death call
and the listener being garbage collected.

Furthermore, since the global APS reference may get replaced by a new
one as part of clearAudioConfigCache(), we keep the old reference
around, or else our death listener becomes invalidated silently.

(cherry picked from commit d9f8283b)
(cherry picked from commit a46b6d3e)

Bug: 165780067
Test: Manual verification of sound trigger recovery after killing
      audioserver multiple times, while generating touch sounds.
Merged-In: If24c59ec3e3d01f418fbf575b8cc32ae0ba7fa2e
Change-Id: If24c59ec3e3d01f418fbf575b8cc32ae0ba7fa2e
parent 7eee290c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment