recovery: Disable downgrade and signature checks
Change-Id: I734fad12a54a232a00240ba105a79828135896a9
This commit is contained in:
parent
dfdf5ad555
commit
b52803f855
1 changed files with 4 additions and 4 deletions
|
@ -167,7 +167,7 @@ static bool CheckAbSpecificMetadata(const std::map<std::string, std::string>& me
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for downgrade version.
|
// 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());
|
android::base::GetIntProperty("ro.build.date.utc", std::numeric_limits<int64_t>::max());
|
||||||
int64_t pkg_post_timestamp = 0;
|
int64_t pkg_post_timestamp = 0;
|
||||||
// We allow to full update to the same version we are running, in case there
|
// 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;
|
return true;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) {
|
bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) {
|
||||||
auto package_ota_type = get_value(metadata, "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);
|
ui->ShowProgress(VERIFICATION_PROGRESS_FRACTION, VERIFICATION_PROGRESS_TIME);
|
||||||
|
|
||||||
// Verify package.
|
// Verify package.
|
||||||
if (!verify_package(package, ui)) {
|
/*if (!verify_package(package, ui)) {
|
||||||
log_buffer->push_back(android::base::StringPrintf("error: %d", kZipVerificationFailure));
|
log_buffer->push_back(android::base::StringPrintf("error: %d", kZipVerificationFailure));
|
||||||
return INSTALL_CORRUPT;
|
return INSTALL_CORRUPT;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// Verify and install the contents of the package.
|
// Verify and install the contents of the package.
|
||||||
ui->Print("Installing update...\n");
|
ui->Print("Installing update...\n");
|
||||||
|
|
Loading…
Reference in a new issue