mirror of
https://github.com/openharmony/device_manager.git
synced 2026-07-21 06:05:22 -04:00
@@ -264,12 +264,10 @@ ON_IPC_CMD(AUTHENTICATE_DEVICE, MessageParcel &data, MessageParcel &reply)
|
||||
int32_t appThumbnailLen = data.ReadInt32();
|
||||
uint8_t *appIcon = appIconLen > 0? (uint8_t *)data.ReadRawData(appIconLen) : nullptr;
|
||||
uint8_t *appThumbnail = appThumbnailLen > 0? (uint8_t *)data.ReadRawData(appThumbnailLen) : nullptr;
|
||||
int32_t result = DEVICEMANAGER_NULLPTR;
|
||||
|
||||
if (appIcon != nullptr && appThumbnail != nullptr) {
|
||||
DmAppImageInfo imageInfo(appIcon, appIconLen, appThumbnail, appThumbnailLen);
|
||||
result = IpcServerAdapter::GetInstance().AuthenticateDevice(pkgName, *deviceInfo, imageInfo, extra);
|
||||
}
|
||||
DmAppImageInfo imageInfo(appIcon, appIconLen, appThumbnail, appThumbnailLen);
|
||||
int32_t result = IpcServerAdapter::GetInstance().AuthenticateDevice(pkgName, *deviceInfo, imageInfo, extra);
|
||||
|
||||
if (!reply.WriteInt32(result)) {
|
||||
DMLOG(DM_LOG_ERROR, "write result failed");
|
||||
return DEVICEMANAGER_WRITE_FAILED;
|
||||
|
||||
Reference in New Issue
Block a user