diff --git a/utils/utils.cpp b/utils/utils.cpp index eb953fcf37430d5a4948f402ba77b15c24001f0e..9239fbd3fb87a4851ebdd559327d6be7663659a2 100644 --- a/utils/utils.cpp +++ b/utils/utils.cpp @@ -442,7 +442,14 @@ bool CopyDir(const std::string &srcPath, const std::string &dstPath) std::string GetLocalBoardId() { - return "HI3516"; + char productName[PARAM_SIZE + 1] = {0}; + if (GetParameter("const.product.name", "", productName, sizeof(productName) - 1) <= 0) { + LOG(ERROR) << "get product name failed"; + return false; + } + LOG(INFO) << "product name is " << productName; + + return productName; } int32_t CreateCompressLogFile(const std::string &pkgName, std::vector> &files)