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

Commit ecdd22b5 authored by Amit Mahajan's avatar Amit Mahajan Committed by Gerrit Code Review
Browse files

Merge "Clear calling identity before calling internal APIs"

parents c38557b3 54eca42d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -156,7 +156,13 @@ public class SmsController extends ISmsImplBase {
            return;
        }

        SubscriptionInfo info = getSubscriptionInfo(subId);
        long token = Binder.clearCallingIdentity();
        SubscriptionInfo info;
        try {
            info = getSubscriptionInfo(subId);
        } finally {
            Binder.restoreCallingIdentity(token);
        }
        if (isBluetoothSubscription(info)) {
            sendBluetoothText(info, destAddr, text, sentIntent, deliveryIntent);
        } else {