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

Commit 15a33b4b authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

Check for modify phone state perimission

Check for modify phone state perimission
sendTextMessageWithoutPersisting

Bug: 195311502
Test: Verified using the test app mentioned in the bug
Change-Id: I08391108069d685ee77204b6837acabed7b4b7a8
parent 289e29fd
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;
        }