From e3c5af48076ee2794b5e7937ea1690309a8c7ec7 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Wed, 2 May 2018 16:58:44 -0700 Subject: [PATCH] Added more logging around failures in overview connecting to launcher Added onBindingDied, onNullBinding and logging if the user has not been setup or if launcher component is disabled. Also added a defered callback to reconnect after a couple of seconds even if binder says its bound but has the possiblity of the service not connected. Change-Id: I59919a66dea3bc61c014759ba03f1949abc055bd Fixes: 78681054 Test: manual --- .../systemui/OverviewProxyService.java | 62 ++++++++++++++----- 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 282a8f1b7cbb1..9307c224ef270 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -66,6 +66,7 @@ public class OverviewProxyService implements CallbackController { + Log.w(TAG_OPS, "Binder supposed established connection but actual connection to service " + + "timed out, trying again"); + internalConnectToCurrentUser(); + }; + private final BroadcastReceiver mLauncherStateChangedReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { @@ -181,22 +188,33 @@ public class OverviewProxyService implements CallbackController