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

Commit c8a826ad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check for modify phone state perimission" into sc-v2-dev am: 0a424be0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/15953297

Change-Id: I3ebb14b029a4bdf49e9fdce5684051f7f59301de
parents 230e5901 0a424be0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -597,8 +597,8 @@ public class IccSmsInterfaceManager {
            String destAddr, String scAddr, String text, PendingIntent sentIntent,
            PendingIntent deliveryIntent, boolean persistMessageForNonDefaultSmsApp, int priority,
            boolean expectMore, int validityPeriod) {
        if (!mSmsPermissions.checkCallingOrSelfCanSendSms(callingPackage, callingAttributionTag,
                "Sending SMS message")) {
        if (!mSmsPermissions.checkCallingCanSendText(persistMessageForNonDefaultSmsApp,
                    callingPackage, callingAttributionTag, "Sending SMS message")) {
            returnUnspecifiedFailure(sentIntent);
            return;
        }