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

Commit 303e7ccb authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Set attributionTag for SMS self-or-calling checks

Bug: 136595429
Test: TH
Change-Id: If8ef62cf57a621b159fbe48492d6607e943460ad
parent 846dcabc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -125,7 +125,8 @@ public class SmsPermissions {
    public boolean checkCallingOrSelfCanSendSms(String callingPackage, String callingAttributionTag,
            String message) {
        mContext.enforceCallingOrSelfPermission(Manifest.permission.SEND_SMS, message);
        return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage)
        return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage,
                callingAttributionTag, null)
                == AppOpsManager.MODE_ALLOWED;
    }