Add getCdmaMdn and getCdmaMin to phoneinterfacemanager.
Bug: b/16966140
Change-Id: Ic5da4fb3d7e658d1f7fcf7931996cfbb44a80bb2
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() {