install: Dont check ro.build.tags
Since we use dev-keys, they will never match. Just
remove this section of code
Change-Id: I0ca2132930e9bdbde8bd1b35bac3a0f1feff84aa
diff --git a/install/install.cpp b/install/install.cpp
index 3b71096..4410137 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -196,17 +196,6 @@
undeclared_downgrade = true;
}
}
- const auto post_build = get_value(metadata, "post-build");
- const auto build_fingerprint = android::base::Tokenize(post_build, "/");
- if (!build_fingerprint.empty() && android::base::GetProperty("ro.build.type", "") == "user") {
- const auto& post_build_tag = build_fingerprint.back();
- const auto build_tag = android::base::GetProperty("ro.build.tags", "");
- if (build_tag != post_build_tag) {
- LOG(ERROR) << "Post build-tag " << post_build_tag << " does not match device build tag "
- << build_tag;
- return false;
- }
- }
if (undeclared_downgrade &&
!(ui->IsTextVisible() && ask_to_continue_downgrade(ui->GetDevice()))) {