adb cannot accurately read IMEI 1 and 2

247 Views Asked by At

there are two OPPO phones, using adb cannot accurately read IMEI 1 and 2, but only MEID. How can I read IMEI?

Android version 11 Model PEAM00 and PEMM20

Tried the following command, but it doesn't work, only MEID is returned.

adb shell service call iphonesubinfo 1

adb shell service call iphonesubinfo 2

2

There are 2 best solutions below

4
Dan Baruch On

Found in a different StackOverflow thread that I can't find now:

adb shell "service call iphonesubinfo 1 | cut -c 52-66 | tr -d '.[:space:]'"

This is working on Android 11. If it's not working straight from CMD then type

adb shell

and then the rest of the command (service call ...)

0
ale5000 On

The script created by me extract all device information (including all IMEI numbers) and it theoretically works on all devices.

It is here: https://github.com/micro5k/microg-unofficial-installer/blob/main/utils/device-info.sh

If it doesn't work on a device that you have you can create a ticket at the same repository.