!2899 新增获取udid维测log

Merge pull request !2899 from cat/master
This commit is contained in:
openharmony_ci 2024-06-06 07:14:53 +00:00 committed by Gitee
commit 259de4a384
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -72,11 +72,12 @@ INIT_UDID_LOCAL_API int CalcDevUdid(char *udid, uint32_t size)
#ifndef OHOS_LITE
INIT_UDID_LOCAL_API void SetDevUdid()
{
BEGET_LOGI("Begin calculate udid");
BEGET_LOGI("Begin set udid param");
char udid[UDID_LEN] = {0};
uint32_t size = (uint32_t)sizeof(udid);
int ret = GetUdidFromParam(udid, size);
if (ret != 0) {
BEGET_LOGI("Get udid from param failed, calculate udid from other param");
ret = CalcDevUdid(udid, size);
BEGET_ERROR_CHECK(ret == 0, return, "calculate udid is failed!")
}