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

Commit 0ceca794 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Remove check that phone or carrier app can call SmsComplete callback

In case of binding failure for example, it is called on the binder
thread. Moreover, there is no real scenario that it can be called
by anyone else, it was added as a safely check in the original CL
ag/631490

Test: manual
Bug: 172839671
Change-Id: I4277456bf574aec89c32759b8331789612e1eb86
parent 155a9824
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -468,7 +468,6 @@ public abstract class SMSDispatcher extends Handler {
         */
        @Override
        public void onSendSmsComplete(int result, int messageRef) {
            checkCallerIsPhoneOrCarrierApp();
            final long identity = Binder.clearCallingIdentity();
            try {
                mSmsSender.mCarrierMessagingServiceWrapper.disconnect();
@@ -628,7 +627,6 @@ public abstract class SMSDispatcher extends Handler {
                return;
            }

            checkCallerIsPhoneOrCarrierApp();
            final long identity = Binder.clearCallingIdentity();
            try {
                processSendMultipartSmsResponse(mSmsSender.mTrackers, result, messageRefs);