Merge "Deprecated getDeviceId and added getMeid and getImei"
am: 3942335882
Change-Id: I2e6ed9bd8e1d416a4b47e7e4141baf07a26adf06
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index ebe9315..89e484a 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1717,6 +1717,15 @@
}
@Override
+ public String getMeidForSlot(int slotIndex, String callingPackage) {
+ if (!canReadPhoneState(callingPackage, "getMeidForSlot")) {
+ return null;
+ }
+ Phone phone = PhoneFactory.getPhone(slotIndex);
+ return phone == null ? null : phone.getMeid();
+ }
+
+ @Override
public String getDeviceSoftwareVersionForSlot(int slotIndex, String callingPackage) {
if (!canReadPhoneState(callingPackage, "getDeviceSoftwareVersionForSlot")) {
return null;