Skip to main content
Level 1.5: Cupcake
Jan 13, 2026 1:25 PM UTC
Question

IMEI2 becomes the default IMEI with an eSIM.

  • 6 replies
  • 369 views
  • Translate All • Beta, powered by Gemini

Hello,

On our Ivanti Neurons MDM, we use this API to retrieve IMEIs:

getImei() in TelephonyManager is equivalent to:
getImei(getDefaultSim());
So when the only sim is inserted in the second slot:
getImei() is the same as getImei(1) causing duplication in the report.

Ref:
https://android.googlesource.com/platform/frameworks/base/+/b6587ea/telephony/java/android/telephony/TelephonyManager.java#843

 

The API used to retrieve IMEIs seems to target getImei(getDefaultSim()), which causes problems with eSIMs that use IMEI2.
It therefore retrieves IMEI2 as the default IMEI, which can cause problems with registration consoles such as ZTE, where only IMEI1 is entered.


Is there a way to correct this to avoid IMEI swapping?

 

Regards.

6 replies

Moombas
Level 4.4: KitKat
Jan 14, 2026 8:24 AM UTC

Maybe this is default behavior by Android (and in my opinion an issue) as we see the same when the device has an IMEI, it's not recognized as an eSIM by the MDM but as a normal SIM with the IMEI2.

 

For me it looks like an Android internal issue.

Translate • Beta, powered by Gemini
Android Enterprise Expert
Moombas
Level 4.4: KitKat
Jan 14, 2026 11:12 AM UTC

Need to correct my first paragraph:

Maybe this is default behavior by Android (and in my opinion an issue) as we see the same when the device has an eSIM, it's not recognized as an eSIM by the MDM but as a normal SIM with the IMEI2.

Translate • Beta, powered by Gemini
Android Enterprise Expert
Michel
Level: 4.1: Jelly bean
Jan 15, 2026 8:52 AM UTC

I believe you are correct. From a device perspective, eSIM is considered second sim when you have physical sim tray as well. 

Translate • Beta, powered by Gemini
Rafa
Community Manager
Jan 14, 2026 11:09 AM UTC

Hi @kEvaR, I’ve shared your question with our internal team for guidance. Please note that it may take a few days to hear back. 

Translate • Beta, powered by Gemini
Community Manager
kEvaRAuthor
Level 1.5: Cupcake
Feb 23, 2026 11:08 AM UTC

Hello, do you have any updates on this?

Translate • Beta, powered by Gemini
Emilie_B
Former Community Manager
Feb 23, 2026 11:20 AM UTC

Hello @kEvaR - I hope you're well.

 

Unfortunately, I haven't heard back from the team yet - I'll chase this with them now :)

Translate • Beta, powered by Gemini