.getString(R.string.firmware_upgrade_automatic_retry), isAutomaticUpgrade);
if (!upgradeData.isNull(context.getResources().getString(R.string.firmware_server))) {
server = (String) upgradeData.get(context.getResources().getString(R.string.firmware_server));
if(server.isEmpty() || (!server.isEmpty() && !Patterns.WEB_URL.matcher(server).matches())) {
String message = "Firmware upgrade URL provided is not valid.";
<BUG>sendBroadcast(Constants.Operation.GET_FIRMWARE_UPGRADE_PACKAGE_STATUS,
Constants.Status.MALFORMED_OTA_URL, message);</BUG>
CommonUtils.callAgentApp(context, Constants.Operation.
FIRMWARE_UPGRADE_FAILURE, Preference.getInt(
context, context.getResources().getString(R.string.operation_id)), message);

.getString(R.string.firmware_upgrade_automatic_retry), isAutomaticUpgrade);
if (!upgradeData.isNull(context.getResources().getString(R.string.firmware_server))) {
server = (String) upgradeData.get(context.getResources().getString(R.string.firmware_server));
if(server.isEmpty() || (!server.isEmpty() && !Patterns.WEB_URL.matcher(server).matches())) {
String message = "Firmware upgrade URL provided is not valid.";
CommonUtils.sendBroadcast(context, Constants.Operation.UPGRADE_FIRMWARE, Constants.Code.FAILURE,
Constants.Status.MALFORMED_OTA_URL, message);
CommonUtils.callAgentApp(context, Constants.Operation.
FIRMWARE_UPGRADE_FAILURE, Preference.getInt(
context, context.getResources().getString(R.string.operation_id)), message);
