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

Commit 19451a5b 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 am: c8a826ad

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

Change-Id: I2c2a20c7d6d499f7d4a8239aae92cef18c710d19
parents 591c9933 c8a826ad
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;
        }