From 98c4874deeda61b113ea70218d933414cca8f5ee Mon Sep 17 00:00:00 2001 From: Nan Wu Date: Thu, 17 Mar 2022 21:25:41 +0000 Subject: Add attribution tag to MMS Service MmsManager picks up client app's attribution tag and send it to MmsServiceBroker. MmsServiceBroker includes it in the call to noteOp. It then calls MmsService sendMessage and pass it along. These changes are applied to sendMessage and downloadMessage methods only. Null entries are passed to noteOp methods in other methods like importTextMessage, etc. These methods were removed from MmsManager(ag/9431535), but not removed from IMms. Bug: 224831002 Test: Manually verify multimedia send/receive message. Change-Id: I83a1b5c4c184747d9a22f672b1dbd4f02950c645 --- mms/java/android/telephony/MmsManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mms/java/android') diff --git a/mms/java/android/telephony/MmsManager.java b/mms/java/android/telephony/MmsManager.java index d541da09f45d..b893b45611fb 100644 --- a/mms/java/android/telephony/MmsManager.java +++ b/mms/java/android/telephony/MmsManager.java @@ -70,7 +70,8 @@ public class MmsManager { } iMms.sendMessage(subId, ActivityThread.currentPackageName(), contentUri, - locationUrl, configOverrides, sentIntent, messageId); + locationUrl, configOverrides, sentIntent, messageId, + mContext.getAttributionTag()); } catch (RemoteException e) { // Ignore it } @@ -102,7 +103,7 @@ public class MmsManager { } iMms.downloadMessage(subId, ActivityThread.currentPackageName(), locationUrl, contentUri, configOverrides, downloadedIntent, - messageId); + messageId, mContext.getAttributionTag()); } catch (RemoteException e) { // Ignore it } -- cgit v1.2.3-59-g8ed1b