summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-12 22:05:25 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-12 22:05:25 +0000
commit66847faa4be37ab8726a9f59cdc085b996464000 (patch)
tree0a334d9d39f55cb63e55283f6a75565480425c4c
parentbbeeef33a73392cdb0918b4d16a9a359d292842a (diff)
parent4785c9591d0ddb75673c8554dc4d97a9f06fa43d (diff)
downloadMms-66847faa4be37ab8726a9f59cdc085b996464000.tar.gz
Snap for 8581835 from 4785c9591d0ddb75673c8554dc4d97a9f06fa43d to mainline-media-releaseaml_med_331612000aml_med_331511000aml_med_331410000aml_med_331318000aml_med_331115000aml_med_331012020
Change-Id: Ic9bd2ba3efbd3e321e6f1759d4df72a889914668
-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;