OSDN Git Service

Handle onBindingDied in notification manager
authorRyan Lothian <rjlothian@google.com>
Mon, 4 Dec 2017 16:56:58 +0000 (11:56 -0500)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 9 Feb 2018 21:28:03 +0000 (21:28 +0000)
commit0748edce4a8741611d0d856534ec8a5abeb920e5
treeb4cbd3d1f5bef0f1b30a644d5e33278d12116569
parentfef1a3e7ca5ab18ede42c5729661459fcd691e09
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)
(cherry picked from commit 1936097afc3188ed5f2bb4e7211bb404364eeb38)
services/core/java/com/android/server/notification/ManagedServices.java