summaryrefslogtreecommitdiff
path: root/src/com/android/server/telecom/TelecomServiceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/server/telecom/TelecomServiceImpl.java')
-rw-r--r--src/com/android/server/telecom/TelecomServiceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/server/telecom/TelecomServiceImpl.java b/src/com/android/server/telecom/TelecomServiceImpl.java
index 1dd68c91e..bd2a97555 100644
--- a/src/com/android/server/telecom/TelecomServiceImpl.java
+++ b/src/com/android/server/telecom/TelecomServiceImpl.java
@@ -1749,11 +1749,12 @@ public class TelecomServiceImpl {
throw new SecurityException("Package " + callingPackage + " is not allowed"
+ " to start conference call");
}
-
+ // Binder is clearing the identity, so we need to keep the store the handle
+ UserHandle currentUserHandle = Binder.getCallingUserHandle();
long token = Binder.clearCallingIdentity();
try {
mCallsManager.startConference(participants, extras, callingPackage,
- Binder.getCallingUserHandle());
+ currentUserHandle);
} finally {
Binder.restoreCallingIdentity(token);
}