How To Guide Flash Stock rom via fastboot - Motorola Defy (2021)

I used this script to flash stock rom via fastboot.
Script wipes all data !
Download stock firmware here.
Motorola Defy 2021 XT2083-9 Stock Firmware​
#!/bin/sh
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio.img
fastboot reboot-bootloader
sleep 5
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dtbo dtbo.img
fastboot flash vbmeta vbmeta.img
fastboot flash super super.img_sparsechunk.0
fastboot flash super super.img_sparsechunk.1
fastboot flash super super.img_sparsechunk.2
fastboot flash super super.img_sparsechunk.3
fastboot flash super super.img_sparsechunk.4
fastboot flash super super.img_sparsechunk.5
fastboot flash super super.img_sparsechunk.6
fastboot flash super super.img_sparsechunk.7
fastboot flash super super.img_sparsechunk.8
fastboot erase userdata
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot
Click to expand...
Click to collapse

Optionally you can add "fastboot oem lock" as the last command before reboot if you want to relock bootloader.

Related

Bricked XT1922-3. Need help :(

Hi, I have bricked my phone when I tried to flash my stockboot en recovery img files. What happens is that everytime I reboot the phone, it automatically reboots to the bootloader. I can access twrp.
I tried to flash stock firmware myself, but I flashed XT1921-3 instead of XT1922-3 because I couldnt find the right version. Nothing changed. I also tried to flash a GSI ROM and nothing changes there as well. Can someone help me out?
I managed to get my hands
You will have to pass the last stock in 9.0 for your G6 play, I did it in mine and I go back I was with an equal problem
i am used this version for my cellphone XT1922-5_ALJETER_RETBR_9.0_PPP29.55-25_cid50_subsidy-DEFAULT_regulatory-XT1922-5-BRAZIL-MANAUS_CFC you used similar version
in fastboot my solucion
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 vendor vendor.img
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
Worked like a charm for my Xt1922-3 RETEU.

Unbricking Boost Mobile G6 Play

I need some help unbricking the boost mobile g6 play. I have no OS installed now, only twrp. I can get into fastboot but cant push a file, unless through MicroSD slot, to the phone.
Does anyone have a link to the zip for boost mobile? I cant find it.
I know this will be done through fastboot, but what commands are needed?
you have to use the sprint firmware
https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
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 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 vendor vendor.img
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
Starkiller2 said:
you have to use the sprint firmware
https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
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 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 vendor vendor.img
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
Click to expand...
Click to collapse
Seems easy enough. thanks.

how to instal stock oreo after a custom rom ??

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

Return too stock android 9 impossible ?

Hello,
I have some problems with the moto z2 force XT1789-06
The baseband version in bootloader is empty and when i flash android 8 there is no wifi and mobil connection.
I read many threads about the problem.
My problem is i cant flash android 9 over adb fastboot the device is not booting.
I read that when the device was already running with android 9 modem the modem from android 8 ist not working.
anyone found a solution for this ?
MFG
Oblivionevil
Got it i use XT1789-06_NASH_RETEU_SS_9.0_PPX29.159-19_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
and
fastboot oem fb_mode_set
fastboot getvar max-sparse-size
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 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 system.img_sparsechunk.6
fastboot flash system_b system_other.img
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase cache
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot -w
fastboot reboot-bootloader
same prblem
Oblivionevil said:
Got it i use XT1789-06_NASH_RETEU_SS_9.0_PPX29.159-19_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
and
fastboot oem fb_mode_set
fastboot getvar max-sparse-size
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 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 system.img_sparsechunk.6
fastboot flash system_b system_other.img
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase cache
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot -w
fastboot reboot-bootloader
Click to expand...
Click to collapse
what fastboot did you use? That was the original fw with which you set running previously?

IMEI missing. Revert to stock rom? Which one?

Hello,
I got an unlocked Moto G7 Play from ebay and apparently flashed LineageOS successfully. Set up all my apps etc, but when it was time to move my SIM card over, Mobile Network is grayed out, and About Phone -> IMEI said unknown.
It sounds like I need to revert to a stock rom to try to get the IMEI back, but which ROM?
This should be a US Moto G7 Play, unlocked - no carrier.
Also, once I find the right ROM how do I install it?
I am primarily a Linux user, not Windows, if that matters.
Thank you very much for any help.
Its best if you flash with windows, but it's possible with Linux too, but I had driver problems and computer wouldn't recognize phone.
Link to Stock ROM:
https://mirrors.lolinet.com/firmware/moto/channel/official/RETUS/XT1952-4_CHANNEL_RETUS_10_QPYS30.85-23-8-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Flash with these commands:
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 bluetooth BTFM.bin
fastboot flash dsp dspso.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 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 system_b system_other.img
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot flash system_b.img_sparsechunk.0
fastboot flash system_b.img_sparsechunk.1
fastboot flash system_b.img_sparsechunk.2
fastboot flash system_b.img_sparsechunk.3
fastboot flash system_b.img_sparsechunk.4
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot flash vendor vendor.img_sparsechunk.3
fastboot flash vendor vendor.img_sparsechunk.4
fastboot flash vendor vendor.img_sparsechunk.5
fastboot flash vendor vendor.img_sparsechunk.6
fastboot erase carrier
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
mrsiri said:
Its best if you flash with windows, but it's possible with Linux too, but I had driver problems and computer wouldn't recognize phone.
Link to Stock ROM:
https://mirrors.lolinet.com/firmware/moto/channel/official/RETUS/XT1952-4_CHANNEL_RETUS_10_QPYS30.85-23-8-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Flash with these commands:
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 bluetooth BTFM.bin
fastboot flash dsp dspso.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 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 system_b system_other.img
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot flash system_b.img_sparsechunk.0
fastboot flash system_b.img_sparsechunk.1
fastboot flash system_b.img_sparsechunk.2
fastboot flash system_b.img_sparsechunk.3
fastboot flash system_b.img_sparsechunk.4
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot flash vendor vendor.img_sparsechunk.3
fastboot flash vendor vendor.img_sparsechunk.4
fastboot flash vendor vendor.img_sparsechunk.5
fastboot flash vendor vendor.img_sparsechunk.6
fastboot erase carrier
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
Click to expand...
Click to collapse
Had the same problem, this worked perfectly. Some of the commands are redundant as there aren't any files with that name in the rom zip (system sparsechunk 9 to 12 for example) but just ignoring them works just fine. Thanks.

Categories

Resources