I accidentally ran
fastboot erase all and now the IMEI isn't being recognized on stock ROM.
fastboot getvar imei returns the correct number, but no matter what ROM I try, it doesn't show in settings or when I dial *#06# (showing as 0). I've flashed the stock 5.1.1, 6.0.1, and the 7.1.1, ROM, but to no avail. My device is the XT1563.
Is there any way to get back my IMEI number?