Merge "Add getCdmaMdn and getCdmaMin to phoneinterfacemanager." into lmp-dev
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index d17beb1..6350e78 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1425,6 +1425,30 @@
}
/**
+ * Returns the CDMA MDN.
+ */
+ public String getCdmaMdn(long subId) {
+ enforceModifyPermissionOrCarrierPrivilege();
+ if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
+ return getPhone(subId).getLine1Number();
+ } else {
+ return null;
+ }
+ }
+
+ /**
+ * Returns the CDMA MIN.
+ */
+ public String getCdmaMin(long subId) {
+ enforceModifyPermissionOrCarrierPrivilege();
+ if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
+ return getPhone(subId).getCdmaMin();
+ } else {
+ return null;
+ }
+ }
+
+ /**
* Returns true if CDMA provisioning needs to run.
*/
public boolean needsOtaServiceProvisioning() {