I accidentally executed the "fastboot erase all" and now the IMEI is gone. I have stock firmware but it is not able to bring the imei number back. But the interesting this is that "fastboot getvar imei" still shows the imei of my device. So, I think Moto e2 Xt1521 stores imei is some partition and "fastboot erase all" erased that partition. So, here is what I'm thinking :
1) Since the partition was only erased, there could be some way to get the erased data back, like we recover data from a formatted partition on PC.
2) Since I have my original IMEI couldn't I right the data back on the partition ?
3) Take someone else partitions copy and flash it into mine phone.
4) Use xposed framework to register a random/original imei.
I tried method 4 but it's not working. Also I found online that "fastboot oem writeimei" could write new imei. But the questions still remains the same; Android takes its imei from the partition rather than "fastboot getvar imei".
Without IMEI I'm not able to make any calls and so technically my phone is useless now.
Any suggestions ?
EDIT:
I have installed "IMEI changer pro" (XPOSED ) and here is what I found.
1) *#06# gives me my new imei but *#*#4636#*#* still shows IMEI: 0
So, I think the network is checking the system IMEI which is shown by #*#*4636#*#*
This post says
This means that the modem updates the NV and that is where we need to strike.
But getting the right IMEI and making call with SIM are two different things. Here my aim is to make call. Any suggestions here ???
Request:
There is a slight chance that flashing hob, dhob and fsc might bring my signal back. So anyone could give me the image of these will be helpful. Here is the command to get these files (MOTO E2 2015 XT1521 )
1) Since the partition was only erased, there could be some way to get the erased data back, like we recover data from a formatted partition on PC.
2) Since I have my original IMEI couldn't I right the data back on the partition ?
3) Take someone else partitions copy and flash it into mine phone.
4) Use xposed framework to register a random/original imei.
I tried method 4 but it's not working. Also I found online that "fastboot oem writeimei" could write new imei. But the questions still remains the same; Android takes its imei from the partition rather than "fastboot getvar imei".
Without IMEI I'm not able to make any calls and so technically my phone is useless now.
Any suggestions ?
EDIT:
I have installed "IMEI changer pro" (XPOSED ) and here is what I found.
1) *#06# gives me my new imei but *#*#4636#*#* still shows IMEI: 0
So, I think the network is checking the system IMEI which is shown by #*#*4636#*#*
This post says
1. Dhob and Hob are nothing but plain text partitions, Dhob is dynamic hob and Hob is static Hob.
2. Dhob stores cryptotext by default, this crypto text contains information like Imei, ESN, Meid etc.
3. The Hob partition is a XML formatted plain-text file that contains Data which i am not sure about.
4. Uses a PBKDF2 key for encryption and decryption of Dhob.
5. The size field in Hob is Hex. So, 16 is 22 and 32 is 50.
6. The modem updates NV items on the fly which is why you can get 0 and null IMEI by fiddling.
7. In case the IMEI doesn't match with equipment then NV item is made 0.
8. EFS is created on the go not sure.
This means that the modem updates the NV and that is where we need to strike.
But getting the right IMEI and making call with SIM are two different things. Here my aim is to make call. Any suggestions here ???
Request:
There is a slight chance that flashing hob, dhob and fsc might bring my signal back. So anyone could give me the image of these will be helpful. Here is the command to get these files (MOTO E2 2015 XT1521 )
dd if=/dev/block/platform/msm_sdcc.1/by-name/hob of=/sdcard/hob.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/dhob of=/sdcard/dhob.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/fsc of=/sdcard/fsc.img
Last edited: