Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4158d592 authored by Alvin Dey's avatar Alvin Dey
Browse files

IMS : Fix the user handle being passed to Telecom

- Currently during SDK API calls for start conference,
  we are clearing the Binder identity and send the user handle
  to CallsManager, due to which Guest restriction are not
  applied properly.

- To fix this we need to the userhandle before clearing the
  identity and then invoke CallsManager API.

Change-Id: I4f74d46154b41b6e082af0869efdcceaaafb1f7f
Bug: 326376472
parent 411bef86
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
                }