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

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

Merge "Remove erroneous permission checks in ConnectionServiceWrapper."

parents f777c69d 2113ee7b
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -781,12 +781,6 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
                Session.Info sessionInfo) {
            Log.startSession(sessionInfo, "CSW.sA");

            if (mContext.checkCallingOrSelfPermission(MODIFY_PHONE_STATE)
                    != PackageManager.PERMISSION_GRANTED) {
                Log.w(this, "setAddress from caller without permission.");
                return;
            }

            long token = Binder.clearCallingIdentity();
            try {
                synchronized (mLock) {
@@ -872,12 +866,6 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
                        callingPhoneAccountHandle.getComponentName().getPackageName());
            }

            if (mContext.checkCallingOrSelfPermission(MODIFY_PHONE_STATE)
                    != PackageManager.PERMISSION_GRANTED) {
                Log.w(this, "addExistingConnection from caller without permission!");
                return;
            }

            long token = Binder.clearCallingIdentity();
            try {
                synchronized (mLock) {