diff --git a/utils/utils.cpp b/utils/utils.cpp index eb953fcf37430d5a4948f402ba77b15c24001f0e..11b98c89d2218f70a9d4135d932cf57288044b9a 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 ""; + } + LOG(INFO) << "product name is " << productName; + + return productName; } int32_t CreateCompressLogFile(const std::string &pkgName, std::vector> &files)