Your phone must already be rooted using the latest version of Magisk.
Changing the IMEI that the carrier sees requires writing to the Non-Volatile (NV) memory or the EFS (Encrypting File System) partition where radio data is stored.
While technically possible on some devices, changing IMEI with Magisk is:
Magisk modules generally spoof the IMEI in the software rather than overwriting the hardware. change imei with magisk
Several open-source developers package IMEI spoofing scripts directly into flashable Magisk modules. Step 1: Obtain a Compatible Module
This is the most common method as it uses the Magisk systemless interface, meaning it doesn't permanently modify the system partition.
: Always back up your EFS partition via TWRP or a specialized tool before attempting this. Your phone must already be rooted using the
You will need a module or app that can interact with the system at a root level.
If dialing *#06# still shows your original hardware factory IMEI, the systemless intercept failed.
If you are repairing a device, the general process typically involves: You will need a module or app that
This method is more reliable but also easier for malware to intercept – use only trusted open-source LSposed modules.
: If done incorrectly, you can permanently "brick" your device’s cellular radio, leaving you unable to make calls or use mobile data.
Download an app like Device Id Changer or IMEI Changer Pro (available on various developer forums).