Loading install/install.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,17 @@ static bool CheckAbSpecificMetadata(const std::map<std::string, std::string>& me return false; } } const auto post_build = get_value(metadata, "post-build"); const auto build_fingerprint = android::base::Tokenize(post_build, "/"); if (!build_fingerprint.empty()) { 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; } } return true; } Loading Loading
install/install.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,17 @@ static bool CheckAbSpecificMetadata(const std::map<std::string, std::string>& me return false; } } const auto post_build = get_value(metadata, "post-build"); const auto build_fingerprint = android::base::Tokenize(post_build, "/"); if (!build_fingerprint.empty()) { 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; } } return true; } Loading