Add onBindingDied callback for service connection.
As seen in b/428217291#comment4. When a ServiceConnection is in a "DEAD" state, any subsequent calls to bindService() using that same ServiceConnection instance will not establish a new connection to the service. To re-establish a connection to the service after a ServiceConnection has entered the "DEAD" state, we need to first unbind the dead connection by calling unbindService(). After unbinding, we can then successfully call bindService() again. Bug: 424695730 Test: locally verified Flag: EXEMPT bugfix Change-Id: Ifcc081821f26d181038a9b8b2158dfadae4223af
Loading
Please register or sign in to comment