otaServerManager.startInstallUpgradePackage();
}
}
}
}
<BUG>public void onStateUpgrade(int error) {
if (error == ERROR_PACKAGE_VERIFY_FAILED) {</BUG>
String message = "Package verification failed, signature does not match.";
Log.e(TAG, message);
<BUG>Preference.putBoolean(context, context.getResources().getString(R.string.verification_failed_flag), true);
sendBroadcast(Constants.Operation.GET_FIRMWARE_UPGRADE_PACKAGE_STATUS,
Constants.Status.INVALID_PACKAGE, message);</BUG>
CommonUtils.callAgentApp(context, Constants.Operation.FAILED_FIRMWARE_UPGRADE_NOTIFICATION, Preference.getInt(

otaServerManager.startInstallUpgradePackage();
}
}
}
}
public void onStateUpgrade(int error) {
String  operation = Preference.getBoolean(context, context.getResources().getString(R.string.
firmware_status_check_in_progress)) ? Constants.Operation.GET_FIRMWARE_UPGRADE_PACKAGE_STATUS : Constants.Operation.UPGRADE_FIRMWARE;
if (error == ERROR_PACKAGE_VERIFY_FAILED) {
String message = "Package verification failed, signature does not match.";
Log.e(TAG, message);
Preference.putBoolean(context, context.getResources().getString(R.string.verification_failed_flag), true);
CommonUtils.sendBroadcast(context, operation, Constants.Code.FAILURE, Constants.Status.OTA_IMAGE_VERIFICATION_FAILED, message);
CommonUtils.callAgentApp(context, Constants.Operation.FAILED_FIRMWARE_UPGRADE_NOTIFICATION, Preference.getInt(
