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

Commit ceaea2a2 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Clear calling identity before calling internal APIs" am: ecdd22b5

am: b69d9799

Change-Id: Ia3b029e3a43f840ac7edfac6cf5698df14efb0be
parents d8608fe8 b69d9799
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 {