diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-04-01 01:08:22 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-04-01 01:08:22 +0000 |
commit | ee609c57778f9317f410d1b2f178315bcae74f2e (patch) | |
tree | d43e4f818414f4d463b64c930c7ee2ecd9e52357 | |
parent | b95226e89f910512ed801f7cf364a164bc0ccc11 (diff) | |
parent | 8524cfce8d3e92c2a19678dd6a6bb9294029ac04 (diff) | |
download | Mms-ee609c57778f9317f410d1b2f178315bcae74f2e.tar.gz |
Snap for 7249665 from 8524cfce8d3e92c2a19678dd6a6bb9294029ac04 to sc-d1-release
Change-Id: I33df467309dbad396eaa38b31e7084b703cb9aaf
-rw-r--r-- | src/com/android/mms/service/MmsService.java | 5 |
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 8ec30d6..b28b374 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; @@ -427,6 +428,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; |