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

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

Merge "Check calling package before send sms text." into sc-dev am: 6d9e3c92 am: 263bd770

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

Change-Id: I830554e78b6c2bb37e20e08c2edbf5407d838a46
parents 7e8a3493 263bd770
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -529,6 +529,10 @@ public class SmsController extends ISmsImplBase {
            Uri messageUri, String scAddress, List<PendingIntent> sentIntents,
            List<PendingIntent> deliveryIntents) {
        IccSmsInterfaceManager iccSmsIntMgr = getIccSmsInterfaceManager(subId);
        if (!getCallingPackage().equals(callingPkg)) {
            throw new SecurityException("sendStoredMultipartText: Package " + callingPkg
                    + " does not belong to " + Binder.getCallingUid());
        }
        if (iccSmsIntMgr != null) {
            iccSmsIntMgr.sendStoredMultipartText(callingPkg, callingAttributionTag, messageUri,
                    scAddress, sentIntents, deliveryIntents);