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

Skip to content
Commit 0f58671c authored by Eric Laurent's avatar Eric Laurent Committed by Andy Hung
Browse files

mediautils::SetviceSingleton : fix missing onServiceDied notification

If after the native service dies, an explicit request to get the service
happens before the death notification has been processed, the client
onServiceDied callback will never be called.
In the case of audioservice, this prevents proper reinitialization of
audio policy manager state.

Fixed by forcing an onServiceDied callback on previous service instance
in the RequestServiceManagerCallback if the new service is created with
a non null previous service instance.

Bug: 378032953
Test: kill native audioserver and monitor proper execution of audio
policy manager initialization
Flag: EXEMPT bug fix

Change-Id: Ida06566f5275587b9ce0c6cf1c18cf2a538dafbd
parent 2e94e096
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