Merge "Revert "Do not merge. Return null id for Non-phone device."" into honeycomb-mr2

This commit is contained in:
John Wang
2011-06-16 16:47:18 -07:00
committed by Android (Google) Code Review

View File

@@ -192,10 +192,6 @@ 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() {
if (!isVoiceCapable()) {
return null;
}
try { try {
return getSubscriberInfo().getDeviceId(); return getSubscriberInfo().getDeviceId();
} catch (RemoteException ex) { } catch (RemoteException ex) {