I've managed to lose my IMEI on my Moto X 2013/1st Gen/XT1052. I've tried the following things:
- flashed stock ROM
- removed SIM, flashed stock ROM, boot, power off, insert SIM
- erased modemst1 and modemst2 partitions
- fastboot oem writeimei (this replied "Restricted oem command")
- restoring PDS partition from a TWRP backup from when it was working fine.
I can read the IMEI (getvar, or via barcodes) in fastboot, so it's still there somewhere, but the android system can't seem to access it. Any suggestions would be appreciated
*#06#