commit | 39828d2e841a013d22fc9bda053c85f8ee51da40 | [log] [tgz] |
---|---|---|
author | Grace Jia <xiaotonj@google.com> | Fri Aug 04 04:42:12 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Aug 04 04:42:12 2023 +0000 |
tree | 2e2bfba9df442311a60f4717bd54d93d12740160 | |
parent | a33d2395b7f29b7406967bb1e734153103ad5859 [diff] | |
parent | d24ae916eff2660481364a942d0330a870e70c11 [diff] |
Fix vulnerability in CallRedirectionService. am: 29b52e3cd0 am: 1637f8e358 am: 72e92682bf am: a55cc01aeb am: d24ae916ef Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/services/Telecomm/+/24151559 Change-Id: Ia04e6a6f6acca7142d1e7df97928d5d7da322b9f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java b/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java index 226382b..02debcd 100644 --- a/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java +++ b/src/com/android/server/telecom/callredirection/CallRedirectionProcessor.java
@@ -175,6 +175,20 @@ Log.endSession(); } } + + @Override + public void onBindingDied(ComponentName componentName) { + // Make sure we unbind the service if binding died to avoid background stating + // activity leaks + Log.startSession("CRSC.oBD"); + try { + synchronized (mTelecomLock) { + finishCallRedirection(); + } + } finally { + Log.endSession(); + } + } } private class CallRedirectionAdapter extends ICallRedirectionAdapter.Stub {