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
1 file changed