diff --git a/res/layout/radio_info.xml b/res/layout/radio_info.xml index e7d08cca988..502505c0aee 100644 --- a/res/layout/radio_info.xml +++ b/res/layout/radio_info.xml @@ -37,6 +37,12 @@ + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 4cefbd623d6..e608207022c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -462,6 +462,8 @@ Roaming: IMEI: + + IMSI: Call Redirect: diff --git a/src/com/android/settings/RadioInfo.java b/src/com/android/settings/RadioInfo.java index 406d293b0f8..e0ddbcc1fcc 100644 --- a/src/com/android/settings/RadioInfo.java +++ b/src/com/android/settings/RadioInfo.java @@ -173,6 +173,7 @@ public class RadioInfo extends Activity { private TextView mDeviceId; //DeviceId is the IMEI in GSM and the MEID in CDMA private TextView number; + private TextView mSubscriberId; private TextView callState; private TextView operatorName; private TextView roamingState; @@ -371,8 +372,9 @@ public class RadioInfo extends Activity { mImsManager = ImsManager.getInstance(getApplicationContext(), SubscriptionManager.getDefaultVoicePhoneId()); - mDeviceId= (TextView) findViewById(R.id.imei); + mDeviceId = (TextView) findViewById(R.id.imei); number = (TextView) findViewById(R.id.number); + mSubscriberId = (TextView) findViewById(R.id.imsi); callState = (TextView) findViewById(R.id.call); operatorName = (TextView) findViewById(R.id.operator); roamingState = (TextView) findViewById(R.id.roaming); @@ -896,6 +898,10 @@ public class RadioInfo extends Activity { if (s == null) s = r.getString(R.string.radioInfo_unknown); mDeviceId.setText(s); + s = phone.getSubscriberId(); + if (s == null) s = r.getString(R.string.radioInfo_unknown); + mSubscriberId.setText(s); + //FIXME: Replace with a TelephonyManager call s = phone.getLine1Number(); if (s == null) s = r.getString(R.string.radioInfo_unknown);