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

Commit 05300466 authored by Tyler Gunn's avatar Tyler Gunn Committed by Gerrit Code Review
Browse files

Merge "Change permission checks for endCall method."

parents 026c26f5 6281d9dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -771,7 +771,9 @@ public class TelecomServiceImpl {
            try {
                Log.startSession("TSI.eC");
                synchronized (mLock) {
                    enforceModifyPermission();
                    if (!enforceAnswerCallPermission(callingPackage, Binder.getCallingUid())) {
                        throw new SecurityException("requires ANSWER_PHONE_CALLS permission");
                    }

                    long token = Binder.clearCallingIdentity();
                    try {