OSDN Git Service

Handle onBindingDied in notification manager
authorRyan Lothian <rjlothian@google.com>
Mon, 4 Dec 2017 16:56:58 +0000 (11:56 -0500)
committerRyan Lothian <rjlothian@google.com>
Wed, 6 Dec 2017 22:03:46 +0000 (17:03 -0500)
commit4a86a51b672617b02994fc812e4f96342daf424e
tree76f32aa77b49002ba95871f00e20b17361af66d1
parentada2f4dcf8b481e9302d2fb597af9cde5f100d26
Handle onBindingDied in notification manager

On Android, if the process containing the service being bound to
crashes before the bind succeeds, the app doing the binding won't
get a success or failure callback.

When that happens in this code, this leaves notif. manager thinking
that a binding is in progress, so it never attempts to rebind until
the device is rebooted.

Bug: 69064494
Test: manual, crashed listener on proc start, verified not unbound forever
Change-Id: Id2082744208e21a709d9453365f282449a2e9407
services/core/java/com/android/server/notification/ManagedServices.java