mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-27 02:10:33 +00:00
Description:add get udid log
Feature or Bugfix:Bugfix Binary Source: No Signed-off-by: cat <chenjinxiang3@huawei.com>
This commit is contained in:
parent
92522a022d
commit
b14974e3cf
@ -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!")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user