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

Commit b69d9799 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

Change-Id: I7b2c7b8280e3cc954a52f97990a626beb24e531d
parents 7fcd9995 ecdd22b5
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 {