Merge "Modify getDeviceId() to get device id independent of Subscription." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d2dd69ae8d
@@ -620,7 +620,11 @@ public class TelephonyManager {
|
|||||||
* {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
|
* {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
|
||||||
*/
|
*/
|
||||||
public String getDeviceId() {
|
public String getDeviceId() {
|
||||||
return getDeviceId(getDefaultSim());
|
try {
|
||||||
|
return getITelephony().getDeviceId();
|
||||||
|
} catch (RemoteException ex) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -865,8 +865,18 @@ interface ITelephony {
|
|||||||
* @return {@code True} if the user has enabled video calling, {@code false} otherwise.
|
* @return {@code True} if the user has enabled video calling, {@code false} otherwise.
|
||||||
*/
|
*/
|
||||||
boolean isVideoCallingEnabled();
|
boolean isVideoCallingEnabled();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get IMS Registration Status
|
* Get IMS Registration Status
|
||||||
*/
|
*/
|
||||||
boolean isImsRegistered();
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user