From 6caf1e22d07342eb4b7adb6bd7f89356673f5a10 Mon Sep 17 00:00:00 2001 From: Grace Jia Date: Mon, 10 May 2021 23:17:36 -0700 Subject: [PATCH] Add error log of addConnetionService in RemoteConnectionManager. There's UnsupportedOperationException in RemoteConnectionManager which means sometimes we can't find corresponding ConnectionService and we can't find the root cause of this. Try to print more log if there's RemoteException when we add ConnectionService. Bug: 175466894 Test: Manual test Change-Id: Ia34cf8777c17c3eb45476018125d9b92db391e28 --- telecomm/java/android/telecom/RemoteConnectionManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/telecomm/java/android/telecom/RemoteConnectionManager.java b/telecomm/java/android/telecom/RemoteConnectionManager.java index f3c7bd83ed4b5..fbbfefd9d00e1 100644 --- a/telecomm/java/android/telecom/RemoteConnectionManager.java +++ b/telecomm/java/android/telecom/RemoteConnectionManager.java @@ -45,7 +45,10 @@ public class RemoteConnectionManager { outgoingConnectionServiceRpc, mOurConnectionServiceImpl); mRemoteConnectionServices.put(componentName, remoteConnectionService); - } catch (RemoteException ignored) { + } catch (RemoteException e) { + Log.w(RemoteConnectionManager.this, + "error when addConnectionService of %s: %s", componentName, + e.toString()); } } }