summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-12 23:08:54 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-12 23:08:54 +0000
commit4ec1564e11f1f00c38925684249e03769cd35a88 (patch)
tree0a334d9d39f55cb63e55283f6a75565480425c4c
parent03cf315b1e126b2d916825cafc740d7920a1b3f0 (diff)
parent4fd3e37b4a6b6f8422f2eda664fce34b76c620ec (diff)
downloadMms-android13-d1-release.tar.gz
Change-Id: Ie235e2714a5e5ee71f1d2eec8781e107643e3647
-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;