summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2021-06-14 21:51:42 -0700
committerXin Li <delphij@google.com>2021-06-17 21:23:50 +0000
commit77e2ba27cccecac3d59dc186b965f2685ad7911f (patch)
treed0206a9349419fa2403d8f63819909d2b8373519
parent662fe1498f600fa13dcf464598031196351613b9 (diff)
parent12e57a95530067fef86ba5605b8a832e78c7eb75 (diff)
downloadMms-77e2ba27cccecac3d59dc186b965f2685ad7911f.tar.gz
DO NOT MERGE - Merge ab/7272582
Bug: 190855093 Merged-In: I090988fb31a7fabb2d903999a90d214e2b7f46ac Change-Id: I6d80661f591deed157b1b03843021daa32c64ad5
-rw-r--r--src/com/android/mms/service/MmsService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/mms/service/MmsService.java b/src/com/android/mms/service/MmsService.java
index eb0fd88..40f13d9 100644
--- a/src/com/android/mms/service/MmsService.java
+++ b/src/com/android/mms/service/MmsService.java
@@ -47,6 +47,7 @@ import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.telephony.data.ApnSetting;
import android.text.TextUtils;
+import android.util.EventLog;
import android.util.SparseArray;
import com.android.internal.telephony.IMms;
@@ -425,6 +426,10 @@ public class MmsService extends Service implements MmsRequest.RequestManager {
public boolean archiveStoredConversation(String callingPkg, long conversationId,
boolean archived) throws RemoteException {
LogUtil.d("archiveStoredConversation " + conversationId + " " + archived);
+ if (Binder.getCallingUid() != Process.SYSTEM_UID) {
+ EventLog.writeEvent(0x534e4554, "180419673", Binder.getCallingUid(), "");
+ }
+ enforceSystemUid();
if (conversationId == -1) {
LogUtil.e("archiveStoredConversation: invalid thread id");
return false;