Send sim change notification based on sim state change.

+ Send sim change notifications based on Sim state change rather then based
on subscription change.
+ Make SimSettings dynamically update based on subscriptions changed. Would
support hotswap which was not supported before this.

Bug: 20739298
Bug: 18385348
Change-Id: I5bb4b05f55b94eb0ed2a1a83fe2f168192b2b684
This commit is contained in:
Sanket Padawe
2015-06-01 10:25:46 -07:00
parent 0c3d8f1c0f
commit 9d7eb49e7b
3 changed files with 111 additions and 159 deletions

View File

@@ -2420,9 +2420,9 @@
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver android:name=".sim.SimBootReceiver"> <receiver android:name=".sim.SimSelectNotification">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action> <action android:name="android.intent.action.SIM_STATE_CHANGED"></action>
</intent-filter> </intent-filter>
</receiver> </receiver>

View File

@@ -16,6 +16,7 @@
package com.android.settings.sim; package com.android.settings.sim;
import com.android.internal.telephony.IccCardConstants;
import com.android.settings.R; import com.android.settings.R;
import com.android.settings.Settings.SimSettingsActivity; import com.android.settings.Settings.SimSettingsActivity;
@@ -30,46 +31,60 @@ import android.support.v4.app.NotificationCompat;
import android.telephony.SubscriptionInfo; import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager; import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager; import android.telephony.TelephonyManager;
import android.telephony.SubscriptionManager.OnSubscriptionsChangedListener; import android.util.Log;
import com.android.settings.Utils;
import java.util.List; import java.util.List;
public class SimBootReceiver extends BroadcastReceiver { public class SimSelectNotification extends BroadcastReceiver {
private static final String TAG = "SimBootReceiver"; private static final String TAG = "SimSelectNotification";
private static final int NOTIFICATION_ID = 1; private static final int NOTIFICATION_ID = 1;
private TelephonyManager mTelephonyManager;
private Context mContext;
private SubscriptionManager mSubscriptionManager;
@Override @Override
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {
mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); final TelephonyManager telephonyManager = (TelephonyManager)
mContext = context; context.getSystemService(Context.TELEPHONY_SERVICE);
mSubscriptionManager = SubscriptionManager.from(mContext); final SubscriptionManager subscriptionManager = SubscriptionManager.from(context);
mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionListener); final int numSlots = telephonyManager.getSimCount();
} final boolean isInProvisioning = Settings.Global.getInt(context.getContentResolver(),
private void detectChangeAndNotify() {
final int numSlots = mTelephonyManager.getSimCount();
final boolean isInProvisioning = Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.DEVICE_PROVISIONED, 0) == 0; Settings.Global.DEVICE_PROVISIONED, 0) == 0;
boolean notificationSent = false;
int numSIMsDetected = 0;
int lastSIMSlotDetected = -1;
// Do not create notifications on single SIM devices or when provisiong. // Do not create notifications on single SIM devices or when provisiong i.e. Setup Wizard.
if (numSlots < 2 || isInProvisioning) { if (numSlots < 2 || isInProvisioning) {
return; return;
} }
// Cancel any previous notifications // Cancel any previous notifications
cancelNotification(mContext); cancelNotification(context);
// If sim state is not ABSENT or LOADED then ignore
String simStatus = intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE);
if (!(IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals(simStatus) ||
IccCardConstants.INTENT_VALUE_ICC_LOADED.equals(simStatus))) {
Log.d(TAG, "sim state is not Absent or Loaded");
return;
} else {
Log.d(TAG, "simstatus = " + simStatus);
}
int state;
for (int i = 0; i < numSlots; i++) {
state = telephonyManager.getSimState(i);
if (!(state == TelephonyManager.SIM_STATE_ABSENT
|| state == TelephonyManager.SIM_STATE_READY
|| state == TelephonyManager.SIM_STATE_UNKNOWN)) {
Log.d(TAG, "All sims not in valid state yet");
return;
}
}
List<SubscriptionInfo> sil = subscriptionManager.getActiveSubscriptionInfoList();
if (sil == null || sil.size() < 1) {
Log.d(TAG, "Subscription list is empty");
return;
}
// Clear defaults for any subscriptions which no longer exist // Clear defaults for any subscriptions which no longer exist
mSubscriptionManager.clearDefaultsForInactiveSubIds(); subscriptionManager.clearDefaultsForInactiveSubIds();
boolean dataSelected = SubscriptionManager.isUsableSubIdValue( boolean dataSelected = SubscriptionManager.isUsableSubIdValue(
SubscriptionManager.getDefaultDataSubId()); SubscriptionManager.getDefaultDataSubId());
@@ -78,44 +93,31 @@ public class SimBootReceiver extends BroadcastReceiver {
// If data and sms defaults are selected, dont show notification (Calls default is optional) // If data and sms defaults are selected, dont show notification (Calls default is optional)
if (dataSelected && smsSelected) { if (dataSelected && smsSelected) {
Log.d(TAG, "Data & SMS default sims are selected. No notification");
return; return;
} }
// We wait until SubscriptionManager returns a valid list of Subscription informations // Create a notification to tell the user that some defaults are missing
// by checking if the list is empty. createNotification(context);
// This is not completely correct, but works for most cases.
// See Bug: 18377252
List<SubscriptionInfo> sil = mSubscriptionManager.getActiveSubscriptionInfoList();
if (sil == null || sil.size() < 1) {
return;
} else {
// Create a notification to tell the user that some defaults are missing
createNotification(mContext);
if (sil.size() == 1) { if (sil.size() == 1) {
// If there is only one subscription, ask if user wants to use if for everything // If there is only one subscription, ask if user wants to use if for everything
Intent intent = new Intent(mContext, SimDialogActivity.class); Intent newIntent = new Intent(context, SimDialogActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(SimDialogActivity.DIALOG_TYPE_KEY, SimDialogActivity.PREFERRED_PICK); newIntent.putExtra(SimDialogActivity.DIALOG_TYPE_KEY, SimDialogActivity.PREFERRED_PICK);
intent.putExtra(SimDialogActivity.PREFERRED_SIM, sil.get(0).getSimSlotIndex()); newIntent.putExtra(SimDialogActivity.PREFERRED_SIM, sil.get(0).getSimSlotIndex());
mContext.startActivity(intent); context.startActivity(newIntent);
} else if (!dataSelected) { } else if (!dataSelected) {
// TODO(sanketpadawe): This should not be shown if the user is looking at the // If there are mulitple, ensure they pick default data
// SimSettings page - its just annoying Intent newIntent = new Intent(context, SimDialogActivity.class);
// If there are mulitple, ensure they pick default data newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Intent intent = new Intent(mContext, SimDialogActivity.class); newIntent.putExtra(SimDialogActivity.DIALOG_TYPE_KEY, SimDialogActivity.DATA_PICK);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(newIntent);
intent.putExtra(SimDialogActivity.DIALOG_TYPE_KEY, SimDialogActivity.DATA_PICK);
mContext.startActivity(intent);
}
} }
} }
private void createNotification(Context context){ private void createNotification(Context context){
final Resources resources = context.getResources(); final Resources resources = context.getResources();
// TODO(sanketpadawe): This notification should not be dissmissable by the user
NotificationCompat.Builder builder = NotificationCompat.Builder builder =
new NotificationCompat.Builder(context) new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_sim_card_alert_white_48dp) .setSmallIcon(R.drawable.ic_sim_card_alert_white_48dp)
@@ -124,31 +126,17 @@ public class SimBootReceiver extends BroadcastReceiver {
.setContentText(resources.getString(R.string.sim_notification_summary)); .setContentText(resources.getString(R.string.sim_notification_summary));
Intent resultIntent = new Intent(context, SimSettingsActivity.class); Intent resultIntent = new Intent(context, SimSettingsActivity.class);
resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent resultPendingIntent = PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
PendingIntent.getActivity( PendingIntent.FLAG_CANCEL_CURRENT);
context,
0,
resultIntent,
PendingIntent.FLAG_CANCEL_CURRENT
);
builder.setContentIntent(resultPendingIntent); builder.setContentIntent(resultPendingIntent);
NotificationManager notificationManager = NotificationManager notificationManager =
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(NOTIFICATION_ID, builder.build()); notificationManager.notify(NOTIFICATION_ID, builder.build());
} }
public static void cancelNotification(Context context) { public static void cancelNotification(Context context) {
NotificationManager notificationManager = NotificationManager notificationManager =
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.cancel(NOTIFICATION_ID); notificationManager.cancel(NOTIFICATION_ID);
} }
private final OnSubscriptionsChangedListener mSubscriptionListener =
new OnSubscriptionsChangedListener() {
@Override
public void onSubscriptionsChanged() {
detectChangeAndNotify();
}
};
} }

View File

@@ -68,32 +68,6 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
private static final String KEY_CELLULAR_DATA = "sim_cellular_data"; private static final String KEY_CELLULAR_DATA = "sim_cellular_data";
private static final String KEY_CALLS = "sim_calls"; private static final String KEY_CALLS = "sim_calls";
private static final String KEY_SMS = "sim_sms"; private static final String KEY_SMS = "sim_sms";
private static final String KEY_ACTIVITIES = "activities";
private static final int ID_INDEX = 0;
private static final int NAME_INDEX = 1;
private static final int APN_INDEX = 2;
private static final int PROXY_INDEX = 3;
private static final int PORT_INDEX = 4;
private static final int USER_INDEX = 5;
private static final int SERVER_INDEX = 6;
private static final int PASSWORD_INDEX = 7;
private static final int MMSC_INDEX = 8;
private static final int MCC_INDEX = 9;
private static final int MNC_INDEX = 10;
private static final int NUMERIC_INDEX = 11;
private static final int MMSPROXY_INDEX = 12;
private static final int MMSPORT_INDEX = 13;
private static final int AUTH_TYPE_INDEX = 14;
private static final int TYPE_INDEX = 15;
private static final int PROTOCOL_INDEX = 16;
private static final int CARRIER_ENABLED_INDEX = 17;
private static final int BEARER_INDEX = 18;
private static final int ROAMING_PROTOCOL_INDEX = 19;
private static final int MVNO_TYPE_INDEX = 20;
private static final int MVNO_MATCH_DATA_INDEX = 21;
private static final int DATA_PICK = 0;
private static final int CALLS_PICK = 1;
private static final int SMS_PICK = 2;
/** /**
* By UX design we use only one Subscription Information(SubInfo) record per SIM slot. * By UX design we use only one Subscription Information(SubInfo) record per SIM slot.
@@ -104,16 +78,10 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
private List<SubscriptionInfo> mAvailableSubInfos = null; private List<SubscriptionInfo> mAvailableSubInfos = null;
private List<SubscriptionInfo> mSubInfoList = null; private List<SubscriptionInfo> mSubInfoList = null;
private List<SubscriptionInfo> mSelectableSubInfos = null; private List<SubscriptionInfo> mSelectableSubInfos = null;
private SubscriptionInfo mCellularData = null;
private SubscriptionInfo mCalls = null;
private SubscriptionInfo mSMS = null;
private PreferenceScreen mSimCards = null; private PreferenceScreen mSimCards = null;
private SubscriptionManager mSubscriptionManager; private SubscriptionManager mSubscriptionManager;
private Utils mUtils; private int mNumSlots;
private Context mContext;
public SimSettings() { public SimSettings() {
super(DISALLOW_CONFIG_SIM); super(DISALLOW_CONFIG_SIM);
@@ -127,51 +95,52 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
@Override @Override
public void onCreate(final Bundle bundle) { public void onCreate(final Bundle bundle) {
super.onCreate(bundle); super.onCreate(bundle);
mContext = getActivity();
mSubscriptionManager = SubscriptionManager.from(getActivity()); mSubscriptionManager = SubscriptionManager.from(getActivity());
if (mSubInfoList == null) {
mSubInfoList = mSubscriptionManager.getActiveSubscriptionInfoList();
// FIXME: b/18385348, needs to handle null from getActiveSubscriptionInfoList
}
if (DBG) log("[onCreate] mSubInfoList=" + mSubInfoList);
createPreferences();
updateAllOptions();
SimBootReceiver.cancelNotification(getActivity());
}
private void createPreferences() {
final TelephonyManager tm = final TelephonyManager tm =
(TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE);
addPreferencesFromResource(R.xml.sim_settings); addPreferencesFromResource(R.xml.sim_settings);
mNumSlots = tm.getSimCount();
mSimCards = (PreferenceScreen)findPreference(SIM_CARD_CATEGORY); mSimCards = (PreferenceScreen)findPreference(SIM_CARD_CATEGORY);
mAvailableSubInfos = new ArrayList<SubscriptionInfo>(mNumSlots);
final int numSlots = tm.getSimCount();
mAvailableSubInfos = new ArrayList<SubscriptionInfo>(numSlots);
mSelectableSubInfos = new ArrayList<SubscriptionInfo>(); mSelectableSubInfos = new ArrayList<SubscriptionInfo>();
for (int i = 0; i < numSlots; ++i) { SimSelectNotification.cancelNotification(getActivity());
// Less efficient than getActiveSubscriptionInfoList but we need to show a disable }
// preference if the slot is empty
private final SubscriptionManager.OnSubscriptionsChangedListener mOnSubscriptionsChangeListener
= new SubscriptionManager.OnSubscriptionsChangedListener() {
@Override
public void onSubscriptionsChanged() {
if (DBG) log("onSubscriptionsChanged:");
updateSubscriptions();
}
};
private void updateSubscriptions() {
mSubInfoList = mSubscriptionManager.getActiveSubscriptionInfoList();
for (int i = 0; i < mNumSlots; ++i) {
Preference pref = mSimCards.findPreference("sim" + i);
if (pref instanceof SimPreference) {
mSimCards.removePreference(pref);
}
}
mAvailableSubInfos.clear();
mSelectableSubInfos.clear();
for (int i = 0; i < mNumSlots; ++i) {
final SubscriptionInfo sir = mSubscriptionManager final SubscriptionInfo sir = mSubscriptionManager
.getActiveSubscriptionInfoForSimSlotIndex(i); .getActiveSubscriptionInfoForSimSlotIndex(i);
SimPreference simPreference = new SimPreference(getActivity(), sir, i); SimPreference simPreference = new SimPreference(mContext, sir, i);
simPreference.setOrder(i-numSlots); simPreference.setOrder(i-mNumSlots);
mSimCards.addPreference(simPreference); mSimCards.addPreference(simPreference);
mAvailableSubInfos.add(sir); mAvailableSubInfos.add(sir);
if (sir != null) { if (sir != null) {
mSelectableSubInfos.add(sir); mSelectableSubInfos.add(sir);
} }
} }
updateAllOptions();
updateActivitesCategory();
}
private void updateAvailableSubInfos(){
mAvailableSubInfos = mSubscriptionManager.getActiveSubscriptionInfoList();
} }
private void updateAllOptions() { private void updateAllOptions() {
@@ -180,8 +149,6 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
} }
private void updateSimSlotValues() { private void updateSimSlotValues() {
mSubscriptionManager.getAllSubscriptionInfoList();
final int prefSize = mSimCards.getPreferenceCount(); final int prefSize = mSimCards.getPreferenceCount();
for (int i = 0; i < prefSize; ++i) { for (int i = 0; i < prefSize; ++i) {
Preference pref = mSimCards.getPreference(i); Preference pref = mSimCards.getPreference(i);
@@ -227,7 +194,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
private void updateCallValues() { private void updateCallValues() {
final Preference simPref = findPreference(KEY_CALLS); final Preference simPref = findPreference(KEY_CALLS);
final TelecomManager telecomManager = TelecomManager.from(getActivity()); final TelecomManager telecomManager = TelecomManager.from(mContext);
final PhoneAccountHandle phoneAccount = final PhoneAccountHandle phoneAccount =
telecomManager.getUserSelectedOutgoingPhoneAccount(); telecomManager.getUserSelectedOutgoingPhoneAccount();
final List<PhoneAccountHandle> allPhoneAccounts = final List<PhoneAccountHandle> allPhoneAccounts =
@@ -235,7 +202,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
simPref.setTitle(R.string.calls_title); simPref.setTitle(R.string.calls_title);
simPref.setSummary(phoneAccount == null simPref.setSummary(phoneAccount == null
? getResources().getString(R.string.sim_calls_ask_first_prefs_title) ? mContext.getResources().getString(R.string.sim_calls_ask_first_prefs_title)
: (String)telecomManager.getPhoneAccount(phoneAccount).getLabel()); : (String)telecomManager.getPhoneAccount(phoneAccount).getLabel());
simPref.setEnabled(allPhoneAccounts.size() > 1); simPref.setEnabled(allPhoneAccounts.size() > 1);
} }
@@ -243,22 +210,17 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener);
mSubInfoList = mSubscriptionManager.getActiveSubscriptionInfoList();
// FIXME: b/18385348, needs to handle null from getActiveSubscriptionInfoList
if (DBG) log("[onResme] mSubInfoList=" + mSubInfoList);
final TelephonyManager tm = final TelephonyManager tm =
(TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE);
tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
updateSubscriptions();
updateAvailableSubInfos();
updateAllOptions();
} }
@Override @Override
public void onPause() { public void onPause() {
super.onPause(); super.onPause();
mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener);
final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
} }
@@ -283,7 +245,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
@Override @Override
public boolean onPreferenceTreeClick(final PreferenceScreen preferenceScreen, public boolean onPreferenceTreeClick(final PreferenceScreen preferenceScreen,
final Preference preference) { final Preference preference) {
final Context context = getActivity(); final Context context = mContext;
Intent intent = new Intent(context, SimDialogActivity.class); Intent intent = new Intent(context, SimDialogActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
@@ -325,13 +287,13 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
} }
public void update() { public void update() {
final Resources res = getResources(); final Resources res = mContext.getResources();
setTitle(String.format(getResources() setTitle(String.format(mContext.getResources()
.getString(R.string.sim_editor_title), (mSlotId + 1))); .getString(R.string.sim_editor_title), (mSlotId + 1)));
if (mSubInfoRecord != null) { if (mSubInfoRecord != null) {
if (TextUtils.isEmpty(getPhoneNumber(mSubInfoRecord))) { if (TextUtils.isEmpty(getPhoneNumber(mSubInfoRecord))) {
setSummary(mSubInfoRecord.getDisplayName()); setSummary(mSubInfoRecord.getDisplayName());
} else { } else {
setSummary(mSubInfoRecord.getDisplayName() + " - " + setSummary(mSubInfoRecord.getDisplayName() + " - " +
getPhoneNumber(mSubInfoRecord)); getPhoneNumber(mSubInfoRecord));
@@ -350,11 +312,13 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
} }
public void createEditDialog(SimPreference simPref) { public void createEditDialog(SimPreference simPref) {
final Resources res = getResources(); final Resources res = mContext.getResources();
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
final View dialogLayout = getActivity().getLayoutInflater().inflate( LayoutInflater inflater = (LayoutInflater)mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View dialogLayout = inflater.inflate(
R.layout.multi_sim_dialog, null); R.layout.multi_sim_dialog, null);
builder.setView(dialogLayout); builder.setView(dialogLayout);
@@ -397,7 +361,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
} }
final TelephonyManager tm = final TelephonyManager tm =
(TelephonyManager) getActivity().getSystemService( (TelephonyManager) mContext.getSystemService(
Context.TELEPHONY_SERVICE); Context.TELEPHONY_SERVICE);
String simCarrierName = tm.getSimOperatorNameForSubscription(mSubInfoRecord String simCarrierName = tm.getSimOperatorNameForSubscription(mSubInfoRecord
.getSubscriptionId()); .getSubscriptionId());
@@ -458,7 +422,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
View rowView; View rowView;
final ViewHolder holder; final ViewHolder holder;
Resources res = getResources(); Resources res = mContext.getResources();
int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size); int iconSize = res.getDimensionPixelSize(R.dimen.color_swatch_size);
int strokeWidth = res.getDimensionPixelSize(R.dimen.color_swatch_stroke_width); int strokeWidth = res.getDimensionPixelSize(R.dimen.color_swatch_stroke_width);
@@ -515,7 +479,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
// be overridden for display purposes. // be overridden for display purposes.
private String getPhoneNumber(SubscriptionInfo info) { private String getPhoneNumber(SubscriptionInfo info) {
final TelephonyManager tm = final TelephonyManager tm =
(TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
return tm.getLine1NumberForSubscriber(info.getSubscriptionId()); return tm.getLine1NumberForSubscriber(info.getSubscriptionId());
} }