diff options
author | Wink Saville <wink@google.com> | 2013-07-10 23:00:07 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2013-07-10 23:00:07 -0700 |
commit | 8cf3560469083d608e6f507792bce20bf53ed6d7 (patch) | |
tree | 2026b8844dd2d62d78d3c27f001b0d09a10d8225 | |
parent | 29282f99252237dd9674737d26ce72afbfdd3ac1 (diff) | |
download | base-8cf3560469083d608e6f507792bce20bf53ed6d7.tar.gz |
VZW wants the phoneNumber to be 10 zero's if there isn't one.
Bug: 9784059
Change-Id: I41bba908855648d2560440655d8a75a7cb2e0859
-rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index e7dd3b79e31f..29c546e19722 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -3975,17 +3975,20 @@ public class ConnectivityService extends IConnectivityManager.Stub { private String getProvisioningUrl() { String url = mContext.getResources().getString(R.string.mobile_provisioning_url); - log("getProvisioningUrl: resource url=" + url); + log("getProvisioningUrl: mobile_provisioning_url=" + url); - // populate the iccid and imei in the provisioning url. + // populate the iccid, imei and phone number in the provisioning url. if (!TextUtils.isEmpty(url)) { + String phoneNumber = mTelephonyManager.getLine1Number(); + if (TextUtils.isEmpty(phoneNumber)) { + phoneNumber = "0000000000"; + } url = String.format(url, mTelephonyManager.getSimSerialNumber() /* ICCID */, mTelephonyManager.getDeviceId() /* IMEI */, - mTelephonyManager.getLine1Number() /* Phone numer */); + phoneNumber /* Phone numer */); } - log("getProvisioningUrl: url=" + url); return url; } } |