recovery: Disable downgrade and signature checks

Change-Id: I734fad12a54a232a00240ba105a79828135896a9
This commit is contained in:
jhenrique09 2021-10-10 15:33:05 -03:00 committed by zlewchan
parent dfdf5ad555
commit b52803f855

View file

@ -167,7 +167,7 @@ static bool CheckAbSpecificMetadata(const std::map<std::string, std::string>& me
}
// Check for downgrade version.
int64_t build_timestamp =
/*int64_t build_timestamp =
android::base::GetIntProperty("ro.build.date.utc", std::numeric_limits<int64_t>::max());
int64_t pkg_post_timestamp = 0;
// We allow to full update to the same version we are running, in case there
@ -201,7 +201,7 @@ static bool CheckAbSpecificMetadata(const std::map<std::string, std::string>& me
}
return true;
}
}*/
bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) {
auto package_ota_type = get_value(metadata, "ota-type");
@ -607,10 +607,10 @@ static InstallResult VerifyAndInstallPackage(Package* package, bool* wipe_cache,
ui->ShowProgress(VERIFICATION_PROGRESS_FRACTION, VERIFICATION_PROGRESS_TIME);
// Verify package.
if (!verify_package(package, ui)) {
/*if (!verify_package(package, ui)) {
log_buffer->push_back(android::base::StringPrintf("error: %d", kZipVerificationFailure));
return INSTALL_CORRUPT;
}
}*/
// Verify and install the contents of the package.
ui->Print("Installing update...\n");