am d2dd69ae: Merge "Modify getDeviceId() to get device id independent of Subscription." into lmp-mr1-dev

* commit 'd2dd69ae8d81defc5f2286690b3dd246d4118fcc':
  Modify getDeviceId() to get device id independent of Subscription.
This commit is contained in:
Sanket Padawe
2015-01-17 22:20:19 +00:00
committed by Android Git Automerger
2 changed files with 15 additions and 1 deletions

View File

@@ -620,7 +620,11 @@ public class TelephonyManager {
* {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
*/
public String getDeviceId() {
return getDeviceId(getDefaultSim());
try {
return getITelephony().getDeviceId();
} catch (RemoteException ex) {
return null;
}
}
/**

View File

@@ -865,8 +865,18 @@ interface ITelephony {
* @return {@code True} if the user has enabled video calling, {@code false} otherwise.
*/
boolean isVideoCallingEnabled();
/**
* Get IMS Registration Status
*/
boolean isImsRegistered();
/**
* Returns the unique device ID of phone, for example, the IMEI for
* GSM and the MEID for CDMA phones. Return null if device ID is not available.
*
* <p>Requires Permission:
* {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
*/
String getDeviceId();
}