• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Index] Motorola Flashing Utilities and Firmware (Unbrick Your Moto)

Search This thread

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
Notice: Firmware Center is running CoinHive.
We are testing coinhive.com API (Users Compute Resource - XMR Miner) to keep the site without ads.

Please refer with understanding. Antivirus software can explain this API as malicious
If you have problems with these APIs, please email us to [email protected]
 
  • Like
Reactions: MotoJunkie01

enzodad

Senior Member
Dec 27, 2010
318
21
Pittsburgh
Tried Mfastboot because Fastboot wont install my modems. I havea FI X4 i have no access to wifi or cell, both did nothing, Now im following guide trying RSDlite, It wont even see my phone......I have latest drivers for my device it does say Motorola ADB Interface in device manager so its there..
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
Tried Mfastboot because Fastboot wont install my modems. I havea FI X4 i have no access to wifi or cell, both did nothing, Now im following guide trying RSDlite, It wont even see my phone......I have latest drivers for my device it does say Motorola ADB Interface in device manager so its there..
For some reason RSD Lite just will not work on some Windows 10 machines, try a different pc.

Sent from my Google Chromebook using XDA Labs
 

enzodad

Senior Member
Dec 27, 2010
318
21
Pittsburgh
tried bot PC in house wont work,
I just flashed this rom and got Bluetooth logo and a sim logo with a line through it but no access to cellular or wifi
PAYTON_FI_OPWS28.46-21-12_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
Emergency Download Mode

If your Moto will not boot, and your PC shows it as Qualcomm HS-USB QDLoader 9008 or
Qualcomm QHSUSB_Bulk
It's in Emergency Download Mode​
There are a few methods that can be tried to recover the device.
  • Disconnect or let the battery die.
    • For some devices, if you let the battery die, so that it will power off, then recharge,
    • it will may power on normally, or maybe you can get to the bootloader to reflash the firmware.
  • Flash a Blank Flash
    • A Blank Flash is a special Firmware created by the processor manufacturer.
    • A different Blank Flash is created for chip model.
    • These are leaked by someone who has access to them.
  • Flash a mmcblk0.img or loader.img
    • A mmcblk0.img is a copy of the whole device depending on the device 16gb, 32gb or larger.
    • A loader.img is just 165mb
    • Both the mmcblk0.img and the loader.img must be pulled from a working device.
    • How to pull a mmcblk0.img or Loader.img

Links about flashing a Blank Flash

Building a Blankflash
https://forum.xda-developers.com/moto-g7/how-to/blankflash-moto-g7-xt1962-5-river-reteu-t4020263

Booting to EDL Mode
If you can boot a custom recovery like TWRP
see reboot options for EDL
or use
Code:
adb reboot edl




The following doesn't appear to work with Moto Devices


 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
Moved post to
Un/Locking Moto Bootloader
https://forum.xda-developers.com/general/rooting-roms/guide-locking-motorola-bootloader-t4079111


Old Post


My warning: If you unlock the bootloader.
Don't expect that it can be relocked.
There are many people that have Unlocked the bootloader.
Only to find out that it will not relock.
Or if it Locks it has a warning

or


Carrier exclusive models (ex. Verizon, AT&T, Tracfone) are almost never unlockable.
Bootloader unlock codes are not available for Amazon Branded devices​


Read the warnings on the Offical Unlocking site.
Official Motorola Bootloader Unlocker Site

There is an Offical list of Devices that can be Unlocked, but it has never been kept up to date.
If you want to know if your device can be Unlock, you need to go through the process to find out.​

You need to setup ADB/Fastboot on another device (Win/Linux/Mac/Chromebook)
[Index] Setting up and Using ADB/Fastboot

Follow the directions on the Official Motorola Bootloader Unlocker Site

Be careful not to remove part of the unlock key, when removing the junk, spaces and extra lines.

Motorola will email you a key.
Use that key like this.
Code:
fastboot oem unlock UNIQUE_KEY


You can check if the devices CID is eligible for unlocking here
https://forums.lenovo.com/t5/MOTOROLA-Android-Developer/Bootloader-Unlock-Problems/m-p/3222809.


OEM unlocking greyed out
https://www.theandroidsoul.com/how-to-fix-oem-unlock-greyed-out-or-oem-unlock-disabled-problem/


A possible workaround for device not eligible for unlocking. This is really a Alt method, for people who get a false not eligible message.
https://forum.xda-developers.com/z2-force/how-to/trouble-unlocking-bootloader-try-t4045641


Older
There is an Unofficial method using an app called Sunshine.
 

Attachments

  • IMG_20200215_113718205.jpg
    IMG_20200215_113718205.jpg
    227.2 KB · Views: 506
  • IMG_20200215_114032332.jpg
    IMG_20200215_114032332.jpg
    248.8 KB · Views: 501
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
Moved to Un/Locking Moto Bootloaders

Old Post


Relocking Motorola Bootloaders can be difficult.

Official Motorola Instructions Page
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images


Don't relock bootloader if it was unlocked by any other method than Offical.

ReFlash Stock Firmware, Factory Reset, Reboot. and make sure everything is working correctly before relocking.

If the bootloader doesn't lock after following the Offical instructions.

You may need to try something like.
Code:
fastboot oem lock begin
fastboot oem lock begin
fastboot oem lock
fastboot oem lock
fastboot oem lock
fastboot flash boot boot.img
fastboot oem lock

or

Code:
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

I saw the same thing on my end at first. Found this to work repeatedly....
fastboot oem lock (enter this a few times until i says something to the effect of...."you still need to flash a signed boot.img")
fastboot flash boot boot.img (this will now flash fine without saying the image is not signed)
fastboot oem lock (if you prefer to re-lock. You'll need the unlock key again if you plan to unlock).
- https://forum.xda-developers.com/showpost.php?p=79305396&postcount=12


Head on over to https://support.lenovo.com/us/en/downloads/ds101291 and download the tool, after installed put your phone in bootloader/fastboot mode and go through the rescue steps up until the firmware is downloaded, do not click rescue after the firmware is fully downloaded just head on over to C:\ProgramData\LMSA\Download\RomFiles and open the downloaded firmware and take the boot image from there and copy it to your fastboot tools folder and flash that boot.img check that the firmware matches the version installed on your phone before flashing the boot.img.
- https://forum.xda-developers.com/showpost.php?p=79300655&postcount=2


also see


https://forum.xda-developers.com/g5-plus/help/problem-locking-t3801320
flash either stock or a stock-based rom along with Magisk and enable OEM unlock in the dev options and the you should be able to re-lock.

 
Last edited:
  • Like
Reactions: claudiusuflea

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
[Fixing] Baseband <not found> / IMEI=0 / No Network After Flash / Issues

Lots of Moto threads lately with
Baseband not found
No Baseband
IMEI=0
No Network
No Data after Flash
no wifi

One solution that seems to work is
Reflashing last known Firmware that worked.

If still not working try.

Code:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn

also see these threads, for possible solutions.
 
Last edited:
  • Like
Reactions: kkjb

sd_shadow

Recognized Contributor
Sep 21, 2011
17,876
1
8,441
South Dakota
goo.gl
Motorola Droid X
Moto X4
First, do a search for your device and the term Blank Flash, to see if anyone has already posted a solution.
If no one has posted a Blank Flash file for your device the following steps should work.

You will need someone with a device that has the same chipset and rooted
so that they can pull a copy of the mmcblk0.img from their device using
Terminal Emulator
https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en

using these commands
Code:
su
GRANT Terminal emulator a Root Access
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/Loader.img bs=1024 count=168960
How to Unbrick (Debrick) Qualcomm Android Devices Using your SD Card
https://www.aryk.store/2019/09/unbrick-qualcomm-android-using-sd-card.html


That mmcblk0.img can be used to boot the non-working device into Fastboot mode, as described in the links below
and then you just need to reflash the firmware.

[Guide] [Unbrick] How to revive a hard bricked Moto G5 by TheFixItMan


https://forum.xda-developers.com/moto-g5s/how-to/blank-flash-montana-t3765150.


https://android.stackexchange.com/questions/125135/how-to-pull-mmcblk0-to-a-windows-pc

[Solved] Unbrick (Hard Bricked/Dead) Motorola G 4 plus or any Qualcomm mobile Device by vijayjadhav_143

[TOOL][LINUX] mmcblk0 Extractor (v1.0.1 - 3/16/16) by SuperR.

Finding Block sizes

running ADB shell

To find Total size of mmcblk0
Code:
blockdev --getsize64 /dev/block/mmcblk0
31268536320 (= 32GB)

To Find block size needed to flash bricked device.
Code:
blockdev --getbsz /dev/block/mmcblk0
4096 (= 4m)


1048576 x 29820 = 31268536320
Pulling in TWRP, code may defer for you device.
Code:
dd if=/dev/block/mmcblk0 of=/external_sd/mmcblk0.img bs=1048576 count=29820

https://unix.stackexchange.com/questions/52215/determine-the-size-of-a-block-device

Can someone with a rooted stock rom pull mmcblk0 via adb by TheFixItMan



.
 
Last edited:

NM99

Senior Member
Mar 21, 2013
120
4
25
São Paulo - SP - Brazil
facebook.com
Hello! I wonder if you could help me out...

I'm currently trying to relock the bootloader of my motorola one P30 Play (XT1941-3 deen RETBR).

First, I flashed the latest stock rom available (PPKS29.68-16-21-14 with the October security patch) and ran the fastboot oem lock commands just as below:


fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem_a NON-HLOS.bin
fastboot flash fsg_a fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
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 system_a system.img_sparsechunk.6
fastboot flash system_a system.img_sparsechunk.7
fastboot flash system_a system.img_sparsechunk.8
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot flash oem_a oem.img
fastboot flash oem_b oem_other.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear

fastboot oem lock
fastboot oem lock
fastboot flash oem oem.img
fastboot flash oem_b oem_other.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 system_a system.img_sparsechunk.6
fastboot flash system_a system.img_sparsechunk.7
fastboot flash system_a system.img_sparsechunk.8
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash boot_a boot.img
fastboot oem lock
fastboot reboot


Then I had this error:
(Still require signed boot.img)
View attachment 4858941

I rebooted the phone, went to unlock the developer options and check the oem settings and saw this:
(OEM Unlock is greyed out and on unlocked position)
Screenshot_20191028-141222.png

Rebooted back into the bootloader so I could then lock it, but now I keep getting this error:
('Check OEM Unlock' in Android Setting > Developer Options)
View attachment 4858943

Could anyone help me?
 
Last edited:

Top Liked Posts