/base/startup/init/test/moduletest/ |
D | syspara.cpp | 74 char udid[65] = {0}; in SysParaApiDumpCmd() local 75 GetDevUdid(udid, sizeof(udid)); in SysParaApiDumpCmd() 76 BShellEnvOutput(shell, const_cast<char *>("GetDevUdid:%s\r\n"), udid); in SysParaApiDumpCmd() 78 AclGetDevUdid(udid, sizeof(udid)); in SysParaApiDumpCmd() 79 BShellEnvOutput(shell, const_cast<char *>("Acl devUdid:%s\r\n"), udid); in SysParaApiDumpCmd()
|
/base/startup/init/device_info/ |
D | device_info.cpp | 29 int AclGetDevUdid(char *udid, int size) in AclGetDevUdid() argument 31 if (udid == nullptr || size < UDID_LEN) { in AclGetDevUdid() 34 (void)memset_s(udid, size, 0, size); in AclGetDevUdid() 40 ret = strcpy_s(udid, size, result.c_str()); in AclGetDevUdid() 43 int ret = GetDevUdid_(udid, size); in AclGetDevUdid() 45 BEGET_LOGI("AclGetDevUdid %s", udid); in AclGetDevUdid()
|
/base/security/access_token/services/tokensyncmanager/src/remote/ |
D | soft_bus_device_connection_listener.cpp | 52 std::string udid = SoftBusManager::GetInstance().GetUniqueDeviceIdByNodeId(networkId); in OnDeviceOnline() local 58 ConstantCommon::EncryptDevId(udid).c_str()); in OnDeviceOnline() 60 if (uuid != "" && udid != "") { in OnDeviceOnline() 62 networkId, uuid, udid, info.deviceName, std::to_string(info.deviceTypeId)); in OnDeviceOnline() 63 RemoteCommandManager::GetInstance().NotifyDeviceOnline(udid); in OnDeviceOnline() 74 std::string udid = DeviceInfoManager::GetInstance().ConvertToUniqueDeviceIdOrFetch(networkId); in OnDeviceOffline() local 80 ConstantCommon::EncryptDevId(udid).c_str()); in OnDeviceOffline() 82 if (uuid != "" && udid != "") { in OnDeviceOffline() 84 RemoteCommandManager::GetInstance().NotifyDeviceOffline(udid); in OnDeviceOffline()
|
D | remote_command_manager.cpp | 53 int RemoteCommandManager::AddCommand(const std::string &udid, const std::shared_ptr<BaseRemoteComma… in AddCommand() argument 55 if (udid.empty() || command == nullptr) { in AddCommand() 61 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in AddCommand() 72 void RemoteCommandManager::RemoveCommand(const std::string &udid) in RemoveCommand() argument 75 executors_.erase(udid); in RemoveCommand() 78 int RemoteCommandManager::ExecuteCommand(const std::string &udid, const std::shared_ptr<BaseRemoteC… in ExecuteCommand() argument 80 if (udid.empty() || command == nullptr) { in ExecuteCommand() 82 ConstantCommon::EncryptDevId(udid).c_str()); in ExecuteCommand() 87 ConstantCommon::EncryptDevId(udid).c_str(), uniqueId.c_str()); in ExecuteCommand() 89 std::shared_ptr<RemoteCommandExecutor> executor = GetOrCreateRemoteCommandExecutor(udid); in ExecuteCommand() [all …]
|
D | soft_bus_manager.cpp | 74 std::string udid = GetUdidByNodeId(device.networkId); in AddTrustedDeviceInfo() local 75 if (uuid.empty() || udid.empty()) { in AddTrustedDeviceInfo() 77 uuid.c_str(), ConstantCommon::EncryptDevId(udid).c_str()); in AddTrustedDeviceInfo() 81 … DeviceInfoManager::GetInstance().AddDeviceInfo(device.networkId, uuid, udid, device.deviceName, in AddTrustedDeviceInfo() 83 RemoteCommandManager::GetInstance().NotifyDeviceOnline(udid); in AddTrustedDeviceInfo() 313 std::string udid = GetUdidByNodeId(nodeId); in GetUniqueDeviceIdByNodeId() local 314 if (udid.empty()) { in GetUniqueDeviceIdByNodeId() 316 ConstantCommon::EncryptDevId(udid).c_str()); in GetUniqueDeviceIdByNodeId() 320 if (udid == localUdid) { in GetUniqueDeviceIdByNodeId() 326 return udid; in GetUniqueDeviceIdByNodeId() [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/ |
D | hc_dev_info.c | 26 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument 28 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid() 31 int32_t ret = GetDevUdid((char *)udid, udidLen); in HcGetUdid()
|
/base/security/access_token/services/tokensyncmanager/include/remote/ |
D | remote_command_manager.h | 65 int ExecuteCommand(const std::string &udid, const std::shared_ptr<BaseRemoteCommand>& command); 77 int AddCommand(const std::string &udid, const std::shared_ptr<BaseRemoteCommand>& command); 88 int ProcessDeviceCommandImmediately(const std::string &udid); 113 void RemoveCommand(const std::string &udid);
|
/base/security/dataclassification/test/unittest/datatransmitmgr/ |
D | DevSLMgrTest.cpp | 94 char udid[65] = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; in DATASL_GetUdidByOpp() local 95 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByOpp() 101 char udid[65] = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; in DATASL_GetUdidByExcept() local 102 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExcept() 108 char udid[65] = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; in DATASL_GetUdidByExceptZero() local 109 (void)memcpy_s(queryParams->udid, MAX_UDID_LENGTH, udid, MAX_UDID_LENGTH); in DATASL_GetUdidByExceptZero() 118 …if (GetNodeKeyInfo(pkgName, info.networkId, NODE_KEY_UDID, (uint8_t *)(queryParams->udid), UDID_BU… in GetLocalUdid() 285 …ret = GetDeviceSecLevelByUdid(static_cast<const uint8_t *>(queryParams.udid), queryParams.udidLen,… 297 (void)memcpy_s(devId.identity, MAX_UDID_LENGTH, queryParams.udid, queryParams.udidLen); 322 …(void)memcpy_s(devIdLocal.identity, MAX_UDID_LENGTH, queryParamsLocal.udid, queryParamsLocal.udidL… [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
D | provision_verify_test.cpp | 142 "device-id-type": "udid" 189 "device-id-type": "udid", 340 "device-id-type": "udid", 421 "device-id-type": "udid", 431 char udid[DEV_UUID_LEN] = {0}; variable 432 int udidRet = GetDevUdid(udid, sizeof(udid)); 434 deviceId = std::string(udid, sizeof(udid) - 1); 470 "device-id-type": "udid", 480 char udid[DEV_UUID_LEN] = {0}; variable 481 int udidRet = GetDevUdid(udid, sizeof(udid)); [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
D | hc_dev_info.c | 26 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument 28 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid() 31 int32_t res = GetDevUdid((char *)udid, udidLen); in HcGetUdid()
|
/base/startup/init/interfaces/innerkits/syspara/ |
D | param_comm.c | 129 static int GetSha256Value(const char *input, char *udid, int udidSize) in GetSha256Value() argument 147 if (len > 0 && strcat_s(udid, udidSize, buf) != 0) { in GetSha256Value() 154 static int GetSha256Value(const char *input, char *udid, int udidSize) in GetSha256Value() argument 157 (void)udid; in GetSha256Value() 179 INIT_LOCAL_API int GetDevUdid_(char *udid, int size) in GetDevUdid_() argument 181 if (size < UDID_LEN || udid == NULL) { in GetDevUdid_() 186 int ret = SystemGetParameter("const.product.udid", udid, &len); in GetDevUdid_() 209 ret = GetSha256Value(tmp, udid, size); in GetDevUdid_()
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | mock_parameter.c | 19 int GetDevUdid(char *udid, int size) in GetDevUdid() argument 21 if (strcpy_s(udid, size, "ohos.deviceId.test") != EOK) { in GetDevUdid()
|
/base/security/access_token/frameworks/common/src/ |
D | constant_common.cpp | 48 char udid[DEVICE_UUID_LENGTH] = {0}; in GetLocalDeviceId() local 49 if (GetDevUdid(udid, DEVICE_UUID_LENGTH) == 0) { in GetLocalDeviceId() 50 localDeviceId = udid; in GetLocalDeviceId()
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
D | hc_dev_info_mock.c | 34 int32_t HcGetUdid(uint8_t *udid, int32_t udidLen) in HcGetUdid() argument 36 if (udid == NULL || udidLen < INPUT_UDID_LEN || udidLen > MAX_INPUT_UDID_LEN) { in HcGetUdid() 47 if (memcpy_s(udid, udidLen, devUdid, INPUT_UDID_LEN) != EOK) { in HcGetUdid()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/products/default/ |
D | app_verify_default.c | 20 static int GetUdid(unsigned char *udid, int size) in GetUdid() argument 22 int ret = GetDevUdid((char *)udid, size); in GetUdid()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | app_verify_hal.c | 28 int InquiryDeviceUdid(unsigned char *udid, int size) in InquiryDeviceUdid() argument 33 return g_productDiffFunc.devUdidFunc(udid, size); in InquiryDeviceUdid()
|
D | app_provision.c | 377 unsigned char *udid = APPV_MALLOC(size); in VerifyUdid() local 378 if (udid == NULL) { in VerifyUdid() 382 (void)memset_s(udid, size, 0, size); in VerifyUdid() 383 int result = InquiryDeviceUdid(udid, size); in VerifyUdid() 385 free(udid); in VerifyUdid() 390 if (strcmp((const char *)pf->debugInfo.deviceId[i], (const char *)udid) == 0) { in VerifyUdid() 392 free(udid); in VerifyUdid() 393 udid = NULL; in VerifyUdid() 398 free(udid); in VerifyUdid() 399 udid = NULL; in VerifyUdid()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
D | app_verify_hal.h | 28 typedef int (*GetDeviceUdid)(unsigned char *udid, int size); 35 int InquiryDeviceUdid(unsigned char *udid, int size);
|
/base/security/device_auth/services/group_auth/inc/ |
D | group_auth_manager.h | 25 void InformDeviceDisconnection(const char *udid); 26 bool IsTrustedDevice(const char *udid);
|
/base/security/access_token/services/tokensyncmanager/src/device/ |
D | device_info_manager.cpp | 98 std::string udid = SoftBusManager::GetInstance().GetUniversallyUniqueIdByNodeId(nodeId); in ConvertToUniversallyUniqueIdOrFetch() local 99 if (!udid.empty()) { in ConvertToUniversallyUniqueIdOrFetch() 100 result = udid; in ConvertToUniversallyUniqueIdOrFetch() 116 std::string udid = SoftBusManager::GetInstance().GetUniqueDeviceIdByNodeId(nodeId); in ConvertToUniqueDeviceIdOrFetch() local 117 if (!udid.empty()) { in ConvertToUniqueDeviceIdOrFetch() 118 result = udid; in ConvertToUniqueDeviceIdOrFetch()
|
/base/security/dataclassification/frameworks/datatransmitmgr/ |
D | dev_slinfo_adpt.c | 134 int32_t GetDeviceSecLevelByUdid(const uint8_t *udid, uint32_t udidLen, int32_t *devLevel) in GetDeviceSecLevelByUdid() argument 158 ret = memcpy_s(devId.identity, MAX_UDID_LENGTH, udid, udidLen); in GetDeviceSecLevelByUdid() 223 if (memcpy_s(queryParams.udid, MAX_UDID_LENGTH, identify->identity, identify->length) != EOK) { in OnApiDeviceSecInfoCallback() 235 int32_t GetDeviceSecLevelByUdidAsync(const uint8_t *udid, uint32_t udidLen) in GetDeviceSecLevelByUdidAsync() argument 247 ret = memcpy_s(devId.identity, MAX_UDID_LENGTH, udid, udidLen); in GetDeviceSecLevelByUdidAsync() 272 if (queryParamsL->udid[i] != queryParamsR->udid[i]) { in CompareUdid() 320 …ret = memcpy_s(newListNode->queryParams.udid, MAX_UDID_LENGTH, queryParams->udid, queryParams->udi… in UpdateCallbackListParams()
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/ |
D | group_auth_manager.c | 49 void InformDeviceDisconnection(const char *udid) in InformDeviceDisconnection() argument 51 (void)udid; in InformDeviceDisconnection() 55 bool IsTrustedDevice(const char *udid) in IsTrustedDevice() argument 57 if (udid == NULL) { in IsTrustedDevice()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/sysinfo/src/ |
D | hks_get_udid.c | 42 int32_t HksGetHardwareUdid(uint8_t *udid, uint32_t udidLen) in HksGetHardwareUdid() argument 66 if (memcpy_s(udid, udidLen, devUdid, HKS_HARDWARE_UDID_LEN) != EOK) { in HksGetHardwareUdid()
|
/base/startup/syspara_lite/interfaces/innerkits/native/syspara/include/ |
D | parameter.h | 128 int GetDevUdid(char *udid, int size); 131 int AclGetDevUdid(char *udid, int size);
|
/base/security/device_auth/services/group_manager/src/session/bind_session/ |
D | bind_session_common.c | 66 const char *udid = GetStringFromJson(session->params, FIELD_CONN_DEVICE_ID); in AddDevInfoToSendData() local 67 if (udid == NULL) { in AddDevInfoToSendData() 75 if (AddStringToJson(data, FIELD_CONN_DEVICE_ID, udid) != HC_SUCCESS) { in AddDevInfoToSendData() 101 char udid[INPUT_UDID_LEN] = { 0 }; in GenerateCompatibleInfo() local 102 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); in GenerateCompatibleInfo() 107 if (AddStringToJson(groupInfo, FIELD_DEVICE_ID, udid) != HC_SUCCESS) { in GenerateCompatibleInfo() 307 …if (AddStringToJson(params, FIELD_CONN_DEVICE_ID, StringGet(&devAuthParams->udid)) != HC_SUCCESS) { in AddDevInfoToParams() 335 char udid[INPUT_UDID_LEN] = { 0 }; in AddDevInfoByDatabase() local 336 int32_t res = HcGetUdid((uint8_t *)udid, INPUT_UDID_LEN); in AddDevInfoByDatabase() 346 if (GetTrustedDevInfoById(osAccountId, udid, true, groupId, devAuthParams) != HC_SUCCESS) { in AddDevInfoByDatabase() [all …]
|