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

Commit 7233feda authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Change permission checks for endCall method." into pi-dev

parents 592daffc e27a5312
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 {