summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author xinhe <xinhe@google.com> 2015-01-28 10:40:27 -0800
committer xinhe <xinhe@google.com> 2015-01-28 10:40:27 -0800
commit6620b4273ef6a1489e091a6b6cc766c0eff30f8d (patch)
treee0e061d697a2a9de72c5402a08989307718b7e34
parentaf8c621d2165248cdb60699a6655e56e7dfa2e05 (diff)
Sprint: MMS cannot be sent in the UK
This is due to Sprint network at UK is actually GSM/UMTS. Thus we need GSM phone with CSIM to provide Nai too. Bug:18241756 Change-Id: Icec10c88834151f5e35e38db93af36d7f40890fd
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index fe717ddc9a8e..8d438e3cfcee 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -703,7 +703,11 @@ public class TelephonyManager {
public String getNai(int slotId) {
int[] subId = SubscriptionManager.getSubId(slotId);
try {
- return getSubscriberInfo().getNaiForSubscriber(subId[0]);
+ String nai = getSubscriberInfo().getNaiForSubscriber(subId[0]);
+ if (Log.isLoggable(TAG, Log.VERBOSE)) {
+ Rlog.v(TAG, "Nai = " + nai);
+ }
+ return nai;
} catch (RemoteException ex) {
return null;
} catch (NullPointerException ex) {