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, 7 Feb 2018 19:24:44 +0000 (19:24 +0000)
commit1936097afc3188ed5f2bb4e7211bb404364eeb38
tree0c3ea29f47262bd81dece0c0cf4c94bf02b64246
parentca589a064e34402ff2878cf4b193c2d9a85d3b15
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
(cherry picked from commit 4a86a51b672617b02994fc812e4f96342daf424e)
services/core/java/com/android/server/notification/ManagedServices.java