mirror of
https://gitee.com/openharmony/startup_init
synced 2025-02-25 15:14:14 +00:00
回退udid设置默认值
Signed-off-by: chengjinsong2 <chengjinsong2@huawei.com>
This commit is contained in:
parent
3b953ee656
commit
e484aa0c54
@ -28,7 +28,6 @@ extern "C" {
|
||||
|
||||
int AclGetDevUdid(char *udid, int size)
|
||||
{
|
||||
const char* defaultVal = "1234567890";
|
||||
if (udid == nullptr || size < UDID_LEN) {
|
||||
return SYSPARAM_INVALID_INPUT;
|
||||
}
|
||||
@ -39,8 +38,6 @@ int AclGetDevUdid(char *udid, int size)
|
||||
int ret = instance.GetUdid(result);
|
||||
if (ret == 0) {
|
||||
ret = strcpy_s(udid, size, result.c_str());
|
||||
} else {
|
||||
ret = strcpy_s(udid, size, defaultVal);
|
||||
}
|
||||
#else
|
||||
int ret = GetDevUdid_(udid, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user