OSDN Git Service

Make getDeviceId return null for Non-phone device.
authorJohn Wang <johnwang@google.com>
Tue, 7 Jun 2011 22:37:09 +0000 (15:37 -0700)
committerJohn Wang <johnwang@google.com>
Tue, 7 Jun 2011 22:37:09 +0000 (15:37 -0700)
commite19736f0520689747b9e703a40b5f574bd9a7fce
treef86cf0e8c42e9d5cbd34a84be97dda270c68d6b6
parent0f7b3f8ba5c2f0b8f96e072bd866c9fb374ebdeb
Make getDeviceId return null for Non-phone device.

For non-phone device, i.e. tablet doesn't have voice capability,

getDeviceId returns null while getPhoneType returns PHONE_TYPE_NONE.

This behavior is suggested by developer scheme

http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

and enforced by CTS testGetDeviceId.

bug:4464907
Change-Id: Iaa3832b7323a50deccd438cb884c8e776a7a9640
telephony/java/android/telephony/TelephonyManager.java