To repair or restore the IMEI on a device with a MediaTek MT6580 chipset, you generally need to access the system's Engineering Mode or use specialized service tools. 1. Engineering Mode Method
Invalid IMEI numbers on MediaTek MT6580 devices can be restored by using MTK Engineering Mode (code *#*#3646633#*#* ) to input the original IMEI via the mt6580 imei repair code
Here is the story of how that code works and why it matters. The Mystery of the Missing Signal To repair or restore the IMEI on a
adb devices
adb shell
su
echo 'AT+EGMR=1,7,"354123456789012"' > /dev/pttycmd1
echo 'AT+EGMR=1,10,"354123456789013"' > /dev/pttycmd1
reboot
*#06#. Both IMEIs appeared.When codes and ADB fail, you must use MediaTek's official low-level tools. These do NOT require root, but they do require the correct scatter file for your exact model. Rooted using Magisk patched boot image
AT +EGMR=1,7,"123456789012345"