1-Select model
2-Select interface port in select port part
3-Goto general service
4-Insert imei in IMEI1
5-Press repair imei button
6-Remove usb and insert uart cable to phone(step2)
7-Repair successfully
please tested this code after repair for fix network
s4 imei change - YouTube