IMEI lost and recovered!
I decided to share my horrible experience - as title says - with lost IMEI.
Some of you may remember that couple of months ago there were some posts here regarding lost IMEI and possible solutions and questions how is it possible to loose IMEI in the first place.
I remember at least three guys managed to do that by running "fastboot erase all".
What was my story?
Yesterday I decided to flash a new recovery (last two months I havenīt flashed anything and wasnīt active on the forum because of lack of time and I started to show signs of withdrawal syndrome
). My first mistake was that I flashed non-gpe recovery to my device with GPE rom, obviously that couldnīt work because of incompatibility in file systems. Nevermind, that happened before and itīs easy to go back to a proper recovery. But not this time. Tried hundred times, but flashing with fastboot always ended up by "OKAY" but the old recovery remained in place for some reason unknown to me. And also the system wouldnīt boot. Out of desperation I ran "fastboot erase recovery", that wouldnīt help either. In the end I got out of the situation by booting (not flashing) to a proper recovery (fastboot boot recovery recovery.img) and restoring system from a nandroid backup. All seemed fine. ROM booted OK and then I realized I had no service and IMEI: unknown.
The only reason for that was obviously this unfortunate move: fastboot erase recovery. Anything else I did was pretty much "normal".
Here comes the second part of the story.
I downloaded my cloud-stored pds.img backup (lucky me I have it I thought to myself) but that didnīt prove to be of any use.
dd if=/sdcard/pds.img of=/dev/block/platform/msm_sdcc.1/by-name/pds
as seen on
nothing happened. Dd ran too fast, just a fraction of a second and after reboot still IMEI: unknown.
To cut the long story short, after hours of searching for a possible solution (and thinking what would be my next phone) I finally came across this post:
and tried that very easy method and it worked!
1. donīt use fastboot erase "all" or "recovery" (other partitions may be erased without problems)
2. pds partition backup and restore method didnīt work for me
3. working solution (at least for me):
Remove sim, flash stock firmware using standard methods, boot to home screen, power off, insert sim, reboot and your IMEI should be back!
Device: Moto G XT1032 bought from Amazon.de
Current ROM: GPE 4.4.4
Previous ROMs: almost every stock firmware for XT1032 you can think of
Workflow: 1. read - 2. think - 3. try - 4. goto 1
Useful info: How to restore stock firmware
When flashing OTA updates of stock firmwares:
1. root is not an obstacle 2. XPosed is not an obstacle 3. use stock recovery or Philz recovery only