am ef942e8a: am 42a85412: am 925ec03f: Merge "VZW wants the phoneNumber to be 10 zero\'s if there isn\'t one." into jb-mr2-dev
* commit 'ef942e8a558f9add67848f45d5191da0a45a1948': VZW wants the phoneNumber to be 10 zero's if there isn't one.
This commit is contained in:
@@ -3986,17 +3986,20 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
|
|
||||||
private String getProvisioningUrl() {
|
private String getProvisioningUrl() {
|
||||||
String url = mContext.getResources().getString(R.string.mobile_provisioning_url);
|
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)) {
|
if (!TextUtils.isEmpty(url)) {
|
||||||
|
String phoneNumber = mTelephonyManager.getLine1Number();
|
||||||
|
if (TextUtils.isEmpty(phoneNumber)) {
|
||||||
|
phoneNumber = "0000000000";
|
||||||
|
}
|
||||||
url = String.format(url,
|
url = String.format(url,
|
||||||
mTelephonyManager.getSimSerialNumber() /* ICCID */,
|
mTelephonyManager.getSimSerialNumber() /* ICCID */,
|
||||||
mTelephonyManager.getDeviceId() /* IMEI */,
|
mTelephonyManager.getDeviceId() /* IMEI */,
|
||||||
mTelephonyManager.getLine1Number() /* Phone numer */);
|
phoneNumber /* Phone numer */);
|
||||||
}
|
}
|
||||||
|
|
||||||
log("getProvisioningUrl: url=" + url);
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user