summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 23:09:46 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 23:09:46 +0000
commit4c21fc8f5d41c6b11ad7c339fc4a801b3ee00606 (patch)
tree0a334d9d39f55cb63e55283f6a75565480425c4c
parentf702dbc9b310732b49da3c476301b15f2d4a7389 (diff)
parent2bfc10a8af4f49da5dc1f9b5373972496aa26a61 (diff)
downloadMms-android13-s1-release.tar.gz
Change-Id: Ib59a954eaf22397a13e4dc7d70b43110de9d00fb
-rw-r--r--src/com/android/mms/service/MmsRequest.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/com/android/mms/service/MmsRequest.java b/src/com/android/mms/service/MmsRequest.java
index 4c7b4c7..dfef1cc 100644
--- a/src/com/android/mms/service/MmsRequest.java
+++ b/src/com/android/mms/service/MmsRequest.java
@@ -27,15 +27,14 @@ import android.os.Bundle;
import android.service.carrier.CarrierMessagingService;
import android.service.carrier.CarrierMessagingServiceWrapper.CarrierMessagingCallback;
import android.telephony.AnomalyReporter;
-import android.telephony.PhoneStateListener;
import android.telephony.PreciseDataConnectionState;
+import android.telephony.SmsManager;
import android.telephony.TelephonyCallback;
+import android.telephony.TelephonyManager;
import android.telephony.data.ApnSetting;
-import android.telephony.ims.feature.MmTelFeature;
import android.telephony.ims.ImsMmTelManager;
+import android.telephony.ims.feature.MmTelFeature;
import android.telephony.ims.stub.ImsRegistrationImplBase;
-import android.telephony.SmsManager;
-import android.telephony.TelephonyManager;
import com.android.mms.service.exception.ApnException;
import com.android.mms.service.exception.MmsHttpException;
@@ -299,7 +298,13 @@ public abstract class MmsRequest {
String message = "MMS failed";
LogUtil.i(this.toString(),
message + " with error: " + result + " httpStatus:" + httpStatusCode);
- AnomalyReporter.reportAnomaly(generateUUID(result, httpStatusCode), message);
+ TelephonyManager telephonyManager =
+ mContext.getSystemService(TelephonyManager.class)
+ .createForSubscriptionId(mSubId);
+ AnomalyReporter.reportAnomaly(
+ generateUUID(result, httpStatusCode),
+ message,
+ telephonyManager.getSimCarrierId());
break;
default:
break;