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

Commit c6e01959 authored by Tyler Gunn's avatar Tyler Gunn Committed by Automerger Merge Worker
Browse files

Merge "Remove erroneous permission checks in ConnectionServiceWrapper." into rvc-dev am: 34f3ae1d

Change-Id: I2dcec45deef5feb21e26345a42c5c689d35c3ea6
parents 5f82bbf3 34f3ae1d
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -778,12 +778,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) {
@@ -869,12 +863,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) {