Log.i(TAG, "Upgrade scheduled received: " + schedule);
Preference.putString(context, context.getResources().getString(R.string.alarm_schedule), schedule);
try {
AlarmUtils.setOneTimeAlarm(context, schedule, Constants.Operation.UPGRADE_FIRMWARE, null);
} catch (ParseException e) {
<BUG>Log.e(TAG, "One time alarm time string parsing failed." + e);
}</BUG>
} else {
if (isStatusCheck) {
Log.i(TAG, "Firmware status check is initiated by admin.");

Log.i(TAG, "Upgrade scheduled received: " + schedule);
Preference.putString(context, context.getResources().getString(R.string.alarm_schedule), schedule);
try {
AlarmUtils.setOneTimeAlarm(context, schedule, Constants.Operation.UPGRADE_FIRMWARE, null);
} catch (ParseException e) {
CommonUtils.sendBroadcast(context, Constants.Operation.UPGRADE_FIRMWARE, Constants.Code.FAILURE,
Constants.Status.MALFORMED_REQUEST, e.getMessage());
}
} else {
if (isStatusCheck) {
Log.i(TAG, "Firmware status check is initiated by admin.");
