Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions radio/aidl/compat/libradiocompat/modem/RadioModem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ ScopedAStatus RadioModem::getBasebandVersion(int32_t serial) {

ScopedAStatus RadioModem::getDeviceIdentity(int32_t serial) {
LOG_CALL << serial;
mHal1_5->getDeviceIdentity(serial);
LOG(ERROR) << " getDeviceIdentity is deprecated, use getImei instead";
respond()->getDeviceIdentityResponse(notSupported(serial), nullptr, nullptr, nullptr, nullptr);
return ok();
}

ScopedAStatus RadioModem::getImei(int32_t serial) {
LOG_CALL << serial;
LOG(ERROR) << " getImei is unsupported by HIDL HALs";
respond()->getImeiResponse(notSupported(serial), {});
mHal1_5->getDeviceIdentity(serial);
return ok();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ Return<void> RadioResponse::getBasebandVersionResponse(const V1_0::RadioResponse

Return<void> RadioResponse::getDeviceIdentityResponse( //
const V1_0::RadioResponseInfo& info, const hidl_string& imei, const hidl_string& imeisv,
const hidl_string& esn, const hidl_string& meid) {
const hidl_string& /*esn*/, const hidl_string& /*meid*/) {
LOG_CALL << info.serial;
modemCb()->getDeviceIdentityResponse(toAidl(info), imei, imeisv, esn, meid);
aidl::ImeiInfo imeiInfo(aidl::ImeiInfo::ImeiType::PRIMARY, imei, imeisv);
modemCb()->getImeiResponse(toAidl(info), imeiInfo);
return {};
}

Expand Down