• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Guide] Using Fastboot.exe with Motorola devices

Search This thread

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Guide: Using Fastboot.exe with Motorola Devices

If your device has its own section please post in that section.​
You can ping me with @sd_shadow


MediaTek or Qualcomm Chip?
  • Do I have a MediaTek Device? see post #26
  • Info: If you have a MediaTek Chip see post #24
  • MediaTek and Fastboot.exe see post #17
  • Most Moto devices are Qualcomm See options below

  • Warning:
    • Know what software version is on your device before flashing see Post #2
    • Do not downgrade firmware with a locked bootloader, it may make the device unusable.
    • If you flash firmware for a different model, even if it is similar, it may make the device unusable.
Notice: Some devices on Android 10 and above now require fastbootd mode​



Flashing with fastboot.exe
First, watch this video, it's a bit old, but Root Junkie covers the steps very well.​
There are a few things you need.​

Batch script for Flashing firmware

Flashing Radio Only

Downgrading Moto Firmware​

Other Flashing Options​
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Device Model #, codename and software channel.

How to find the Device Model #, codename and software channel.

Motorola has different Firmware based on the Model/codename and Software Channel.

There are a few different ways to find the device codename and software channel.
  • Settings/About phone
  • DevCheck
    • System tab: Device= codename, SKU = model #
  • List of Motorola Codenames
  • bootloader info (This isn't always real clear)

    Preferred Method
  • Fastboot getvar all method (Device must be in AP Fastboot Flash Mode)
    Code:
    fastboot getvar all
    • Product = codename
    • securestate = bootloader locked or unlocked
    • carrier_sku = Model #
    • ro.carrier = Software Channel
    • ro.build.fingerprint = Software version See post #7
    • ro.build.version.full = Software version See post #7
  • Other flashing concerns
  • Dual or Single Sim version
  • Memory size Versions 32gb, 64gb....


  • Example of a Device with a/b system
    Code:
    (bootloader) kernel: uefi
    (bootloader) version-bootloader: MBM-3.0-payton_retail-eca8056-191031
    (bootloader) product: payton
    (bootloader) board: payton
    (bootloader) secure: yes
    (bootloader) hwrev: P4
    (bootloader) radio: NA
    (bootloader) storage-type: eMMC
    (bootloader) emmc: 32GB MICRON S0J97Y RV=08 PV=10 FV=4E5630304D483333
    (bootloader) ufs: N/A
    (bootloader) ram: 3GB MICRON LP4 DIE=12Gb M5=FF M6=02 M7=10 M8=0C
    (bootloader) cpu: SDM630 1.0 (2)
    (bootloader) serialno: ZY22584W3J
    (bootloader) cid: 0x0032
    (bootloader) channelid: 0x8d
    (bootloader) uid: 2BD6548F
    (bootloader) securestate: flashing_unlocked
    (bootloader) verity-state: disabled (0)
    (bootloader) iswarrantyvoid: yes
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Volume down key pressed
    (bootloader) imei: 
    (bootloader) meid:
    (bootloader) date: 11-20-2018
    (bootloader) sku: XT1900-1
    (bootloader) carrier_sku: XT1900-1
    (bootloader) battid: SNN5994A
    (bootloader) battery-voltage: 4006
    (bootloader) iccid:
    (bootloader) cust_md5:
    (bootloader) max-sparse-size: 268435456
    (bootloader) ro.build.fingerprint[0]: motorola/payton/payton:9/PPWS29.69
    (bootloader) ro.build.fingerprint[1]: -39-6-2/d2226:user/release-keys
    (bootloader) poweroffalarm: 0
    (bootloader) ro.build.version.full[0]: Blur_Version.29.461.11.payton.ret
    (bootloader) ro.build.version.full[1]: ail.en.US
    (bootloader) ro.build.version.qcom: LA.UM.7.2.r1-04900-sdm660.0
    (bootloader) version-baseband: M660_7045.36.01.100R PAYTON_NA_CUST
    (bootloader) kernel.version[0]: Linux version 4.4.153-perf-g496fe5a (hud
    (bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 2015
    (bootloader) kernel.version[2]: 0123 (prerelease) (GCC) ) #1 SMP PREEMPT
    (bootloader) kernel.version[3]: Thu Oct 31 07:27:03 CDT 2019
    (bootloader) git:abl: MBM-3.0-payton_retail-eca8056-191031
    (bootloader) git:xbl: MBM-3.0-payton_retail-dec7b7c-191031
    (bootloader) git:pmic: MBM-3.0-payton_retail-dec7b7c-191031
    (bootloader) git:rpm: MBM-3.0-payton_retail-b0c6622-191031
    (bootloader) git:tz: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:hyp: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:devcfg: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:cmnlib: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:cmnlib64: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:keymaster: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:prov: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:storsec: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) frp-state: no protection (77)
    (bootloader) ro.carrier: retus
    (bootloader) current-slot: b
    (bootloader) running-bl-slot: _b/_b
    (bootloader) running-boot-lun: 0
    (bootloader) slot-count: 2
    (bootloader) slot-successful:_a: yes
    (bootloader) slot-successful:_b: yes
    (bootloader) slot-unbootable:_a: no
    (bootloader) slot-unbootable:_b: no
    (bootloader) slot-retry-count:_a: 6
    (bootloader) slot-retry-count:_b: 6
    all: listed above
    Finished. Total time: 0.250s

    Older Device

    Code:
    C:\platform-tools_r28.0.0-windows\platform-tools>fastboot getvar all
    (bootloader) version: 0.5
    (bootloader) version-bootloader: moto-msm8917-BA.09(*)
    (bootloader) product: perry
    (bootloader) board: perry
    (bootloader) secure: yes
    (bootloader) hwrev: P3B
    (bootloader) radio: 1
    (bootloader) storage-type: emmc
    (bootloader) emmc: 16GB SKHYNIX HAG4a2 RV=08 PV=A5 FV=00000000000000A5
    (bootloader) ram: 2GB SKHYNIX LP3 DIE=8Gb M5=06 M6=04 M7=00 M8=1F
    (bootloader) cpu: MSM8917
    (bootloader) serialno: ZY224PF863
    (bootloader) cid: 0x0032
    (bootloader) channelid: 0x8b
    (bootloader) uid: 079D50CD00000000000000000000
    (bootloader) securestate: flashing_unlocked
    (bootloader) iswarrantyvoid: yes
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Volume down key pressed
    (bootloader) imei: 
    (bootloader) meid:
    (bootloader) date: 12-06-2017
    (bootloader) sku: XT1768
    (bootloader) battid:
    (bootloader) iccid: 89015809000153536508
    (bootloader) cust_md5:
    (bootloader) max-sparse-size: 268435456
    (bootloader) current-time:
    (bootloader) ro.build.fingerprint[0]: motorola/perry_f/perry_f:7.1.1/NPQ
    (bootloader) ro.build.fingerprint[1]: S26.69-41-3/3:user/release-keys
    (bootloader) poweroffalarm: 0
    (bootloader) ro.build.version.full[0]: Blur_Version.26.206.3.perry.retai
    (bootloader) ro.build.version.full[1]: l.en.US
    (bootloader) ro.build.version.qcom: LA.UM.5.6.r1-03800-89xx.0
    (bootloader) version-baseband: M8917_18.08.04.09R PERRY_NA_CUST
    (bootloader) kernel.version[0]: Linux version 3.18.31-perf-g9acc907-0004
    (bootloader) kernel.version[1]: 4-gbf03e3f ([email protected]) (gcc ver
    (bootloader) kernel.version[2]: sion 4.8 (GCC) ) #1 SMP PREEMPT Fri Sep
    (bootloader) kernel.version[3]: 22 01:08:15 CDT 2017
    (bootloader) sbl1.git: git=MBM-NG-VBA.09-0-ge2011ab
    (bootloader) rpm.git: git=MBM-NG-VBA.09-0-gc6ac81e
    (bootloader) tz.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) devcfg.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) keymaster.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) cmnlib.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) cmnlib64.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) prov.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) aboot.git: git=MBM-NG-VBA.09-0-gcae5764-dirty
    (bootloader) qe: qe 1/1
    (bootloader) frp-state: no protection (343)
    (bootloader) ro.carrier: usc


    another
    Code:
    (bootloader) version: 0.5
    (bootloader) version-bootloader: MBM-2.1-ocean_retail-8caffde-191202
    (bootloader) product: ocean
    (bootloader) board: ocean
    (bootloader) secure: yes
    (bootloader) hwrev: PVT1
    (bootloader) radio: 1
    (bootloader) storage-type: emmc
    (bootloader) emmc: 32GB SAMSUNG GD6BMB RV=08 PV=01 FV=0000000000000001
    (bootloader) ram: 3GB SAMSUNG LP3 DIE=8Gb M5=01 M6=06 M7=00 M8=5F
    (bootloader) cpu: SDM632
    (bootloader) serialno: ZY326BF4Z5
    (bootloader) cid: 0x0032
    (bootloader) channelid: 0x8d
    (bootloader) uid: E00B2DA900000000000000000000
    (bootloader) securestate: flashing_unlocked
    (bootloader) iswarrantyvoid: yes
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Volume down key pressed
    (bootloader) imei: 
    (bootloader) meid:
    (bootloader) date: 06-29-2019
    (bootloader) sku: XT1955-5
    (bootloader) carrier_sku: XT1955-5
    (bootloader) battid: SB18C28957
    (bootloader) iccid:
    (bootloader) cust_md5:
    (bootloader) max-sparse-size: 268435456
    (bootloader) current-time: "Tue Jan 28 17:58:47 UTC 2020"
    (bootloader) ro.build.fingerprint[0]: motorola/ocean/ocean:9/PPOS29.114-
    (bootloader) ro.build.fingerprint[1]: 134-7-1/0ec93:user/release-keys
    (bootloader) poweroffalarm: 0
    (bootloader) ro.build.version.full[0]: Blur_Version.29.201.1.ocean.retai
    (bootloader) ro.build.version.full[1]: l.en.US
    (bootloader) ro.build.version.qcom: LA.UM.7.6.2.r1-04600-89xx.0
    (bootloader) version-baseband: M632_26.100.01.120.02R OCEAN_NA_CUST
    (bootloader) kernel.version[0]: Linux version 4.9.112-perf+ ([email protected]
    (bootloader) kernel.version[1]: clbld110) (gcc version 4.9.x 20150123 (p
    (bootloader) kernel.version[2]: rerelease) (GCC) ) #1 SMP PREEMPT Mon De
    (bootloader) kernel.version[3]: c 2 12:51:31 CST 2019
    (bootloader) sbl1.git: MBM-2.1-ocean_retail-b508f3a-191202
    (bootloader) rpm.git: MBM-2.1-ocean_retail-22daab3-191202
    (bootloader) tz.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) devcfg.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) keymaster.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) cmnlib.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) cmnlib64.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) prov.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) aboot.git: MBM-2.1-ocean_retail-8caffde-191202
    (bootloader) frp-state: no protection (277)
    (bootloader) ro.carrier: retus
    (bootloader) current-slot: a
    (bootloader) running-boot-lun: 0
    (bootloader) running-slot: _a
    (bootloader) slot-suffixes: _a,_b
    (bootloader) slot-count: 2
    (bootloader) slot-successful:_a: Yes
    (bootloader) slot-successful:_b: Yes
    (bootloader) slot-bootable:_a: Yes
    (bootloader) slot-bootable:_b: Yes
    (bootloader) slot-retry-count:_a: 6
    (bootloader) slot-retry-count:_b: 6
 

Attachments

  • InkedIMG_20200128_113413043_LI.jpg
    InkedIMG_20200128_113413043_LI.jpg
    227 KB · Views: 715
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Motorola Firmware Mirrors
Firmware can also be pulled from LMSA
Look for downloaded Firmware in
Code:
 C:\ProgramData\LMSA\Download\RomFiles

You may need to uncheck
Code:
Hide protected operating system files
in View/Options/Change Folder and Search options/View
Direct link
Code:
download.lenovo.com/lsa/Rescue/Smartphone/model#/firmwarename
Like this
Code:
download.lenovo.com/lsa/Rescue/Smartphone/XT1650/GRIFFIN_OPL27.76-71-2-3_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Related
https://forum.xda-developers.com/showpost.php?p=82204141&postcount=29
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Flashing Commands

Caution: The flash commands can vary from one Software Channel to another, and the number sparsechunk(s) can change with the android versions.

Notice: Suggested change in flash commands -07 March 2021

The correct flashing commands can be found in the .xml file in the unzipped firmware folder.
You should always use the flashfile.xml or service.xml to get the flash commands.
Several ways to do that.
Online FlashFile Converter
Write a Batch File
XML to Bat Converter Tool for Windows

More on the .xml files here.

Newer devices are now using super.img instead of a/b system.img - 09 Jan 2021
Code:
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash vbmeta vbmeta.img
fastboot flash radio radio.img
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash recovery recovery.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 erase carrier
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot




For older devices that only have one System partition flash commands will look like
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot


For Newer devices with a/b system partitions
Code:
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 dspso.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.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_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot erase carrier
fastboot erase ddr
fastboot flash logo logo.bin
fastboot reboot
 
Last edited:
  • Like
Reactions: gonzo1963

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Motorola Blur software versions and Android Versions

From Getvar All (Examples)
  • ro.build.fingerprint = motorola/ocean/ocean:9/PPOS29.114- (Blur Version 29)
  • ro.build.version.full = Blur_Version.29.461.11.payton.ret - (Blur Version 29)

Android 10 = Motorola Blur 30.xxx.xx
Android 9 = Motorola Blur 29.xxx.xx
Android 8.1 = Motorola Blur 28.xxx.xx
Android 8.0 = Motorola Blur 27.xxx.xx
Android 7.1.1 = Motorola Blur 26.xxx.xx
Android 7.0 = Motorola Blur 25.xxx.xx
Android 6.0 = Motorola Blur 24.xxx.xx
Android 5.1 = Motorola Blur 23.xxx.xx
Android 5.0 = Motorola Blur 22.xxx.xx
Android = Motorola Blur 21.xxx.xx
Android 4.4.2 = Motorola Blur 20.xxx.xx
Android 4 = Motorola Blur .xxx.xx
Android 3 = Motorola Blur
Android 2 = Motorola Blur
Android 1 = Motorola Blur
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Flashing the Radio Firmware

Are you see this?
IMEI and Baseband are missing/ not available

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


Use these commands if you have trouble after flashing a custom Rom
or trying to add carrier compatibility from a different Software Channel.
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Optional flashing commands
Wiping partitions


Code:
fastboot erase all
Wipe will do this
Code:
erasing 'all'...
(bootloader) erasing ddr ...
(bootloader) erasing carrier ...
(bootloader) erasing modemst1 ...
(bootloader) erasing modemst2 ...
(bootloader) erasing fsc ...
(bootloader) erasing userdata ...
(bootloader) erasing fsg_a ...
(bootloader) erasing fsg_b ...
 
Last edited:
  • Like
Reactions: gonzo1963

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Getting flash commands from the .xml

The Firmware folder will likely have a couple of .xml files
like servicefile.xml or flashfile.xml
Sevicefile.xml does not have 'erase user data'
flashfile.xml does 'erase userdata'

These are formatted to be used with RSD Lite and LMSA
But as I wrote in post #1 RSD Lite hasn't been updated in several years, and not compatible with most Windows 10 PCs

See this post about getting the flashing commands from the .xml
so they can be used with fastboot.exe

Examples of .XML files

servicefile.xml with new super.img -09 Jan 2021
Code:
<?xml version="1.0" ?>
<flashing>
  <header>
    <phone_model model="racer_retail"/>
    <software_version version="racer_retail-user 10 QPD30.114-80 6ddbb release-keys"/>
    <sparsing enabled="true" max-sparse-size="536870912"/>
    <interfaces>
      <interface name="AP"/>
    </interfaces>
  </header>
  <steps interface="AP">
    <step operation="getvar" var="max-sparse-size"/>
    <step operation="oem" var="fb_mode_set"/>
    <step MD5="a08994025b101d31ac2a02b6612d16cf" filename="gpt.bin" operation="flash" partition="partition"/>
    <step MD5="ae1a36de87f0e54eb885109a3d78f43d" filename="bootloader.img" operation="flash" partition="bootloader"/>
    <step MD5="c0002df6f166c3e0ef48af8de1360525" filename="vbmeta.img" operation="flash" partition="vbmeta"/>
    <step MD5="44dadcc9564e72cfa94a30fd4b36d46d" filename="radio.img" operation="flash" partition="radio"/>
    <step MD5="6efe688aec346a403d3fd65a71512ed8" filename="BTFM.bin" operation="flash" partition="bluetooth"/>
    <step MD5="35303058ff0a1ce10625345a910626da" filename="dspso.bin" operation="flash" partition="dsp"/>
    <step MD5="2ff319d7b4bea01a28f2a4ef69eb435e" filename="logo.bin" operation="flash" partition="logo"/>
    <step MD5="0b1b67be985b1908c70ecc2586c532de" filename="boot.img" operation="flash" partition="boot"/>
    <step MD5="01102f81baff9846977c1c321aa09785" filename="dtbo.img" operation="flash" partition="dtbo"/>
    <step MD5="15f8eb86283f15c8f81f40618e2a96e3" filename="recovery.img" operation="flash" partition="recovery"/>
    <step MD5="66475a16cefbb5f6bbaebfcf23defd25" filename="super.img_sparsechunk.0" operation="flash" partition="super"/>
    <step MD5="0f0085e818e78820adf898374080dd11" filename="super.img_sparsechunk.1" operation="flash" partition="super"/>
    <step MD5="10ed7983a07a7f0e1d6b7bd2e630c81b" filename="super.img_sparsechunk.2" operation="flash" partition="super"/>
    <step MD5="0090af247502874f081c416890c261d8" filename="super.img_sparsechunk.3" operation="flash" partition="super"/>
    <step MD5="96b96a3bb0d6f548893e20acb8448a23" filename="super.img_sparsechunk.4" operation="flash" partition="super"/>
    <step MD5="9579c408c0078a5ff7eb6a1f61976585" filename="super.img_sparsechunk.5" operation="flash" partition="super"/>
    <step MD5="210b528a9c9ebd77abed568d939271de" filename="super.img_sparsechunk.6" operation="flash" partition="super"/>
    <step MD5="ee77fbd75df0f83a4e484becba41b70a" filename="super.img_sparsechunk.7" operation="flash" partition="super"/>
    <step operation="erase" partition="carrier"/>
    <step operation="erase" partition="ddr"/>
    <step operation="oem" var="fb_mode_clear"/>
  </steps>
</flashing>

flashfile.xml
Code:
<?xml version="1.0" ?>
<flashing>
  <header>
    <phone_model model="ocean"/>
    <software_version version="ocean-user 9 PPOS29.114-134-2 0d27 release-keysM632_26.100.01.120.01R"/>
    <subsidy_lock_config MD5="d41d8cd98f00b204e9800998ecf8427e" name="slcf_rev_d_default_v1.0.nvm"/>
    <regulatory_config SHA1="da39a3ee5e6b4b0d3255bfef95601890afd80709" name="regulatory_info_default.png"/>
    <sparsing enabled="true" max-sparse-size="268435456"/>
    <interfaces>
      <interface name="AP"/>
    </interfaces>
  </header>
  <steps interface="AP">
    <step operation="getvar" var="max-sparse-size"/>
    <step operation="oem" var="fb_mode_set"/>
    <step MD5="98eca8bc38d323f27f9ac1739569ac53" filename="gpt.bin" operation="flash" partition="partition"/>
    <step MD5="8776ac7f36d4dc86809b434a0b4ef297" filename="bootloader.img" operation="flash" partition="bootloader"/>
    <step MD5="82f9f67795c85f7a4197034d2715fcdd" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
    <step MD5="acdc347a755f73a757b40cf15dbd81a0" filename="fsg.mbn" operation="flash" partition="fsg"/>
    <step operation="erase" partition="modemst1"/>
    <step operation="erase" partition="modemst2"/>
    <step MD5="330051cf4bad4a337b30cbbf90439f90" filename="adspso.bin" operation="flash" partition="dsp"/>
    <step MD5="1fb161f1a3af4576cf67269049796afe" filename="logo.bin" operation="flash" partition="logo"/>
    <step MD5="aa337fafc827722ce13d535e2d40604a" filename="boot.img" operation="flash" partition="boot"/>
    <step MD5="c487a9cd3f57ae8b80a631e3fb3dd105" filename="dtbo.img" operation="flash" partition="dtbo"/>
    <step MD5="a09bdbad7490fa9fa9123d3d928cb1af" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
    <step MD5="629ad8460d94d50080757b3f1261f7a8" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
    <step MD5="038947128c77a4b458ceb8026ace2d30" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
    <step MD5="6a8dc58ece97231239e699aa2eb95601" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
    <step MD5="31ed22694383c85f26d9e89efef09efc" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>
    <step MD5="e4f7243e65dc6df1a79ad5f71e3bf938" filename="system.img_sparsechunk.5" operation="flash" partition="system"/>
    <step MD5="80aaa96d64637575f88dc4daa131123b" filename="system.img_sparsechunk.6" operation="flash" partition="system"/>
    <step MD5="bcde37037afb3ccb66e7b47427af9229" filename="system.img_sparsechunk.7" operation="flash" partition="system"/>
    <step MD5="afa92c57f8402cd7223c777cf1de5f44" filename="system.img_sparsechunk.8" operation="flash" partition="system"/>
    <step MD5="1cd02b2893144cf069a23f6b1c3b6c96" filename="system.img_sparsechunk.9" operation="flash" partition="system"/>
    <step MD5="c18a83c64aaf741df0c6ed10935348b8" filename="system_b.img_sparsechunk.0" operation="flash" partition="system_b"/>
    <step MD5="ad7f6a528952be93f26faaebfd1bf83d" filename="system_b.img_sparsechunk.1" operation="flash" partition="system_b"/>
    <step MD5="0046992361c02076555c97cec8f29a53" filename="system_b.img_sparsechunk.2" operation="flash" partition="system_b"/>
    <step MD5="b7a1f1b1af66182476230d69fd2ad752" filename="vendor.img_sparsechunk.0" operation="flash" partition="vendor"/>
    <step MD5="0ffd0cec1719a75ecb54fa17b24ad4d4" filename="vendor.img_sparsechunk.1" operation="flash" partition="vendor"/>
    <step MD5="1097de93ede575d7dcb33fda3a1a6776" filename="oem.img" operation="flash" partition="oem"/>
    <step MD5="1834a559d2b7d9a09feae082e1586068" filename="oem_other.img" operation="flash" partition="oem_b"/>
    <step operation="erase" partition="userdata"/>
    <step operation="erase" partition="DDR"/>
    <step operation="oem" var="fb_mode_clear"/>
  </steps>
</flashing>


Service .xml
Code:
<?xml version="1.0" ?>
<flashing>
  <header>
    <phone_model model="ocean"/>
    <software_version version="ocean-user 9 PPOS29.114-134-2 0d27 release-keysM632_26.100.01.120.01R"/>
    <sparsing enabled="true" max-sparse-size="268435456"/>
    <interfaces>
      <interface name="AP"/>
    </interfaces>
  </header>
  <steps interface="AP">
    <step operation="getvar" var="max-sparse-size"/>
    <step operation="oem" var="fb_mode_set"/>
    <step MD5="98eca8bc38d323f27f9ac1739569ac53" filename="gpt.bin" operation="flash" partition="partition"/>
    <step MD5="8776ac7f36d4dc86809b434a0b4ef297" filename="bootloader.img" operation="flash" partition="bootloader"/>
    <step MD5="82f9f67795c85f7a4197034d2715fcdd" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
    <step MD5="acdc347a755f73a757b40cf15dbd81a0" filename="fsg.mbn" operation="flash" partition="fsg"/>
    <step operation="erase" partition="modemst1"/>
    <step operation="erase" partition="modemst2"/>
    <step MD5="330051cf4bad4a337b30cbbf90439f90" filename="adspso.bin" operation="flash" partition="dsp"/>
    <step MD5="1fb161f1a3af4576cf67269049796afe" filename="logo.bin" operation="flash" partition="logo"/>
    <step MD5="aa337fafc827722ce13d535e2d40604a" filename="boot.img" operation="flash" partition="boot"/>
    <step MD5="c487a9cd3f57ae8b80a631e3fb3dd105" filename="dtbo.img" operation="flash" partition="dtbo"/>
    <step MD5="a09bdbad7490fa9fa9123d3d928cb1af" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
    <step MD5="629ad8460d94d50080757b3f1261f7a8" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
    <step MD5="038947128c77a4b458ceb8026ace2d30" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
    <step MD5="6a8dc58ece97231239e699aa2eb95601" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
    <step MD5="31ed22694383c85f26d9e89efef09efc" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>
    <step MD5="e4f7243e65dc6df1a79ad5f71e3bf938" filename="system.img_sparsechunk.5" operation="flash" partition="system"/>
    <step MD5="80aaa96d64637575f88dc4daa131123b" filename="system.img_sparsechunk.6" operation="flash" partition="system"/>
    <step MD5="bcde37037afb3ccb66e7b47427af9229" filename="system.img_sparsechunk.7" operation="flash" partition="system"/>
    <step MD5="afa92c57f8402cd7223c777cf1de5f44" filename="system.img_sparsechunk.8" operation="flash" partition="system"/>
    <step MD5="1cd02b2893144cf069a23f6b1c3b6c96" filename="system.img_sparsechunk.9" operation="flash" partition="system"/>
    <step MD5="c18a83c64aaf741df0c6ed10935348b8" filename="system_b.img_sparsechunk.0" operation="flash" partition="system_b"/>
    <step MD5="ad7f6a528952be93f26faaebfd1bf83d" filename="system_b.img_sparsechunk.1" operation="flash" partition="system_b"/>
    <step MD5="0046992361c02076555c97cec8f29a53" filename="system_b.img_sparsechunk.2" operation="flash" partition="system_b"/>
    <step MD5="b7a1f1b1af66182476230d69fd2ad752" filename="vendor.img_sparsechunk.0" operation="flash" partition="vendor"/>
    <step MD5="0ffd0cec1719a75ecb54fa17b24ad4d4" filename="vendor.img_sparsechunk.1" operation="flash" partition="vendor"/>
    <step MD5="1097de93ede575d7dcb33fda3a1a6776" filename="oem.img" operation="flash" partition="oem"/>
    <step MD5="1834a559d2b7d9a09feae082e1586068" filename="oem_other.img" operation="flash" partition="oem_b"/>
    <step operation="erase" partition="DDR"/>
    <step operation="oem" var="fb_mode_clear"/>
  </steps>
</flashing>
 
Last edited:
  • Like
Reactions: gonzo1963
Jan 27, 2020
9
4
only till sparesechunk.4 ???

Flashing Commands
The correct flashing commands can be found in the .xml file in the unzipped firmware folder.
More on the .xml file here.




For older devices that only have one System partition flash commands will look like
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot


For Newer devices with a/b system partitions
Code:
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 dspso.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.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_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash vendor vendor.img_sparsechunk.0
fastboot flash vendor vendor.img_sparsechunk.1
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot erase carrier
fastboot erase ddr
fastboot flash logo logo.bin
fastboot reboot

I got files till sparsechunk.7 (not a/b partition, normal one)
 
  • Like
Reactions: gonzo1963

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4

What is fastbootd?​

Android 10 changed flashing in fastboot mode.
Some moto devices now have a fastbootd mode
and you need to flash some commands in that mode.

To test if your device uses fastbootd
run this command in bootloader mode
Code:
fastboot getvar is-userspace

If it returns yes Your devices uses fastbootd
If no your device just uses bootloader/fastboot mode

See this post on When to use fastbootd



Code:
adb reboot fastboot

Code:
fastboot reboot fastboot
  • First, boot into stock recovery on your device.
  • To enter recovery mode, Turn off your device, press Volume down + Power button together
  • You will enter stock recovery.
  • In your stock recovery option, you will find “Enter Fastboot”
  • Tap on it and you will see a new window called Fastbootd.
 
Last edited:
  • Like
Reactions: gonzo1963
Jan 27, 2020
9
4
Not sure what you are asking
The exact commands are in the .xml
But they are likely
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 modem NON-HLOS.bin 
fastboot erase modemst1 
fastboot erase modemst2 
fastboot flash fsg fsg.mbn 
fastboot erase cache 
fastboot erase userdata 
fastboot erase customize 
fastboot erase clogo fastboot oem fb_mode_clear 
fastboot reboot

But you should compare with the flashfile.xml

Sent from my mata using XDA Labs

this is my .xml file. please help I don't understand any of that
xml.PNG
 
  • Like
Reactions: gonzo1963

sd_shadow

Recognized Contributor
Sep 21, 2011
18,089
1
8,675
South Dakota
goo.gl
Motorola Droid X
Moto X4
Using fastboot.exe with MediaTek Devices

There's a special flash tool for MediaTek Devices
SP Flash Tool see post #24


It appears for a/b slot devices, slot a should be set as active.
Like this
Code:
fastboot set_active a

Example of full command for Motorola MediaTek devices

Code:
fastboot devices
fastboot set_active a
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash gpt PGPT
fastboot flash preloader preloader.bin
fastboot flash lk_a lk.img
fastboot flash lk_b lk.img
fastboot flash tee_a tee.img
fastboot flash tee_b tee.img
fastboot flash md1img_a md1img.img
fastboot flash md1img_b md1img.img
fastboot erase nvdata
fastboot flash spmfw_a spmfw.img
fastboot flash spmfw_b spmfw.img
fastboot flash scp_a scp.img
fastboot flash scp_b scp.img
fastboot flash sspm_a sspm.img
fastboot flash sspm_b sspm.img
fastboot flash cam_vpu1_a cam_vpu1.img
fastboot flash cam_vpu1_b cam_vpu1.img
fastboot flash cam_vpu2_a cam_vpu2.img
fastboot flash cam_vpu2_b cam_vpu2.img
fastboot flash cam_vpu3_a cam_vpu3.img
fastboot flash cam_vpu3_b cam_vpu3.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash oem_a oem.img
fastboot flash oem_b oem.img
fastboot flash logo_a logo.bin
fastboot flash logo_b logo.bin
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash dtb_a dtb.img
fastboot flash dtb_b dtb.img
fastboot flash dtbo_a dtbo.img
fastboot flash dtbo_b dtbo.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_a system.img_sparsechunk.9
fastboot flash system_b system_other.img_sparsechunk.0
fastboot flash system_b system_other.img_sparsechunk.1
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot flash vendor_b vendor.img_sparsechunk.0
fastboot flash vendor_b vendor.img_sparsechunk.1
fastboot erase userdata
fastboot erase metadata
fastboot oem fb_mode_clear
fastboot reboot

If you use the online flashfile.xml convertor you will get something like this.
Which is missing many of the slot b commands.

Code:
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash gpt PGPT
fastboot flash preloader preloader.bin
fastboot flash lk_a lk.img
fastboot flash tee_a tee.img
fastboot flash md1img_a md1img.img
fastboot erase nvdata
fastboot flash spmfw_a spmfw.img
fastboot flash scp_a scp.img
fastboot flash sspm_a sspm.img
fastboot flash cam_vpu1_a cam_vpu1.img
fastboot flash cam_vpu2_a cam_vpu2.img
fastboot flash cam_vpu3_a cam_vpu3.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash oem_a oem.img
fastboot flash logo_a logo.bin
fastboot flash boot_a boot.img
fastboot flash dtb_a dtb.img
fastboot flash dtbo_a dtbo.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_a system.img_sparsechunk.9
fastboot flash system_a system.img_sparsechunk.10
fastboot flash system_b system_other.img_sparsechunk.0
fastboot flash system_b system_other.img_sparsechunk.1
fastboot flash system_b system_other.img_sparsechunk.2
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot erase userdata
fastboot erase metadata
fastboot oem fb_mode_clear
echo -----------------------------------------------------------------------------------------------
echo English - Process concluded!
echo Português - Processo concluído!
echo English - Press any key to restart the phone!
echo Português - Pressione qualquer tecla para reiniciar o celular!
echo -----------------------------------------------------------------------------------------------
pause
fastboot reboot
exit
 
Last edited:
Jan 27, 2020
9
4
Use a
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 modem NON-HLOS.bin 
fastboot erase modemst1 
fastboot erase modemst2 
fastboot flash fsg fsg.mbn 
fastboot erase cache 
fastboot erase userdata 
fastboot erase customize 
fastboot erase clogo 
fastboot oem fb_mode_clear 
fastboot reboot

Sent from my jerry_cheets using XDA Labs

Yes, I finally got a chance to do it today and it fixed the problem.
Again, thanks a lot. My phone is secure now. ???
 

hey_joni

New member
Feb 18, 2020
3
0
How to find the Device Model #, codename and software channel.

Motorola has different Firmware based on the Model/codename and Software Channel.

There are a few different ways to find the device codename and software channel.
  • Settings/About phone
  • DevCheck
    • System tab: Device= codename, SKU = model #
  • List of Motorola Codenames
  • bootloader info (This isn't always real clear)

    Preferred Method
  • Fastboot getvar all method (Device must be in AP Fastboot Flash Mode)
    Code:
    fastboot getvar all
    • Product = codename
    • securestate = bootloader locked or unlocked
    • carrier_sku = Model #
    • ro.carrier = Software Channel


    Example of a Device with a/b system
    Code:
    (bootloader) kernel: uefi
    (bootloader) version-bootloader: MBM-3.0-payton_retail-eca8056-191031
    (bootloader) product: payton
    (bootloader) board: payton
    (bootloader) secure: yes
    (bootloader) hwrev: P4
    (bootloader) radio: NA
    (bootloader) storage-type: eMMC
    (bootloader) emmc: 32GB MICRON S0J97Y RV=08 PV=10 FV=4E5630304D483333
    (bootloader) ufs: N/A
    (bootloader) ram: 3GB MICRON LP4 DIE=12Gb M5=FF M6=02 M7=10 M8=0C
    (bootloader) cpu: SDM630 1.0 (2)
    (bootloader) serialno: ZY22584W3J
    (bootloader) cid: 0x0032
    (bootloader) channelid: 0x8d
    (bootloader) uid: 2BD6548F
    (bootloader) securestate: flashing_unlocked
    (bootloader) verity-state: disabled (0)
    (bootloader) iswarrantyvoid: yes
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Volume down key pressed
    (bootloader) imei:  
    (bootloader) meid:
    (bootloader) date: 11-20-2018
    (bootloader) sku: XT1900-1
    (bootloader) carrier_sku: XT1900-1
    (bootloader) battid: SNN5994A
    (bootloader) battery-voltage: 4006
    (bootloader) iccid:
    (bootloader) cust_md5:
    (bootloader) max-sparse-size: 268435456
    (bootloader) ro.build.fingerprint[0]: motorola/payton/payton:9/PPWS29.69
    (bootloader) ro.build.fingerprint[1]: -39-6-2/d2226:user/release-keys
    (bootloader) poweroffalarm: 0
    (bootloader) ro.build.version.full[0]: Blur_Version.29.461.11.payton.ret
    (bootloader) ro.build.version.full[1]: ail.en.US
    (bootloader) ro.build.version.qcom: LA.UM.7.2.r1-04900-sdm660.0
    (bootloader) version-baseband: M660_7045.36.01.100R PAYTON_NA_CUST
    (bootloader) kernel.version[0]: Linux version 4.4.153-perf-g496fe5a (hud
    (bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 2015
    (bootloader) kernel.version[2]: 0123 (prerelease) (GCC) ) #1 SMP PREEMPT
    (bootloader) kernel.version[3]:  Thu Oct 31 07:27:03 CDT 2019
    (bootloader) git:abl: MBM-3.0-payton_retail-eca8056-191031
    (bootloader) git:xbl: MBM-3.0-payton_retail-dec7b7c-191031
    (bootloader) git:pmic: MBM-3.0-payton_retail-dec7b7c-191031
    (bootloader) git:rpm: MBM-3.0-payton_retail-b0c6622-191031
    (bootloader) git:tz: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:hyp: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:devcfg: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:cmnlib: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:cmnlib64: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:keymaster: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:prov: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) git:storsec: MBM-3.0-payton_retail-fa205ea-dirty-191031
    (bootloader) frp-state: no protection (77)
    (bootloader) ro.carrier: retus
    (bootloader) current-slot: b
    (bootloader) running-bl-slot: _b/_b
    (bootloader) running-boot-lun: 0
    (bootloader) slot-count: 2
    (bootloader) slot-successful:_a: yes
    (bootloader) slot-successful:_b: yes
    (bootloader) slot-unbootable:_a: no
    (bootloader) slot-unbootable:_b: no
    (bootloader) slot-retry-count:_a: 6
    (bootloader) slot-retry-count:_b: 6
    all: listed above
    Finished. Total time: 0.250s

    Older Device

    Code:
    C:\platform-tools_r28.0.0-windows\platform-tools>fastboot getvar all
    (bootloader) version: 0.5
    (bootloader) version-bootloader: moto-msm8917-BA.09(*)
    (bootloader) product: perry
    (bootloader) board: perry
    (bootloader) secure: yes
    (bootloader) hwrev: P3B
    (bootloader) radio: 1
    (bootloader) storage-type: emmc
    (bootloader) emmc: 16GB SKHYNIX HAG4a2 RV=08 PV=A5 FV=00000000000000A5
    (bootloader) ram: 2GB SKHYNIX LP3 DIE=8Gb M5=06 M6=04 M7=00 M8=1F
    (bootloader) cpu: MSM8917
    (bootloader) serialno: ZY224PF863
    (bootloader) cid: 0x0032
    (bootloader) channelid: 0x8b
    (bootloader) uid: 079D50CD00000000000000000000
    (bootloader) securestate: flashing_unlocked
    (bootloader) iswarrantyvoid: yes
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Volume down key pressed
    (bootloader) imei:  
    (bootloader) meid:
    (bootloader) date: 12-06-2017
    (bootloader) sku: XT1768
    (bootloader) battid:
    (bootloader) iccid: 89015809000153536508
    (bootloader) cust_md5:
    (bootloader) max-sparse-size: 268435456
    (bootloader) current-time:
    (bootloader) ro.build.fingerprint[0]: motorola/perry_f/perry_f:7.1.1/NPQ
    (bootloader) ro.build.fingerprint[1]: S26.69-41-3/3:user/release-keys
    (bootloader) poweroffalarm: 0
    (bootloader) ro.build.version.full[0]: Blur_Version.26.206.3.perry.retai
    (bootloader) ro.build.version.full[1]: l.en.US
    (bootloader) ro.build.version.qcom: LA.UM.5.6.r1-03800-89xx.0
    (bootloader) version-baseband: M8917_18.08.04.09R PERRY_NA_CUST
    (bootloader) kernel.version[0]: Linux version 3.18.31-perf-g9acc907-0004
    (bootloader) kernel.version[1]: 4-gbf03e3f ([email protected]) (gcc ver
    (bootloader) kernel.version[2]: sion 4.8 (GCC) ) #1 SMP PREEMPT Fri Sep
    (bootloader) kernel.version[3]: 22 01:08:15 CDT 2017
    (bootloader) sbl1.git: git=MBM-NG-VBA.09-0-ge2011ab
    (bootloader) rpm.git: git=MBM-NG-VBA.09-0-gc6ac81e
    (bootloader) tz.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) devcfg.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) keymaster.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) cmnlib.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) cmnlib64.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) prov.git: git=MBM-NG-VBA.09-0-g2883cde
    (bootloader) aboot.git: git=MBM-NG-VBA.09-0-gcae5764-dirty
    (bootloader) qe: qe 1/1
    (bootloader) frp-state: no protection (343)
    (bootloader) ro.carrier: usc


    another
    Code:
    (bootloader) version: 0.5
    (bootloader) version-bootloader: MBM-2.1-ocean_retail-8caffde-191202
    (bootloader) product: ocean
    (bootloader) board: ocean
    (bootloader) secure: yes
    (bootloader) hwrev: PVT1
    (bootloader) radio: 1
    (bootloader) storage-type: emmc
    (bootloader) emmc: 32GB SAMSUNG GD6BMB RV=08 PV=01 FV=0000000000000001
    (bootloader) ram: 3GB SAMSUNG LP3 DIE=8Gb M5=01 M6=06 M7=00 M8=5F
    (bootloader) cpu: SDM632
    (bootloader) serialno: ZY326BF4Z5
    (bootloader) cid: 0x0032
    (bootloader) channelid: 0x8d
    (bootloader) uid: E00B2DA900000000000000000000
    (bootloader) securestate: flashing_unlocked
    (bootloader) iswarrantyvoid: yes
    (bootloader) max-download-size: 536870912
    (bootloader) reason: Volume down key pressed
    (bootloader) imei:  
    (bootloader) meid:
    (bootloader) date: 06-29-2019
    (bootloader) sku: XT1955-5
    (bootloader) carrier_sku: XT1955-5
    (bootloader) battid: SB18C28957
    (bootloader) iccid:
    (bootloader) cust_md5:
    (bootloader) max-sparse-size: 268435456
    (bootloader) current-time: "Tue Jan 28 17:58:47 UTC 2020"
    (bootloader) ro.build.fingerprint[0]: motorola/ocean/ocean:9/PPOS29.114-
    (bootloader) ro.build.fingerprint[1]: 134-7-1/0ec93:user/release-keys
    (bootloader) poweroffalarm: 0
    (bootloader) ro.build.version.full[0]: Blur_Version.29.201.1.ocean.retai
    (bootloader) ro.build.version.full[1]: l.en.US
    (bootloader) ro.build.version.qcom: LA.UM.7.6.2.r1-04600-89xx.0
    (bootloader) version-baseband: M632_26.100.01.120.02R OCEAN_NA_CUST
    (bootloader) kernel.version[0]: Linux version 4.9.112-perf+ ([email protected]
    (bootloader) kernel.version[1]: clbld110) (gcc version 4.9.x 20150123 (p
    (bootloader) kernel.version[2]: rerelease) (GCC) ) #1 SMP PREEMPT Mon De
    (bootloader) kernel.version[3]: c 2 12:51:31 CST 2019
    (bootloader) sbl1.git: MBM-2.1-ocean_retail-b508f3a-191202
    (bootloader) rpm.git: MBM-2.1-ocean_retail-22daab3-191202
    (bootloader) tz.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) devcfg.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) keymaster.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) cmnlib.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) cmnlib64.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) prov.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
    (bootloader) aboot.git: MBM-2.1-ocean_retail-8caffde-191202
    (bootloader) frp-state: no protection (277)
    (bootloader) ro.carrier: retus
    (bootloader) current-slot: a
    (bootloader) running-boot-lun: 0
    (bootloader) running-slot: _a
    (bootloader) slot-suffixes: _a,_b
    (bootloader) slot-count: 2
    (bootloader) slot-successful:_a: Yes
    (bootloader) slot-successful:_b: Yes
    (bootloader) slot-bootable:_a: Yes
    (bootloader) slot-bootable:_b: Yes
    (bootloader) slot-retry-count:_a: 6
    (bootloader) slot-retry-count:_b: 6



Thanks a lot, this helped me with the solution to my problem!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Guide: Using Fastboot.exe with Motorola Devices

    If your device has its own section please post in that section.​
    You can ping me with @sd_shadow


    MediaTek or Qualcomm Chip?
    • Do I have a MediaTek Device? see post #26
    • Info: If you have a MediaTek Chip see post #24
    • MediaTek and Fastboot.exe see post #17
    • Most Moto devices are Qualcomm See options below

    • Warning:
      • Know what software version is on your device before flashing see Post #2
      • Do not downgrade firmware with a locked bootloader, it may make the device unusable.
      • If you flash firmware for a different model, even if it is similar, it may make the device unusable.
    Notice: Some devices on Android 10 and above now require fastbootd mode​



    Flashing with fastboot.exe
    First, watch this video, it's a bit old, but Root Junkie covers the steps very well.​
    There are a few things you need.​

    Batch script for Flashing firmware

    Flashing Radio Only

    Downgrading Moto Firmware​

    Other Flashing Options​
    3
    Motorola Firmware Mirrors
    Firmware can also be pulled from LMSA
    Look for downloaded Firmware in
    Code:
     C:\ProgramData\LMSA\Download\RomFiles

    You may need to uncheck
    Code:
    Hide protected operating system files
    in View/Options/Change Folder and Search options/View
    Direct link
    Code:
    download.lenovo.com/lsa/Rescue/Smartphone/model#/firmwarename
    Like this
    Code:
    download.lenovo.com/lsa/Rescue/Smartphone/XT1650/GRIFFIN_OPL27.76-71-2-3_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

    Related
    https://forum.xda-developers.com/showpost.php?p=82204141&postcount=29
    3
    Online FlashFile Converter

    MediaTek notice
    • https://kfhost.net/flashfile
    • It's in Portuguese, but google translate works.
    • Find the Service.xml or flashfile.xml in a Firmware.zip
    • open the XML from firmware.zip with a text editor like Notepad++
    • Copy the commands from the .XML
    • On website scroll down to the flashfile.xml box, paste commands, click Gerar Comandos (Generate Commands)
    • Copy the new commands


    Create a flashall.bat
    • Create a text file
    • paste commands from online convertor to text file
    • Option: Remove the erase userdata line if you don't want to factory reset.
    • Save
    • edit file extension to .bat
    • Move bat file to the platform-tools folder (adb/fastboot.exe)
    • execute bat file by double-clicking on it

    Also, see What is fastbootd?
    2
    Device Model #, codename and software channel.

    How to find the Device Model #, codename and software channel.

    Motorola has different Firmware based on the Model/codename and Software Channel.

    There are a few different ways to find the device codename and software channel.
    • Settings/About phone
    • DevCheck
      • System tab: Device= codename, SKU = model #
    • List of Motorola Codenames
    • bootloader info (This isn't always real clear)

      Preferred Method
    • Fastboot getvar all method (Device must be in AP Fastboot Flash Mode)
      Code:
      fastboot getvar all
      • Product = codename
      • securestate = bootloader locked or unlocked
      • carrier_sku = Model #
      • ro.carrier = Software Channel
      • ro.build.fingerprint = Software version See post #7
      • ro.build.version.full = Software version See post #7
    • Other flashing concerns
    • Dual or Single Sim version
    • Memory size Versions 32gb, 64gb....


    • Example of a Device with a/b system
      Code:
      (bootloader) kernel: uefi
      (bootloader) version-bootloader: MBM-3.0-payton_retail-eca8056-191031
      (bootloader) product: payton
      (bootloader) board: payton
      (bootloader) secure: yes
      (bootloader) hwrev: P4
      (bootloader) radio: NA
      (bootloader) storage-type: eMMC
      (bootloader) emmc: 32GB MICRON S0J97Y RV=08 PV=10 FV=4E5630304D483333
      (bootloader) ufs: N/A
      (bootloader) ram: 3GB MICRON LP4 DIE=12Gb M5=FF M6=02 M7=10 M8=0C
      (bootloader) cpu: SDM630 1.0 (2)
      (bootloader) serialno: ZY22584W3J
      (bootloader) cid: 0x0032
      (bootloader) channelid: 0x8d
      (bootloader) uid: 2BD6548F
      (bootloader) securestate: flashing_unlocked
      (bootloader) verity-state: disabled (0)
      (bootloader) iswarrantyvoid: yes
      (bootloader) max-download-size: 536870912
      (bootloader) reason: Volume down key pressed
      (bootloader) imei: 
      (bootloader) meid:
      (bootloader) date: 11-20-2018
      (bootloader) sku: XT1900-1
      (bootloader) carrier_sku: XT1900-1
      (bootloader) battid: SNN5994A
      (bootloader) battery-voltage: 4006
      (bootloader) iccid:
      (bootloader) cust_md5:
      (bootloader) max-sparse-size: 268435456
      (bootloader) ro.build.fingerprint[0]: motorola/payton/payton:9/PPWS29.69
      (bootloader) ro.build.fingerprint[1]: -39-6-2/d2226:user/release-keys
      (bootloader) poweroffalarm: 0
      (bootloader) ro.build.version.full[0]: Blur_Version.29.461.11.payton.ret
      (bootloader) ro.build.version.full[1]: ail.en.US
      (bootloader) ro.build.version.qcom: LA.UM.7.2.r1-04900-sdm660.0
      (bootloader) version-baseband: M660_7045.36.01.100R PAYTON_NA_CUST
      (bootloader) kernel.version[0]: Linux version 4.4.153-perf-g496fe5a (hud
      (bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 2015
      (bootloader) kernel.version[2]: 0123 (prerelease) (GCC) ) #1 SMP PREEMPT
      (bootloader) kernel.version[3]: Thu Oct 31 07:27:03 CDT 2019
      (bootloader) git:abl: MBM-3.0-payton_retail-eca8056-191031
      (bootloader) git:xbl: MBM-3.0-payton_retail-dec7b7c-191031
      (bootloader) git:pmic: MBM-3.0-payton_retail-dec7b7c-191031
      (bootloader) git:rpm: MBM-3.0-payton_retail-b0c6622-191031
      (bootloader) git:tz: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:hyp: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:devcfg: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:cmnlib: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:cmnlib64: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:keymaster: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:prov: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:storsec: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) frp-state: no protection (77)
      (bootloader) ro.carrier: retus
      (bootloader) current-slot: b
      (bootloader) running-bl-slot: _b/_b
      (bootloader) running-boot-lun: 0
      (bootloader) slot-count: 2
      (bootloader) slot-successful:_a: yes
      (bootloader) slot-successful:_b: yes
      (bootloader) slot-unbootable:_a: no
      (bootloader) slot-unbootable:_b: no
      (bootloader) slot-retry-count:_a: 6
      (bootloader) slot-retry-count:_b: 6
      all: listed above
      Finished. Total time: 0.250s

      Older Device

      Code:
      C:\platform-tools_r28.0.0-windows\platform-tools>fastboot getvar all
      (bootloader) version: 0.5
      (bootloader) version-bootloader: moto-msm8917-BA.09(*)
      (bootloader) product: perry
      (bootloader) board: perry
      (bootloader) secure: yes
      (bootloader) hwrev: P3B
      (bootloader) radio: 1
      (bootloader) storage-type: emmc
      (bootloader) emmc: 16GB SKHYNIX HAG4a2 RV=08 PV=A5 FV=00000000000000A5
      (bootloader) ram: 2GB SKHYNIX LP3 DIE=8Gb M5=06 M6=04 M7=00 M8=1F
      (bootloader) cpu: MSM8917
      (bootloader) serialno: ZY224PF863
      (bootloader) cid: 0x0032
      (bootloader) channelid: 0x8b
      (bootloader) uid: 079D50CD00000000000000000000
      (bootloader) securestate: flashing_unlocked
      (bootloader) iswarrantyvoid: yes
      (bootloader) max-download-size: 536870912
      (bootloader) reason: Volume down key pressed
      (bootloader) imei: 
      (bootloader) meid:
      (bootloader) date: 12-06-2017
      (bootloader) sku: XT1768
      (bootloader) battid:
      (bootloader) iccid: 89015809000153536508
      (bootloader) cust_md5:
      (bootloader) max-sparse-size: 268435456
      (bootloader) current-time:
      (bootloader) ro.build.fingerprint[0]: motorola/perry_f/perry_f:7.1.1/NPQ
      (bootloader) ro.build.fingerprint[1]: S26.69-41-3/3:user/release-keys
      (bootloader) poweroffalarm: 0
      (bootloader) ro.build.version.full[0]: Blur_Version.26.206.3.perry.retai
      (bootloader) ro.build.version.full[1]: l.en.US
      (bootloader) ro.build.version.qcom: LA.UM.5.6.r1-03800-89xx.0
      (bootloader) version-baseband: M8917_18.08.04.09R PERRY_NA_CUST
      (bootloader) kernel.version[0]: Linux version 3.18.31-perf-g9acc907-0004
      (bootloader) kernel.version[1]: 4-gbf03e3f ([email protected]) (gcc ver
      (bootloader) kernel.version[2]: sion 4.8 (GCC) ) #1 SMP PREEMPT Fri Sep
      (bootloader) kernel.version[3]: 22 01:08:15 CDT 2017
      (bootloader) sbl1.git: git=MBM-NG-VBA.09-0-ge2011ab
      (bootloader) rpm.git: git=MBM-NG-VBA.09-0-gc6ac81e
      (bootloader) tz.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) devcfg.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) keymaster.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) cmnlib.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) cmnlib64.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) prov.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) aboot.git: git=MBM-NG-VBA.09-0-gcae5764-dirty
      (bootloader) qe: qe 1/1
      (bootloader) frp-state: no protection (343)
      (bootloader) ro.carrier: usc


      another
      Code:
      (bootloader) version: 0.5
      (bootloader) version-bootloader: MBM-2.1-ocean_retail-8caffde-191202
      (bootloader) product: ocean
      (bootloader) board: ocean
      (bootloader) secure: yes
      (bootloader) hwrev: PVT1
      (bootloader) radio: 1
      (bootloader) storage-type: emmc
      (bootloader) emmc: 32GB SAMSUNG GD6BMB RV=08 PV=01 FV=0000000000000001
      (bootloader) ram: 3GB SAMSUNG LP3 DIE=8Gb M5=01 M6=06 M7=00 M8=5F
      (bootloader) cpu: SDM632
      (bootloader) serialno: ZY326BF4Z5
      (bootloader) cid: 0x0032
      (bootloader) channelid: 0x8d
      (bootloader) uid: E00B2DA900000000000000000000
      (bootloader) securestate: flashing_unlocked
      (bootloader) iswarrantyvoid: yes
      (bootloader) max-download-size: 536870912
      (bootloader) reason: Volume down key pressed
      (bootloader) imei: 
      (bootloader) meid:
      (bootloader) date: 06-29-2019
      (bootloader) sku: XT1955-5
      (bootloader) carrier_sku: XT1955-5
      (bootloader) battid: SB18C28957
      (bootloader) iccid:
      (bootloader) cust_md5:
      (bootloader) max-sparse-size: 268435456
      (bootloader) current-time: "Tue Jan 28 17:58:47 UTC 2020"
      (bootloader) ro.build.fingerprint[0]: motorola/ocean/ocean:9/PPOS29.114-
      (bootloader) ro.build.fingerprint[1]: 134-7-1/0ec93:user/release-keys
      (bootloader) poweroffalarm: 0
      (bootloader) ro.build.version.full[0]: Blur_Version.29.201.1.ocean.retai
      (bootloader) ro.build.version.full[1]: l.en.US
      (bootloader) ro.build.version.qcom: LA.UM.7.6.2.r1-04600-89xx.0
      (bootloader) version-baseband: M632_26.100.01.120.02R OCEAN_NA_CUST
      (bootloader) kernel.version[0]: Linux version 4.9.112-perf+ ([email protected]
      (bootloader) kernel.version[1]: clbld110) (gcc version 4.9.x 20150123 (p
      (bootloader) kernel.version[2]: rerelease) (GCC) ) #1 SMP PREEMPT Mon De
      (bootloader) kernel.version[3]: c 2 12:51:31 CST 2019
      (bootloader) sbl1.git: MBM-2.1-ocean_retail-b508f3a-191202
      (bootloader) rpm.git: MBM-2.1-ocean_retail-22daab3-191202
      (bootloader) tz.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) devcfg.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) keymaster.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) cmnlib.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) cmnlib64.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) prov.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) aboot.git: MBM-2.1-ocean_retail-8caffde-191202
      (bootloader) frp-state: no protection (277)
      (bootloader) ro.carrier: retus
      (bootloader) current-slot: a
      (bootloader) running-boot-lun: 0
      (bootloader) running-slot: _a
      (bootloader) slot-suffixes: _a,_b
      (bootloader) slot-count: 2
      (bootloader) slot-successful:_a: Yes
      (bootloader) slot-successful:_b: Yes
      (bootloader) slot-bootable:_a: Yes
      (bootloader) slot-bootable:_b: Yes
      (bootloader) slot-retry-count:_a: 6
      (bootloader) slot-retry-count:_b: 6
    2
    Flashing the Radio Firmware

    Are you see this?
    IMEI and Baseband are missing/ not available

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


    Use these commands if you have trouble after flashing a custom Rom
    or trying to add carrier compatibility from a different Software Channel.