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

moto g5s plus XT1804 flashing error

Search This thread

gulahmed

Member
Sep 30, 2017
10
1
Moto G5S Plus
i have my device g5splus with unlocked oem.. i have accidently deleted internal storage and system from twrp recovery and now no OS is installed in my phone i tried to flash official and custom both roms but but it cant.... the bootloader logs shows (cmd: getvar: max-sparse-size.... cmd: getvar: max-download-size) ... dont know how to recover my device... i have tried several solitions.. please help
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,201
2
8,749
South Dakota
goo.gl
Motorola Droid X
Moto X4
i have my device g5splus with unlocked oem.. i have accidently deleted internal storage and system from twrp recovery and now no OS is installed in my phone i tried to flash official and custom both roms but but it cant.... the bootloader logs shows (cmd: getvar: max-sparse-size.... cmd: getvar: max-download-size) ... dont to how to recover my device... i have tried several solitions.. please help
What does getvar all say?
Remove the imei from the results before posting.
Code:
fastboot getvar all
 
  • Like
Reactions: gulahmed

gulahmed

Member
Sep 30, 2017
10
1
Moto G5S Plus
C:\Program Files\Minimal ADB and Fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C2.12
(bootloader) product: sanders
(bootloader) board: sanders
(bootloader) secure: yes
(bootloader) hwrev: P4
(bootloader) radio: 2
(bootloader) storage-type: emmc
(bootloader) emmc: 64GB SAMSUNG RC14MB RV=08 PV=07 FV=0000000000000007
(bootloader) ram: 4GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=5F
(bootloader) cpu: MSM8953
(bootloader) serialno: ZY322FJP6P
(bootloader) cid: 0x0032
(bootloader) channelid: 0xc0
(bootloader) uid: DC98FA7A00000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 534773760
(bootloader) reason: UTAG "bootmode" configured as fastboot
(bootloader) imei: -
(bootloader) meid:
(bootloader) date: 12-21-2017
(bootloader) sku: XT1804
(bootloader) carrier_sku:
(bootloader) battid: SB18C15119
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Fri Jan 29 0:19:35 UTC 1971"
(bootloader) ro.build.fingerprint[0]: motorola/sanders_n/sanders_n:8.1.0
(bootloader) ro.build.fingerprint[1]: /OPS28.65-36-11/431cb:user/release
(bootloader) ro.build.fingerprint[2]: -keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.241.8.sanders.ret
(bootloader) ro.build.version.full[1]: ail.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g810c3e8 (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]: Fri Apr 26 14:05:39 CDT 2019
(bootloader) sbl1.git: git=MBM-NG-VC2.12-0-g698fb2f
(bootloader) rpm.git: git=92e5e21-dirty
(bootloader) tz.git: git=3aba84d-dirty
(bootloader) devcfg.git: git=3aba84d-dirty
(bootloader) keymaster.git: git=3aba84d-dirty
(bootloader) cmnlib.git: git=3aba84d-dirty
(bootloader) cmnlib64.git: git=3aba84d-dirty
(bootloader) prov.git: git=3aba84d-dirty
(bootloader) aboot.git: git=MBM-NG-VC2.12-0-g07ff23c
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: retin
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
finished. total time: 0.337s
What does getvar all say?
Remove the imei from the results before posting.
Code:
fastboot getvar all
 

sd_shadow

Recognized Contributor
Sep 21, 2011
18,201
2
8,749
South Dakota
goo.gl
Motorola Droid X
Moto X4
C:\Program Files\Minimal ADB and Fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C2.12
(bootloader) product: sanders
(bootloader) board: sanders
(bootloader) secure: yes
(bootloader) hwrev: P4
(bootloader) radio: 2
(bootloader) storage-type: emmc
(bootloader) emmc: 64GB SAMSUNG RC14MB RV=08 PV=07 FV=0000000000000007
(bootloader) ram: 4GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=5F
(bootloader) cpu: MSM8953
(bootloader) serialno: ZY322FJP6P
(bootloader) cid: 0x0032
(bootloader) channelid: 0xc0
(bootloader) uid: DC98FA7A00000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 534773760
(bootloader) reason: UTAG "bootmode" configured as fastboot
(bootloader) imei: -
(bootloader) meid:
(bootloader) date: 12-21-2017
(bootloader) sku: XT1804
(bootloader) carrier_sku:
(bootloader) battid: SB18C15119
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Fri Jan 29 0:19:35 UTC 1971"
(bootloader) ro.build.fingerprint[0]: motorola/sanders_n/sanders_n:8.1.0
(bootloader) ro.build.fingerprint[1]: /OPS28.65-36-11/431cb:user/release
(bootloader) ro.build.fingerprint[2]: -keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.241.8.sanders.ret
(bootloader) ro.build.version.full[1]: ail.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g810c3e8 (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]: Fri Apr 26 14:05:39 CDT 2019
(bootloader) sbl1.git: git=MBM-NG-VC2.12-0-g698fb2f
(bootloader) rpm.git: git=92e5e21-dirty
(bootloader) tz.git: git=3aba84d-dirty
(bootloader) devcfg.git: git=3aba84d-dirty
(bootloader) keymaster.git: git=3aba84d-dirty
(bootloader) cmnlib.git: git=3aba84d-dirty
(bootloader) cmnlib64.git: git=3aba84d-dirty
(bootloader) prov.git: git=3aba84d-dirty
(bootloader) aboot.git: git=MBM-NG-VC2.12-0-g07ff23c
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: retin
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
finished. total time: 0.337s
It's not good when you see
Code:
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID

Try LMSA's Rescue option

if that doesn't work, try looking for a blankflash for "sanders"
If you find a blankflash, reboot into EDL Mode, run the blankflash.bat, then flash the full firmware


This should be the correct firmware
https://mirrors.lolinet.com/firmware/moto/sanders/official/RETIN/
XT1804_SANDERS_RETIN_8.1.0_OPS28.65-36-14_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
 

gulahmed

Member
Sep 30, 2017
10
1
Moto G5S Plus
hello
It's not good when you see
Code:
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID

Try LMSA's Rescue option

if that doesn't work, try looking for a blankflash for "sanders"
If you find a blankflash, reboot into EDL Mode, run the blankflash.bat, then flash the full firmware


This should be the correct firmware
https://mirrors.lolinet.com/firmware/moto/sanders/official/RETIN/
XT1804_SANDERS_RETIN_8.1.0_OPS28.65-36-14_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
hello .. thank you so much for your assistance .. but somehow i managed to flash rom successfully but imei is not worning and baseband version is showing not available..
 

gulahmed

Member
Sep 30, 2017
10
1
Moto G5S Plus
no it doesnt

C:\Program Files\Minimal ADB and Fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C2.12
(bootloader) product: sanders
(bootloader) board: sanders
(bootloader) secure: yes
(bootloader) hwrev: P4
(bootloader) radio: 2
(bootloader) storage-type: emmc
(bootloader) emmc: 64GB SAMSUNG RC14MB RV=08 PV=07 FV=0000000000000007
(bootloader) ram: 4GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=5F
(bootloader) cpu: MSM8953
(bootloader) serialno: ZY322FJP6P
(bootloader) cid: 0x0032
(bootloader) channelid: 0xc0
(bootloader) uid: DC98FA7A00000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 534773760
(bootloader) reason: Volume down key pressed
(bootloader) imei: -
(bootloader) meid:
(bootloader) date: 12-21-2017
(bootloader) sku: XT1804
(bootloader) carrier_sku:
(bootloader) battid: SB18C15119
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Fri Jan 29 1:42: 7 UTC 1971"
(bootloader) ro.build.fingerprint[0]: motorola/sanders_n/sanders_n:8.1.0
(bootloader) ro.build.fingerprint[1]: /OPSS28.65-36-9/03c05:user/release
(bootloader) ro.build.fingerprint[2]: -keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.221.10.sanders.re
(bootloader) ro.build.version.full[1]: tail.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g099018b (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]: Wed Feb 6 03:43:34 CST 2019
(bootloader) sbl1.git: git=MBM-NG-VC2.12-0-g698fb2f
(bootloader) rpm.git: git=92e5e21-dirty
(bootloader) tz.git: git=e619e20
(bootloader) devcfg.git: git=e619e20
(bootloader) keymaster.git: git=e619e20
(bootloader) cmnlib.git: git=e619e20
(bootloader) cmnlib64.git: git=e619e20
(bootloader) prov.git: git=e619e20
(bootloader) aboot.git: git=MBM-NG-VC2.12-0-g07ff23c
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: retin
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
finished. total time: 0.609s
 

gulahmed

Member
Sep 30, 2017
10
1
Moto G5S Plus
It's not good when you see
Code:
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID

Try LMSA's Rescue option

if that doesn't work, try looking for a blankflash for "sanders"
If you find a blankflash, reboot into EDL Mode, run the blankflash.bat, then flash the full firmware


This should be the correct firmware
https://mirrors.lolinet.com/firmware/moto/sanders/official/RETIN/
XT1804_SANDERS_RETIN_8.1.0_OPS28.65-36-14_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
hello .. LMSA didnt worked and ...coudn't find blankflash for senders .. do u have any link for that??
 

gulahmed

Member
Sep 30, 2017
10
1
Moto G5S Plus
Problem solved .. i flashed stock august 19 using codes

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 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 oem oem.img
fastboot erase DDR
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot

then after first boot again flash this coades

  • fastboot flash modem NON-HLOS.bin
  • fastboot erase modemst1
  • fastboot erase modemst2
  • fastboot flash fsg fsg.mbn
  • fastboot reboot
baseband and imei showing :)
 
  • Like
Reactions: sd_shadow

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    i have my device g5splus with unlocked oem.. i have accidently deleted internal storage and system from twrp recovery and now no OS is installed in my phone i tried to flash official and custom both roms but but it cant.... the bootloader logs shows (cmd: getvar: max-sparse-size.... cmd: getvar: max-download-size) ... dont to how to recover my device... i have tried several solitions.. please help
    What does getvar all say?
    Remove the imei from the results before posting.
    Code:
    fastboot getvar all
    1
    Problem solved .. i flashed stock august 19 using codes

    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 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 oem oem.img
    fastboot erase DDR
    fastboot erase cache
    fastboot erase userdata
    fastboot oem fb_mode_clear
    fastboot reboot

    then after first boot again flash this coades

    • fastboot flash modem NON-HLOS.bin
    • fastboot erase modemst1
    • fastboot erase modemst2
    • fastboot flash fsg fsg.mbn
    • fastboot reboot
    baseband and imei showing :)