Guys I have found a way to get the imei back in stock
i can confirm that we can return to stock ;-D
without loosing IMEI
Reflash a 32bits TWRP recovery
wipe DATA
reboot to bootloader
use this command to flash stock ROM:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.o
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Don't run those commands (IMEI = 0)
fastboot erase modemst1
fastboot erase modemst2
After that you can boot the stock rom.
If you want to relock the boot loader, use this:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash boot boot.img
fastboot oem lock
Reboot.done
I have tried this and was successfully got back imei on stock
riyan65 said:
Guys I have found a way to get the imei back in stock
i can confirm that we can return to stock ;-D
without loosing IMEI
Reflash a 32bits TWRP recovery
wipe DATA
reboot to bootloader
use this command to flash stock ROM:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.o
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Don't run those commands (IMEI = 0)
fastboot erase modemst1
fastboot erase modemst2
After that you can boot the stock rom.
If you want to relock the boot loader, use this:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash boot boot.img
fastboot oem lock
Reboot.done
I have tried this and was successfully got back imei on stock
Click to expand...
Click to collapse
After OTA upsate the IMEI will become 0
Thanks, I hope someone tries this and confirms it's working.
Yes, it has worked for my device
Bar0ns600 said:
After OTA upsate the IMEI will become 0
Click to expand...
Click to collapse
No ota update is available.i have checked that
riyan65 said:
No ota update is available.i have checked that
Click to expand...
Click to collapse
Yeah available but if you actually install it I think it will make the IMEI 0 after the IMEI being fine :/
If u have kept a back up of efs in custom rom and restore it in stock then I'm won't get lost after update.
To get 4g/LTE service on stock.
First get a custom rom then go to fastboot mode and run these commands
Fastboot erase modemst1
Fastboot erase modemst2
And reboot to rom then u will get LTE in custom rom.
Using Twrp 64x bit make a back up of efs.
Then flash the stock rom with standard fastboot method without using the above mentioned code.
At this moment,after reboot u may get back Imei and LTE.if LTE is not available then restore efs through Twrp 64x bits.
riyan65 said:
If u have kept a back up of efs in custom rom and restore it in stock then I'm won't get lost after update.
Click to expand...
Click to collapse
You will have to install twrp for each update! ??
Just install all updates and then install Twrp to get the Imei back.it is just waste of time to install Twrp after every update.
Hi,
I'll already done that but after OTA i loose IMEI
Don't use OTA for updates, use adb to update your device in stock recovery. Then install Twrp 64x and restore efs.
It seem like many of are not getting imei after doing this also.let me explain you in a clear way
Step1:-run on a custom rom such as lineage,aosp...
(Note:-if you have 4g/LTE in custom rom then skip step2)
Step2:-turn off your phone and get into bootloader and run the following commands
Fastboot erase modemst1
Fastboot erase modemst2
Step3:-make a back up of efs in Twrp 64x bits(save the efs in external memory so it will not get erased) and erase data,cache only
Step4:-now flash 32xbits Twrp then
Step5:-flash stock rom using following commands
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.o
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Step6:-now reboot your phone
Step7:-you will get the Imei and 4g/LTE
Step8:-don't use OTA, use adb you can download updates from here
https://drive.google.com/drive/mobile/folders/1BkpfHvgQ477NViLYvzgv88Fgq3SSt5Py?usp=sharing
Step9:-reboot to stock recovery and select apply update from adb
Step10:-run the following command to apply update
Adb sideload filename.zip
Step11:-In may security patch you may lose imei
Step12:-now install Twrp 64x bits and restore efs from it which you have make it before
Step13:-reboot your device.done
Now you will get the Imei,4g/LTE and latest update.
Let me know if it works for you.
riyan65 said:
Guys I have found a way to get the imei back in stock
i can confirm that we can return to stock ;-D
without loosing IMEI
Reflash a 32bits TWRP recovery
wipe DATA
reboot to bootloader
use this command to flash stock ROM:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.o
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Don't run those commands (IMEI = 0)
fastboot erase modemst1
fastboot erase modemst2
After that you can boot the stock rom.
If you want to relock the boot loader, use this:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash boot boot.img
fastboot oem lock
Reboot.done
I have tried this and was successfully got back imei on stock
Click to expand...
Click to collapse
After doing ur procedure I didn't get any network bro it showing no network only
Did you restore the efs???
Help me bro
Hello, 1 day ago I was with the firehound rom without any problem, only that in some applications the stock camera did not work, I decided to return to the stock as usual, but, this time I start without a signal, my imei became 0, please help me recover my imei bro, my copy of efs was lost.
First go back to custom rom and then make a back up of efs then follow the above commands.
riyan65 said:
First go back to custom rom and then make a back up of efs then follow the above commands.
Click to expand...
Click to collapse
Ready bro, I do that, I have signal in stock ROM again but only 3g, is a great advance ?, do you know how i get 4g again?
Oshecy777 said:
Ready bro, I do that, I have signal in stock ROM again but only 3g, is a great advance ?, do you know how i get 4g again?
Click to expand...
Click to collapse
You can't get 4g back... If you knew what you were doing before this wouldn't even happen
Bar0ns600 said:
You can't get 4g back... If you knew what you were doing before this wouldn't even happen
Click to expand...
Click to collapse
Omfg really? My moto g5 become's a brick.
I know that dude, is the first time something like this happens to me, I had a backup of my stock but unfortunately I lost it if you do not believe I would not be here, and it's very strange, because when I returned to the stock rom via adb I started with a signal except that I started without signal and IMEI.
But now is working the 3g in stock ROM.
Hello everbody,
Here is my story of how I managed it to have to OS on my Z2 Force (XT1789-6 with 6gb). I wanted to have lineagos on my smartphone and installed it before on my smartphone therefore I thought it would be easy.
1. I visited the official page and followed there instruction until the twrp instruction
HTML:
https://wiki.lineageos.org/devices/nash/install
. I did an oem unlock and installed twrp temporally (fastboot boot twrp-3.2.3-1-nash.img) and did a full backup.
2. I was reading on this forum that I need Oreo on my phone to install lineage, therefore I tried to update it. All attempts to update it failed. I was able to download updates to my phone and it started to install but it always failed.
3. I tried to flash the fitting Oreo Version on my phone (XT1789—06) OPXS27.109-49-5 from
HTML:
https://forum.xda-developers.com/z2-force/development/factory-image-moto-z2-force-nash-retail-t3699306
with the sequence in #5 but it would only flash the bootloader and fails for the rest (erase works).
I flashed no gpt.bin!
*(fastboot flash bootloader bootloader.img) -> only when needed!
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash bluetooth BTFM.bin
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash system_b system_b.img_sparsechunk.3
fastboot flash oem oem.img
fastboot erase cache
fastboot erase carrier
fastboot erase ddr
fastboot reboot
Click to expand...
Click to collapse
Fastboot menu now showed a modified Version
4. Since the official website does not tell about having Oreo on you smartphone I wanted to give it a try and proceeded with their instruction. I wiped the system and tried to install lineage with help of TWRP with resulted in Error 255.
5. I tried to Recover with TWRP but it told me that no partition is selected. Fastboot menu shows that there is no partition a/b.
I tried to flash Nougat from the same source like Oreo which works for bootloader (and gpt.bin) and fails for the rest
xxx>fastboot flash modem NON-HLOS.bin
Sending 'modem__a' (97411 KB) OKAY [ 2.684s]
Writing 'modem__a' (bootloader) Invalid partitio
n name modem__a
FAILED (remote failure)
Finished. Total time: 2.700s
6. No it shows me in fastboot that I have an unmodified oem locked phone. On start up it tells me that I have a corrupted phone and instead of the yellow unlocked bootloader warning its red. Its starts over and over again until I start fastboot.
Can you suggest me how I can get back to stock or to lineage?
b.bew said:
Hello everbody,
Here is my story of how I managed it to have to OS on my Z2 Force (XT1789-6 with 6gb). I wanted to have lineagos on my smartphone and installed it before on my smartphone therefore I thought it would be easy.
1. I visited the official page and followed there instruction until the twrp instruction
HTML:
https://wiki.lineageos.org/devices/nash/install
. I did an oem unlock and installed twrp temporally (fastboot boot twrp-3.2.3-1-nash.img) and did a full backup.
2. I was reading on this forum that I need Oreo on my phone to install lineage, therefore I tried to update it. All attempts to update it failed. I was able to download updates to my phone and it started to install but it always failed.
3. I tried to flash the fitting Oreo Version on my phone (XT1789—06) OPXS27.109-49-5 from
HTML:
https://forum.xda-developers.com/z2-force/development/factory-image-moto-z2-force-nash-retail-t3699306
with the sequence in #5 but it would only flash the bootloader and fails for the rest (erase works).
Fastboot menu now showed a modified Version
4. Since the official website does not tell about having Oreo on you smartphone I wanted to give it a try and proceeded with their instruction. I wiped the system and tried to install lineage with help of TWRP with resulted in Error 255.
5. I tried to Recover with TWRP but it told me that no partition is selected. Fastboot menu shows that there is no partition a/b.
I tried to flash Nougat from the same source like Oreo which works for bootloader (and gpt.bin) and fails for the rest
xxx>fastboot flash modem NON-HLOS.bin
Sending 'modem__a' (97411 KB) OKAY [ 2.684s]
Writing 'modem__a' (bootloader) Invalid partitio
n name modem__a
FAILED (remote failure)
Finished. Total time: 2.700s
6. No it shows me in fastboot that I have an unmodified oem locked phone. On start up it tells me that I have a corrupted phone and instead of the yellow unlocked bootloader warning its red. Its starts over and over again until I start fastboot.
Can you suggest me how I can get back to stock or to lineage?
Click to expand...
Click to collapse
Try this commands:
fastboot --set-active=_a
pause
fastboot reboot bootloader
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader_a bootloader.img
fastboot flash modem_a NON-HLOS.bin
fastboot flash fsg_a fsg.mbn
fastboot flash bluetooth_a BTFM.bin
fastboot flash dsp_a adspso.bin
fastboot flash logo_a logo.bin
fastboot flash boot_a boot.img
fastboot flash system_a system.img_sparsechunk.0
fastboot flash system_a system.img_sparsechunk.1
fastboot flash system_a system.img_sparsechunk.2
fastboot flash system_a system.img_sparsechunk.3
fastboot flash system_a system.img_sparsechunk.4
fastboot flash system_a system.img_sparsechunk.5
fastboot flash oem_a oem.img
fastboot erase modemst1
fastboot erase modemst2
fastboot erase carrier
fastboot erase cache
fastboot erase userdata
fastboot erase ddr
fastboot flash fsg fsg.mbn
fastboot flash bluetooth BTFM.bin
fastboot oem fb_mode_clear
fastboot -w
fastboot --set-active=_b
fastboot reboot bootloader
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader_b bootloader.img
fastboot flash modem_b NON-HLOS.bin
fastboot flash fsg_b fsg.mbn
fastboot flash bluetooth_b BTFM.bin
fastboot flash dsp_b adspso.bin
fastboot flash logo_b logo.bin
fastboot flash boot_b boot.img
fastboot flash system_b system.img_sparsechunk.0
fastboot flash system_b system.img_sparsechunk.1
fastboot flash system_b system.img_sparsechunk.2
fastboot flash system_b system.img_sparsechunk.3
fastboot flash system_b system.img_sparsechunk.4
fastboot flash system_b system.img_sparsechunk.5
fastboot flash oem_b oem.img
fastboot erase modemst1
fastboot erase modemst2
fastboot erase carrier
fastboot erase cache
fastboot erase userdata
fastboot erase ddr
fastboot flash fsg fsg.mbn
fastboot oem fb_mode_clear
fastboot -w
fastboot --set-active=_a
fastboot reboot bootloader
Wow thanks. Worked out perfectly.
So many thanks, this helped me from a hard brick
i have a 8.1 custom rom and want to upgrade to pie rom
put i have to change into Official Stock Oreo 8.1.0 first (i think !)
so what should i do
please help
As long as your base firmware is oreo (stock oreo was on your device before you flashed a custom rom) you just need to format system data cache & flash another custom rom
If you want to flash stock firmware just download it and flash it with fastboot commands - there's loads of step by step guides if you Google how but here are the commands
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot
Download firmware from https://mirrors.lolinet.com/firmware/moto/cedric/official/
TheFixItMan said:
As long as your base firmware is oreo (stock oreo was on your device before you flashed a custom rom) you just need to format system data cache & flash another custom rom
If you want to flash stock firmware just download it and flash it with fastboot commands - there's loads of step by step guides if you Google how but here are the commands
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot
Download firmware from https://mirrors.lolinet.com/firmware/moto/cedric/official/
Click to expand...
Click to collapse
sorry but i really dont know if i have oreo as a stock
i think it was nouget as stock
what should i do
and please get me a link how to instal stock rom using ADB
Hatem hesham said:
sorry but i really dont know if i have oreo as a stock
i think it was nouget as stock
what should i do
and please get me a link how to instal stock rom using ADB
Click to expand...
Click to collapse
You don't use adb to flash stock firmware - you use fastboot
The commands are written above with link to the firmware
I am not going to Google - how to install stock firmware on a moto g5 for you. I'm sure you are capable of doing that and reading the guides for a step by step walk through if you don't understand how to use the fastboot commands written above
Hello friends, came out OTA update for my moto z2 Brazilian version, but I have twrp and magisk installed. Do I need to remove both and reinstall the original oreo firmware or can I upgrade normally?
ps: sorry i'm kinda noobie
EDIT: resolved: method posts below :victory:
You should leave it as without any modification. And install the update. Source: Own experience
dark-basic said:
You should leave it as without any modification. And install the update. Source: Own experience
Click to expand...
Click to collapse
so if i install stock recovery and remove magisk completely can i upgrade without problems?
viniisiilvaa said:
so if i install stock recovery and remove magisk completely can i upgrade without problems?
Click to expand...
Click to collapse
after some internet research, i did the update as follows.
MOTO Z2 PLAY MODEL XT1710-07 (I don't know if it works on other models)
1 - be in the version "RETBR OPSS27.76-12-25-23"
2 - completely removed magisk
3 - original re-flash recovery from last rom OREO from fastboot (XT1710-07_ALBUS_RETBR_8.0.0_OPSS27.76-12-25-23_cid50 ...) to remove TWRP
4 - Download Pie rom (XT1710-07_ALBUS_RETBR_9.0_PPS29.133-30_cid50 ...)
5 - Flash from fastboot with the following commands (I did not wipe not to lose the files)
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
took about 15-25 minutes and went back to normal operation. :victory::victory::victory:
PS: I am not responsible if your phone has a problem after this process. :good:
Hi there guys,
I need help with my phone. I've flashed TWRP on it so i would be able to flash a custom ROM. Everything went fine and i was able to install the custom ROM without errors. Now, everytime i start my phone it only shows the "No Command" screen with an open belly Droid. The only way i'm able to boot it is going to fastboot mode and booting into Factory Mode.
I tried flashing the stock rom with several different methods, and all ends in the same, the "no command" screen on boot.
It's now flashed with the stock rom but i can't get it to boot normally. I've tried Formatting /data, /cache, everything in my hands. What should i do?
how, exactly, did you flash twrp?
using the instructions provided on twrp website
and what procedure did you use to re-flash stock?
i tried using fastboot and also the "Rescue and Smart Assistant" app, both ended up with the same results
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
try doing this
hi there,
that's what i did when i mentioned that i flashed using fastboot...
sergiobaiao said:
hi there,
that's what i did when i mentioned that i flashed using fastboot...
Click to expand...
Click to collapse
these exact commands in this exact order?
yes, exactly
then unfortunately im out of ideas