commit | 44289caa11b5eda8e8d7db4c28cccd6066943c1b | [log] [tgz] |
---|---|---|
author | Tyler Gunn <tgunn@google.com> | Fri Feb 09 18:49:08 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Feb 09 18:49:08 2018 +0000 |
tree | 536984ce425daace580f4d0abdca1bc7476a8299 | |
parent | 2d46e07e48a6892c79370b6133dafccc85439e86 [diff] | |
parent | c865881999723dc602f3c2fd46d453508192b54c [diff] |
Merge "Pass calling package for invocations of endCall API."
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 7e89745..c848f77 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -1301,7 +1301,7 @@ public boolean endCall() { try { if (isServiceConnected()) { - return getTelecomService().endCall(); + return getTelecomService().endCall(mContext.getPackageName()); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#endCall", e);
diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl index 3460754..b4e7d56 100644 --- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl +++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl
@@ -187,7 +187,7 @@ /** * @see TelecomServiceImpl#endCall */ - boolean endCall(); + boolean endCall(String callingPackage); /** * @see TelecomServiceImpl#acceptRingingCall